Page 8 of 17

Re: +++ BREAKING NEWS: XY Switches Programming Language +++

Posted: 18 Jun 2020 15:54
by admin
MBaas wrote: 18 Jun 2020 15:12 Humble . net, no VB😉
Ever used SHGetPathFromIDListW?

Re: +++ BREAKING NEWS: XY Switches Programming Language +++

Posted: 18 Jun 2020 16:21
by MBaas
Apologies for injecting a short german phrase: "Das ist aber nicht net!" ;-)
Well, this is Win32API - sorry, rarely used API and never that function...

Re: +++ BREAKING NEWS: XY Switches Programming Language +++

Posted: 18 Jun 2020 17:35
by admin
:) There is not much VB6 in XY. It's mostly API.

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)

Re: +++ BREAKING NEWS: XY Switches Programming Language +++

Posted: 18 Jun 2020 18:37
by kinook

Re: +++ BREAKING NEWS: XY Switches Programming Language +++

Posted: 18 Jun 2020 19:10
by admin
This does not work (returns: ret = 0, buff = ""):

Code: Select all

        Dim buff As New StringBuilder(" ", MAX_PATH)
        ret = SHGetPathFromIDListW(pidl, buff)

Re: +++ BREAKING NEWS: XY Switches Programming Language +++

Posted: 18 Jun 2020 23:04
by kinook
I guess VB.NET sucks even worse than VB6.

Re: +++ BREAKING NEWS: XY Switches Programming Language +++

Posted: 19 Jun 2020 11:20
by GitCoder
kinook wrote: 18 Jun 2020 23:04 I guess VB.NET sucks even worse than VB6.
Indeed, as the only usable lang from the .Net universe is C#
VB.NET is perverse

I would never switch from vb to vb.net if it wasn't for c#

Re: +++ BREAKING NEWS: XY Switches Programming Language +++

Posted: 19 Jun 2020 18:35
by admin
GitCoder wrote: 19 Jun 2020 11:20Indeed, as the only usable lang from the .Net universe is C#
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...

Re: +++ BREAKING NEWS: XY Switches Programming Language +++

Posted: 19 Jun 2020 20:15
by Leito

Re: +++ BREAKING NEWS: XY Switches Programming Language +++

Posted: 19 Jun 2020 21:41
by GitCoder
admin wrote: 19 Jun 2020 18:35
GitCoder wrote: 19 Jun 2020 11:20Indeed, as the only usable lang from the .Net universe is C#
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...
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

Re: +++ BREAKING NEWS: XY Switches Programming Language +++

Posted: 20 Jun 2020 07:50
by admin
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.

Re: +++ BREAKING NEWS: XY Switches Programming Language +++

Posted: 20 Jun 2020 11:43
by GitCoder
admin wrote: 20 Jun 2020 07:50 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.
:shock: http://xbeat.net/vbspeed/ When can we expect VBNetspeed? :mrgreen:
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.

Re: +++ BREAKING NEWS: XY Switches Programming Language +++

Posted: 21 Jun 2020 18:01
by admin
This is gold when you come from VB6: The immediate window knows Unicode!!! :beer: Nerdfest... :party:

Re: +++ BREAKING NEWS: XY Switches Programming Language +++

Posted: 26 Jun 2020 21:00
by Filehero
Regarding
admin wrote: 21 Jun 2020 18:01 This is gold when you come from VB6: ...
I'm really looking forward the the "new" regex engine. Look-behinds, ftw!

Re: +++ BREAKING NEWS: XY Switches Programming Language +++

Posted: 01 Jul 2020 21:02
by Filehero
I'm sorry Don, but I am reeeeeaaaally curious about the migration process. :ninja:

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?