Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / dbLoadObject in dll?

Author
Message
E3ddy
13
Years of Service
User Offline
Joined: 25th Jul 2010
Location:
Posted: 30th Jul 2010 20:21
hello guys i was wondering if you could load the objects with the command dbLoadObject inside a dll?
E3ddy
13
Years of Service
User Offline
Joined: 25th Jul 2010
Location:
Posted: 31st Jul 2010 00:16
Hello everyone I give more specific:

when I try to load the DLL that contains:



# Include "DarkGDK.h"
# Include "SC_Collision.h"

# Define DLL extern "C" __declspec (dllexport)


DLL DWORD crealivello (void)


(

SC_Start ();
dbLoadObject (base gramde.3ds ", 1);
SC_SetupComplexObject (1,1,2);


dbLoadImage ("1.jpg", 1);
/ / DbTextureObject (1.1);
/ / DbPositionObject (1, -600.0, -100);
/ / DbScaleObject (1,3000,3000,3000);


/ / Sky
dbLoadObject (Pln.x ", 2);
/ / We dont need it to Respond to know light switches light off
dbSetObjectLight (second, 0);
/ / Create the box off for the sky
dbScaleObject (2, 30000, 30000, 30000);
/ / Adjust the texture of the sky
dbSetObjectTexture (2, 3, 1);
dbPositionObject (2,0,0,0);

/ / Diecast
dbLoadObject (humvee.x ", 3);
dbPositionObject (3,40,0,100);
SC_SetupObject (3,1,2);
SC_AllowObjectScaling (3);
dbScaleObject (3,13,13,13);
SC_UpdateObject (3);

/ / Scale
dbLoadObject (scale.x ", 4);
dbPositionObject (4,60,0,100);
SC_SetupObject (4,1,2);
SC_AllowObjectScaling (4);
dbScaleObject (4,30,13,13);
SC_UpdateObject (4);

/ / Scalona
dbLoadObject (scale.x ", 4);
dbPositionObject (4,60,0,100);
SC_SetupObject (4,1,2);
SC_AllowObjectScaling (4);
dbScaleObject (4,30,13,13);
SC_UpdateObject (4);

return 0;
)


and file. "exe" to write:


dbLoadDLL (dll.dll ", 1);
dbCallDLL (1, "crealivello");

I says:

Unhandled exception at 0x00000000 in FPS.exe: 0xC0000005: Access violation.


you know tell me how to avoid the problem seems that you can not find the file ..

Despite all the files are in the folder:

C: \ the Users \ User \ Desktop \ FPS \ FPS \

Login to post a reply

Server time is: 2024-07-02 09:20:14
Your offset time is: 2024-07-02 09:20:14