Ever used SHGetPathFromIDListW?
[TOPIC CLOSED] +++ BREAKING NEWS: XY Switches Programming Language +++
Re: +++ BREAKING NEWS: XY Switches Programming Language +++
Apologies for injecting a short german phrase: "Das ist aber nicht net!" ;-)
Well, this is Win32API - sorry, rarely used API and never that function...
Well, this is Win32API - sorry, rarely used API and never that function...
______________________________________________
Happy user ;-)
Happy user ;-)
-
- Site Admin
- Posts: 60567
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: +++ BREAKING NEWS: XY Switches Programming Language +++
There is not much VB6 in XY. It's mostly API.
This is VB6. Currently find no way how to do this in net:
This is VB6. Currently find no way how to do this in net:
Code: Select all
Private Declare Function SHGetPathFromIDListW Lib "shell32" ( _
ByVal pidl As Long, _
ByVal pszPath As Long) As Long
...
Dim bPath(0 To MAX_PATH * 2 - 1) As Byte
ret = SHGetPathFromIDListW(pidl, VarPtr(bPath(0))) 'pidl comes from elsewhere, fully qualified
sPath = CStr(bPath)
FAQ | XY News RSS | XY Twitter
-
- Site Admin
- Posts: 60567
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: +++ BREAKING NEWS: XY Switches Programming Language +++
This does not work (returns: ret = 0, buff = ""):
Code: Select all
Dim buff As New StringBuilder(" ", MAX_PATH)
ret = SHGetPathFromIDListW(pidl, buff)
FAQ | XY News RSS | XY Twitter
Re: +++ BREAKING NEWS: XY Switches Programming Language +++
I guess VB.NET sucks even worse than VB6.
Kyle Alons
https://www.kinook.com
https://www.kinook.com
-
- Site Admin
- Posts: 60567
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: +++ BREAKING NEWS: XY Switches Programming Language +++
Where do I find good code samples for dotnet (VB or C#, I don't care which)? Somehow I find it hard to google my way to anything useful.
E.g., I need some starting point for how to use EnumDisplayMonitors...
FAQ | XY News RSS | XY Twitter
Re: +++ BREAKING NEWS: XY Switches Programming Language +++
Stackoverflow is my first first source for C#
You will find here questions and solutions for everything.
The biggest community for Vb.net is for sure the Visual Basic.NET Forums
You'll find in the Codebank practical code examples using Visual Basic .NET
You will find here also many good and well-known german developers, e.g. Olaf Schmidt the guy behind the vbRichClient5 framework
-
- Site Admin
- Posts: 60567
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: +++ BREAKING NEWS: XY Switches Programming Language +++
Thanks for the tips!
BTW, Olaf Schmidt is the guy who once planned to write a 64-bit compiler for VB6. He was my hope. Didn't work out obviously. He also took part in my old VBspeed project.
BTW, Olaf Schmidt is the guy who once planned to write a 64-bit compiler for VB6. He was my hope. Didn't work out obviously. He also took part in my old VBspeed project.
FAQ | XY News RSS | XY Twitter
Re: +++ BREAKING NEWS: XY Switches Programming Language +++
http://xbeat.net/vbspeed/ When can we expect VBNetspeed?
Yes, Olaf was the only man who could have brought it. I think he gave up on Vb6 in the end too. Although in the vbforums he is still active.
-
- Site Admin
- Posts: 60567
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: +++ BREAKING NEWS: XY Switches Programming Language +++
This is gold when you come from VB6: The immediate window knows Unicode!!! Nerdfest...
- Attachments
-
- ImmediateWindowUnicode.png (2.21 KiB) Viewed 4142 times
FAQ | XY News RSS | XY Twitter
Re: +++ BREAKING NEWS: XY Switches Programming Language +++
Regarding
I'm really looking forward the the "new" regex engine. Look-behinds, ftw!
Re: +++ BREAKING NEWS: XY Switches Programming Language +++
I'm sorry Don, but I am reeeeeaaaally curious about the migration process.
Are you still at the stage of exploring the "new" possibilities?
Have you already got running the "core" XYplorer gui?
Any real wtf moments so far?
Are you still at the stage of exploring the "new" possibilities?
Have you already got running the "core" XYplorer gui?
Any real wtf moments so far?