Problem with DLL

Posted By: TWO

Problem with DLL - 04/07/07 09:59

Ok, I've got a problem while converting with my DLL from C-Script to Lite-C. In C-Script it worked, but in Lite-C the engine finds the DLL but when I call a function it crashes.

DLL
Code:

DLLFUNC void Net_Pseudo()
{
}



Lite-C
Code:

void Net_Pseudo();

void main()
{
dll_open("A6Network.dll");

Net_Pseudo();
}


Posted By: Tor

Re: Problem with DLL - 04/07/07 10:52

Yea... this is the really silly thing about the .dll plugins for LiteC.

You have to make a c-script file of the same name as your .c file, and give it the DLLPATH to your .dll plugin directory

DLLPATH "./"; or was it DLLPATH ".";

one or the other. Yea. It doesn't actually see your .dll. It will tell you if it loads it on the screen at the startup.

.dll's are fun
Posted By: TWO

Re: Problem with DLL - 04/07/07 11:06

WoooT.

THIS IS NOT IN THE MIGRATION GUIDE Mr JCL

Ok, very much thanks Tor

Edit: Ok, this is in the guide, my fault.
© 2024 lite-C Forums