[Mono-list] DLL Created in Visual Basic 6.0 can run on cross platform

Bojan Rajkovic bojanr at brandeis.edu
Tue May 19 21:29:04 EDT 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
 
Sergio A. Hernandez wrote:
> VB 6.0 is not .net nor asp so you can't use the GAC because this dll
> is not a .NET assembly.
> However you can try to use a pinvoke
> you must include System.Runtime.InteropServices
> //pinvoke
> using System.Runtime.InteropServices
> [DllImport(Library)]
> private extern static /datatype/ /name/(x,...)
> ...
> public /function/(x, ...)
>
> It is the only thing I can suggest you.
> But, honestly dont think will work.
>
It won't work because Mono doesn't know how to load Windows DLL's, and
even if it did, there's no VB runtime, and a whole host of other
things that the Visual Basic 6 Windows code needs are missing on
Linux, and Mono doesn't emulate them. Try the Wine project, it can run
a good chunk of native Windows applications.

Regards,
Bojan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
 
iQIcBAEBAgAGBQJKE1zgAAoJEO4IwQyHg9AWPv8QALAGW3+fTxi9VQgZzUBAXhqK
pb9qWGPiLZuar2x1V82Jd9E+46j6Q4jLvBlyvAwr0HwifHE8TLDrFYx3066mslMP
h38SzmVVGDfwwLB0sIT1OCxo8x4RPFy0/x4PUXh0V7gIEz7Cd9TFhS6rt6LMJHh8
mRBO7YO1BqHLM/W2k8louaTC4swiR0125N3YGlQw5mho9SXH/8gA2esjZTvscOhG
+YAaPMa5nXgcPHnQ3jm7QLKpAzdivqKY8citYU4+0xP6lM+6/PRXLJiBJ3C2Dj+Z
eNOU2AYdplXYH27b1PxtkMw5xJFOI0Zwe5sk/XbrCB88pOj6XXrThIY8nRen92MW
UaJ/bonXA+pR6L1rWUtMRhkUQqisY/NQr/aJTgGBGItEY7rMNyMqMBL1D2ZfwdXR
JYXUTAU0uAhtWKoIXB/GC+Gm2Dh0ypifRZjmfiX/CWN4A4eoMfV4ouFrWahyCiIA
nQdR5+BFStPx5ycOD2pDMWDMaEzet6hiofUcaYJcz+zAGITbhxpL1Cs+uM9LPqeN
G4AvbGGL7kcCAMFaeFEeE5FNmVJsxtbxysX+YxEgWe+7BeG26TnR5FudPm1T/BSQ
djFMIuBJRcS1botfXSzDMRJt8hTYNywhW1LV0VQzlX882Msj2Tpr8KlrjUOxUVRa
5C2ia23YrVrTl/bDpIqe
=SYEJ
-----END PGP SIGNATURE-----



More information about the Mono-list mailing list