VB6 does not compile projects correctly in linux

Questions about Wine on Linux
Locked
eximalus
Level 1
Level 1
Posts: 7
Joined: Mon Aug 01, 2022 12:51 am

VB6 does not compile projects correctly in linux

Post by eximalus »

I am using Debian 12 and wine 9

Wine does not load MSVBVM6.DLL (VBRUN library) in IDE and every constants and variables that refer to that are not available in IDE and compiling stage!

For example color variables like vbRed, vbBlack, vbGreen ... are not available! These variables are not defined in IDE and compiler set them as zero if you did not added 'Option Explicit' in source code. (Basic set variables as zero by default)

And if you add Option Explicit to source code, you get an error (screenshot #1) tell you variables are not defined.

I tried both wine 32bit and 64bit modes and also tried regsvr32 to register dll but there is no VBRUN library in IDE available in wine. but as you see it is available in Windows (screenshot #3) .

So every compiled vb6 exe in wine could be return incorrect results because VBRUN library (msvbvm6.dll) is the main dll of VB6.

example source code attached.
Attachments
vb.zip
(189.08 KiB) Downloaded 346 times
screenshot3.png
screenshot1.png
User avatar
DarkShadow44
Level 9
Level 9
Posts: 1338
Joined: Tue Nov 22, 2016 5:39 pm

Re: VB6 does not compile projects correctly in linux

Post by DarkShadow44 »

I'd like to test, but for me VB06 doesn't even install...
Locked