|
|
Lite-C and SDK plug-in problem
#310910
02/17/10 16:46
02/17/10 16:46
|
Joined: Jan 2010
Posts: 3 Dominican Republic
Dartacan
OP
Guest
|
OP
Guest
Joined: Jan 2010
Posts: 3
Dominican Republic
|
Hi guys. I compile the “GStudio7\sdk_pugin\sampledll” and copy the sampledll.dll in the “acknex_plugins” folder. I build a application (test.exe) to communicate between Game Studio project (shooter_Demo) and test.exe. I don’t have any problem if I try to call some DLL function inside game studio, but I have problem when I try to call this function inside the test.exe. To probed this DLL I create other simple function inside this sampledll.dll, the function is “int Sum(long a, long b);” when I call this function in the test.exe it function work perfect. I try to change the mouse coordinate in the game studio project and I want to use other external .exe software to do that, but I always have “Access Violation”. Look this sample: ****** sampledll.dll **** …. DLLFUNC void ZoomIn(var value) { // decrease the camera FOV by the value v(camera).arc -= value; } DLLFUNC int Sum(long a, long b) { // I create this simple function Return a+b; }
******* test.exe ******** … extern "C" _declspec(dllimport)void ZoomIn(long value); extern "C" _declspec(dllimport)int Sum(long a, long b);
… Void TForm1::ButtonClick(TObject *Sender) { Int aux=Sum(2,3);// It work PERFECT ZoomIn(30);// It have a access violation message. Yes, the gstudio A7 project (shooter_demo) is working. } Anybody knows what happening here?
********** ANIME3D 3DS Max **********
|
|
|
Re: Lite-C and SDK plug-in problem
[Re: Lukas]
#310926
02/17/10 17:21
02/17/10 17:21
|
Joined: Jan 2010
Posts: 3 Dominican Republic
Dartacan
OP
Guest
|
OP
Guest
Joined: Jan 2010
Posts: 3
Dominican Republic
|
Sorry about double post. My real problem is try to change any Entity, Var, Panel or Vector property in the game studio through an external .exe application. For sample, If I call, in the .exe application, the ZoomIn() function to change the camera parameters(in the sampledll.dll I use the DLLFUNC void ZoomIn(var value) function) then I have an access violation message. I want change any game studio vector through an external .exe application. Yes ,I use a DLL plug-in to do that but all function send me an access violation message.
Last edited by Dartacan; 02/17/10 17:23.
********** ANIME3D 3DS Max **********
|
|
|
|