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

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
admin
Site Admin
Posts: 49013
Joined: 22 May 2004 16:48
Location: Cologne, Win 8.1, Win 10
Contact:

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

Post by admin » 18 Jun 2020 15:54

MBaas wrote:
18 Jun 2020 15:12
Humble . net, no VB😉
Ever used SHGetPathFromIDListW?
FAQ | XY News RSS | XY Twitter | Stay home! 🎸 Wear a mask! 😷

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

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

Post by MBaas » 18 Jun 2020 16:21

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: 49013
Joined: 22 May 2004 16:48
Location: Cologne, Win 8.1, Win 10
Contact:

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

Post by admin » 18 Jun 2020 17:35

:) 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)
FAQ | XY News RSS | XY Twitter | Stay home! 🎸 Wear a mask! 😷


admin
Site Admin
Posts: 49013
Joined: 22 May 2004 16:48
Location: Cologne, Win 8.1, Win 10
Contact:

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

Post by admin » 18 Jun 2020 19:10

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 | Stay home! 🎸 Wear a mask! 😷

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

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

Post by kinook » 18 Jun 2020 23:04

I guess VB.NET sucks even worse than VB6.

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

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

Post by GitCoder » 19 Jun 2020 11:20

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: 49013
Joined: 22 May 2004 16:48
Location: Cologne, Win 8.1, Win 10
Contact:

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

Post by admin » 19 Jun 2020 18:35

GitCoder wrote:
19 Jun 2020 11:20
Indeed, 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...
FAQ | XY News RSS | XY Twitter | Stay home! 🎸 Wear a mask! 😷

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

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

Post by Leito » 19 Jun 2020 20:15


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

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

Post by GitCoder » 19 Jun 2020 21:41

admin wrote:
19 Jun 2020 18:35
GitCoder wrote:
19 Jun 2020 11:20
Indeed, 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: 49013
Joined: 22 May 2004 16:48
Location: Cologne, Win 8.1, Win 10
Contact:

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

Post by admin » 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.
FAQ | XY News RSS | XY Twitter | Stay home! 🎸 Wear a mask! 😷

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

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

Post by GitCoder » 20 Jun 2020 11:43

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: 49013
Joined: 22 May 2004 16:48
Location: Cologne, Win 8.1, Win 10
Contact:

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

Post by admin » 21 Jun 2020 18:01

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 1388 times
FAQ | XY News RSS | XY Twitter | Stay home! 🎸 Wear a mask! 😷

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

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

Post by Filehero » 26 Jun 2020 21:00

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: 2358
Joined: 27 Feb 2012 18:50
Location: Windows 10 Pro x64

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

Post by Filehero » 01 Jul 2020 21:02

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?

Post Reply