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.

DLL Talk / any way to access DBP objects from a dll?

Author
Message
jasonhtml
20
Years of Service
User Offline
Joined: 20th Mar 2004
Location: OC, California, USA
Posted: 16th May 2005 23:48
is it possible to access and manipulate objects that have been already loaded by DBP? if so, how do you do it? also, is it possible to use DBP commands in your dll?

Thx in advance

Deathquest: 95% (MMORPG)
DD Studios Website: http://www.geocities.com/jasonhtml/
DD Studios Forum: http://s6.invisionfree.com/DD_Studios_Forum
TKF15H
21
Years of Service
User Offline
Joined: 20th Jul 2003
Location: Rio de Janeiro
Posted: 17th May 2005 02:42
yes, it is possible. You need the TPCSDK, or IanM's library (easy way). Or you could get the handle of the 3D dll then load pointers to the DBP commands inside (fun way).

IanG
20
Years of Service
User Offline
Joined: 25th Sep 2004
Location: Cyberspace
Posted: 17th May 2005 06:02
there is a TPCSDK?
IanM's discontinued his library - the tgc asked him to

Used to be Phoenix_insane registered in september 2003 despite what the date says to the left <--
PC - amd athlon 2.0ghz, 512mb, GeForce FX 5200 128mb, 200gb, xp pro sp2
jasonhtml
20
Years of Service
User Offline
Joined: 20th Mar 2004
Location: OC, California, USA
Posted: 17th May 2005 10:07
@TKF15H: where do you find the tpcsdk? and how do you get the handle for the 3d dll?

Deathquest: 95% (MMORPG)
DD Studios Website: http://www.geocities.com/jasonhtml/
DD Studios Forum: http://s6.invisionfree.com/DD_Studios_Forum
Lost in Thought
20
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 17th May 2005 14:47
The only one I know of is here though it is sadly very outdated.

http://developer.thegamecreators.com/?f=t03/index

jasonhtml
20
Years of Service
User Offline
Joined: 20th Mar 2004
Location: OC, California, USA
Posted: 17th May 2005 23:35
um.. thats just the dll tutorial that comes with the DBP help files...

Deathquest: 95% (MMORPG)
DD Studios Website: http://www.geocities.com/jasonhtml/
DD Studios Forum: http://s6.invisionfree.com/DD_Studios_Forum
TKF15H
21
Years of Service
User Offline
Joined: 20th Jul 2003
Location: Rio de Janeiro
Posted: 18th May 2005 11:32
1) download the 5.8 globstruct that's in the sticky.
2) Start a DLL project in VS6
3) #include <globstruct.h>
4) use the following function to get the globstruct pointer:

It will be called automaticly from DBP.
5) Once you have the globstruct pointer, you can do this to load a command:

6) Finally, you can just call RotateObject( objectNumber, angleX, angleY, angleZ);

jasonhtml
20
Years of Service
User Offline
Joined: 20th Mar 2004
Location: OC, California, USA
Posted: 19th May 2005 09:43 Edited at: 19th May 2005 09:52
thx! ill try that!

edit: but i have a question, why the spaces in...

is that required, or no?

Deathquest: 95% (MMORPG)
DD Studios Website: http://www.geocities.com/jasonhtml/
DD Studios Forum: http://s6.invisionfree.com/DD_Studios_Forum
TKF15H
21
Years of Service
User Offline
Joined: 20th Jul 2003
Location: Rio de Janeiro
Posted: 19th May 2005 10:59
nah, C/C++ ignores all the spaces. It's just that I copied-pasted this code from my own interface library, where it made more sense to have spaces there for some reason.

jasonhtml
20
Years of Service
User Offline
Joined: 20th Mar 2004
Location: OC, California, USA
Posted: 20th May 2005 00:36
ok, ill just take them out then... they look wierd to me

Deathquest: 95% (MMORPG)
DD Studios Website: http://www.geocities.com/jasonhtml/
DD Studios Forum: http://s6.invisionfree.com/DD_Studios_Forum

Login to post a reply

Server time is: 2024-11-23 10:11:28
Your offset time is: 2024-11-23 10:11:28