mob/verb/test()
world<<"Returns:"
world<<call("test.dll","conv")(2000)
world<<"Done returning"
DLL Code:
#include <windows.h>
BOOL WINAPI DllMain()
{
return 1;
}
extern "C" __declspec(dllexport) char conv(int z)
{
char q=char(z);
return q;
}
Problem description:
I want it to return "2000" (don't ask me why) however, in DS only "Returns:" message appers, and nothing after it. Any tips why it happens like that?
extern "C" __declspec(dllexport) char * function(int argc, char ** argv)
argc will tell you how many elements are in argv, just like with the main function.