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 / What can you do with globstuct.h besides use strings(and how)

Author
Message
Three Score
19
Years of Service
User Offline
Joined: 18th Jun 2004
Location: behind you
Posted: 15th Jun 2005 02:56
I have looked at the header file some but do not quite understand it all and i cant understand how u could possibly go about using it besides printtext and createdeletestring

formerly shadows of emptiness
TKF15H
20
Years of Service
User Offline
Joined: 20th Jul 2003
Location: Rio de Janeiro
Posted: 15th Jun 2005 03:06
You can call any DarkBasic command with it. I explained how in an older thread, lemme look for it...

Three Score
19
Years of Service
User Offline
Joined: 18th Jun 2004
Location: behind you
Posted: 15th Jun 2005 03:10
thanks
and can u even call dlls that u made such as if u made your own dll, put it into the plugins-user, called 1 of the commands in dbp then could u also call any other commands from that dll

formerly shadows of emptiness
TKF15H
20
Years of Service
User Offline
Joined: 20th Jul 2003
Location: Rio de Janeiro
Posted: 15th Jun 2005 03:17
You don't need the globstruct to call custom plugins, all you need is a windows function which I can't seem to remember right now (GetModuleHandle? something like that). It will give you the handle to the DLL you want. Then just use GetProcAddress to get the pointer to the function you want to call.

Eddie B
18
Years of Service
User Offline
Joined: 10th Apr 2005
Location:
Posted: 15th Jun 2005 03:19
Quote: "GetModuleHandle"


Yeah, Thats the one

TKF15H
20
Years of Service
User Offline
Joined: 20th Jul 2003
Location: Rio de Janeiro
Posted: 15th Jun 2005 03:26
Ah, good... now if only I could remember what that other thread's topic was.

Three Score
19
Years of Service
User Offline
Joined: 18th Jun 2004
Location: behind you
Posted: 15th Jun 2005 03:28
I found it!
http://forum.thegamecreators.com/?m=forum_view&t=54138&b=18

it is just a post u made not a topic though

formerly shadows of emptiness
TKF15H
20
Years of Service
User Offline
Joined: 20th Jul 2003
Location: Rio de Janeiro
Posted: 15th Jun 2005 03:30
I said I explained in a thread, I didn't say I started the thread.

Three Score
19
Years of Service
User Offline
Joined: 18th Jun 2004
Location: behind you
Posted: 15th Jun 2005 03:34
oh well at first i was looking for threads

umm
so i will use your little template and then at the end u just have the last part of the strintable right(wow it is pretty cool)

formerly shadows of emptiness
TKF15H
20
Years of Service
User Offline
Joined: 20th Jul 2003
Location: Rio de Janeiro
Posted: 15th Jun 2005 03:43
Yeah, but remember to change the function's type accordingly, or you'll be getting random crashes...
int (*sync)( int, char, float, pie ); // Will probably crash, as the sync function doesn't expect those parameters.
Also, after GetProcAddress, make sure to verify that it didn't return 0, as calling that will certainly send you back to the debugger.

I'm at work right now, but at home I have a set of .H files that you just include to your project to add all these commands. I can send it to your e-mail if you like.

Three Score
19
Years of Service
User Offline
Joined: 18th Jun 2004
Location: behind you
Posted: 15th Jun 2005 14:40
yes please send them to me
(i had the idea of creating those before so good thing u posted before i made something that has already been done)

formerly shadows of emptiness

Login to post a reply

Server time is: 2024-03-29 05:51:58
Your offset time is: 2024-03-29 05:51:58