[TOPIC CLOSED] +++ BREAKING NEWS: XY Switches Programming Language +++

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Locked
admin
Site Admin
Posts: 60567
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

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

Post by admin »

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

MBaas
Posts: 580
Joined: 15 Feb 2016 21:08

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

Post 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...
______________________________________________
Happy user ;-)

admin
Site Admin
Posts: 60567
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

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

Post 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)


admin
Site Admin
Posts: 60567
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

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

Post by admin »

This does not work (returns: ret = 0, buff = ""):

Code: Select all

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

kinook
Posts: 93
Joined: 22 Jul 2008 18:48
Contact:

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

Post by kinook »

I guess VB.NET sucks even worse than VB6.

GitCoder
Posts: 30
Joined: 03 Jul 2019 07:39

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

Post 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#

admin
Site Admin
Posts: 60567
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

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

Post 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...

Leito
Posts: 561
Joined: 26 Sep 2016 15:37
Location: Windows 10 1809 x64

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

Post by Leito »


GitCoder
Posts: 30
Joined: 03 Jul 2019 07:39

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

Post 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

admin
Site Admin
Posts: 60567
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

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

Post 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.

GitCoder
Posts: 30
Joined: 03 Jul 2019 07:39

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

Post 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.

admin
Site Admin
Posts: 60567
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

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

Post by admin »

This is gold when you come from VB6: The immediate window knows Unicode!!! :beer: Nerdfest... :party:
Attachments
ImmediateWindowUnicode.png
ImmediateWindowUnicode.png (2.21 KiB) Viewed 4141 times

Filehero
Posts: 2644
Joined: 27 Feb 2012 18:50
Location: Windows 10 Pro x64

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

Post 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!

Filehero
Posts: 2644
Joined: 27 Feb 2012 18:50
Location: Windows 10 Pro x64

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

Post 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?

Locked