PDA

View Full Version : Every Thing But VB6?



sfbm
02-01-2008, 17:35
Hi,

Ok I'm New So Be Gentle With Me, I See All The Usual Suspects Here Bar VB?

sfbm

Michael Hartlef
02-01-2008, 18:41
Hi and welcome. :)

VB6 isn't compiled in the normal way, means that it can create regular DLLs. So I think that it is impossible to create an SDK for VB6.

kryton9
02-01-2008, 18:44
I will just ditto what Mike said.

Petr Schreiber
02-01-2008, 19:53
Hi,

last Visual BASIC I tried was version 3 in Windows 3.1 :),
but found following for VB6:

http://www.vb-helper.com/howto_make_standard_dll.html

So ... theoretically yes ?


Bye,
Petr

ErosOlmi
02-01-2008, 23:10
sfbm,

first welcome here. Be sure you will find this place a nice place where to talk about everything on technology with pure passion. No need to ask to be gentle, really ;)

Back to the question. It is an interesting question. I regularly use VB6 at work for some projects. I suppose we can create a SDK for thinBasic using VB6. I need to make some tests but thinking about it it seems possible. The biggest problem in creating modules for thinBasic using VB is the need to redistribute VB runtime (MSVBVM60.DLL in case of VB6).

As soon as I will have a little spare time, I will try to put something together as a started SDK, just to test if it is possible.

Ciao
Eros

sfbm
06-01-2008, 20:46
Hi,

All - Thanks For The Reply's, I Use VBAdvance (An Addin To Control The VB Compiler Process - http://www.vbadvance.com/download.aspx It's Now Freeware Although I've Been A Registered User Since It's Launch) You Can Add Exports To Dll's So That Should'nt Be An Issue. Incedtially With Tweakvb http://www.tweakvb.com/ You Can 'Add Inline-Assembly' And 'Statically link Assembler or C modules directly into your compiled Visual Basic executables' So There's Plenty Of Life Left In VB Classic.

Psch - Yeah, Several More At PlanetSourceCode.com But I've Never Had Any Issed With vbAdvance.

Eros - If You Get Time, I'd Certainly Be Very Interested As VB6 Is Still My Main Tool Of Choice.

sfbm

ErosOlmi
06-01-2008, 22:38
OK, I did a little step in this direction.

Googling around about creating standard DLL in VB6 it seems it is not possible. The only kind of DLL that VB6 can produce seems ActiveX DLLs that are something completely different.

But, I found an interesting document here: http://www.windowsdevcenter.com/pub/a/windows/2005/04/26/create_dll.html?page=1
It seems it is just a matter of linker plus few other things. I followed the method described in the document, I created a proxy linker, mainly a fake linker that intercept VB6 linking process command line, understand it and change on the fly command line passing to real linker a modified command.

Well, to make the story short, I was able to create a standard DLL using VB6 and I was able to use it exactly like all other DLL. This is the first step but the most important one.

I will try to go on in next days but it seems quite possible to have a thinBasic SDK for VB6. Stay tuned.

Ciao
Eros