![]() [Request] Loading DLL - Printable Version -Shoutbox (https://shoutbox.menthix.net) +-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58) +--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4) +---- Forum: Scripting (/forumdisplay.php?fid=39) +----- Thread: [Request] Loading DLL (/showthread.php?tid=74408) [Request] Loading DLL by S4KurA_^ on 05-15-2007 at 08:00 PM
Hi erveryone, code: Now, the C++ source file code: And a part of my script file : code: I've a copy/paste the dll file into Windows system directory and know that the script has found and load it. But an unkown error occured when calling Interop.Call()... Has someone an idea ? I thank you all in advance for your help Cheers, S4KurA_^ PS : Sorry for by english, but I try to do my best
RE: [Request] Loading DLL by S4KurA_^ on 05-15-2007 at 08:25 PM
Hmmm have found the solution : the function is exported by Dev-C++ with an other name that specified... then Interop.Call() can't find the function within the DLL. RE: [Request] Loading DLL by Patchou on 05-15-2007 at 10:55 PM that's because of the "extern C++" directive. Replace that by "extern C" when declaring the function and its name should not be decorated. RE: [Request] Loading DLL by S4KurA_^ on 05-16-2007 at 07:41 AM
|