Yes, it's on VB6 without any wrappers, only with the VBAdvance Addin for VB's IDE. If some people worked with that addin, they will know that is possible to use all the VB functions on standard dlls, instead another ways that using VB functions will crash the application.
** if you don't have vbAdvance, you aren't able to compile this project... so, try to find vbAdvnace on google **
Well, for the Strings return on functions, i've used a trick. The code returns a Long value, that is a pointer to the String that you want to return.
That pointer it's a portion of memory, allocated by VirtualAlloc. And of course, when LCDSmartie calls the function again, the pointer used before its cleared and deallocated.
In this example, i've included 2 functions: a standard hello world and a function that says the name of the active window.
For the first function:
Code: Select all
$dll(cocuslcd,1,hello,other)
Code: Select all
VB6: hello ; other
Code: Select all
$dll(cocuslcd,2,,)
Code: Select all
LCD Smartie · Post a new topic - Mozilla Firefox

It's under Creative Commons BY-NC license

PD: Sorry for my bad english
