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 / Creating library runtime events?

Author
Message
Raven
19
Years of Service
User Offline
Joined: 23rd Mar 2005
Location: Hertfordshire, England
Posted: 4th Mar 2006 11:53
Alright I'm not entirely sure how to do this, as my understanding of DLLs is still quite limited; but does anyone know how I would go about making something similar to the Core functions (Constructor/Destructor/RecieveCoreDataPtr)?

I know that they're probably symbol functions that are set-up to message events; but I'm just wondering how the data on which DLLs have been loaded is gathered. I mean how does it know which libraries are avaiable and attached; unless it is actually attaching them? Which would in turn raise the question of how does DBP tell the Core what needs to be saved and loaded?

I'm probably over-thinking this as usual, but someone should know how to do this.

empty
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: 3 boats down from the candy
Posted: 4th Mar 2006 13:37 Edited at: 4th Mar 2006 13:39
Although I'm not quite sure what you want, the process is quite simple. When (the framework of) a DBpro app launches and has extracted the virtual.dat file, the DLLs and eventually the media (that info is taken from the virtual.dat file), it loads each DLL and calls the Constructor functions (if available), stores the handles of those libraries in the global structure, after that it calls the ReceiveCoreDataPtr function in each DLL (if available) and when the app quits it call the Destructor functions (if available).

Raven
19
Years of Service
User Offline
Joined: 23rd Mar 2005
Location: Hertfordshire, England
Posted: 6th Mar 2006 20:17 Edited at: 6th Mar 2006 20:33
Yeah, I was thinking that it has something to do with the virtual.dat; which is saved with a non-encrypt LHZ. My problem more is I know what I want to do, just lacking the knowledge on how to actually achieve it.

I was thinking the way to go about it was to make a new Event that's handled by the message queue; then run the DLLs that have been loaded with a boolean check in the main class for when they load, plus the handle.. similar to what the current Core has.

It's just figuring out how to have these functions run automatically simply from being prototyped and exported. Don't currently know how to do that.

[edit] just checked my e-mail and got a response from lee with code, so i'm happy now. Think i know how to go about it now.

Lost in Thought
20
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 7th Mar 2006 01:34
Lee is the fastest to reply from emails of all TGC and most other businesses.

Raven
19
Years of Service
User Offline
Joined: 23rd Mar 2005
Location: Hertfordshire, England
Posted: 7th Mar 2006 02:38
Yeah, true. The code he sent me helped, although there are a few aspects. No doubt more because it's code copied directly from the Core.dll, so some of the functions and structures he's used are his own device.

Think for now, I'll work by hi-jacking the Window and creating my own to create the message queue. Just hope that it doesn't bugger up the normal DBP operations. Problem with e-mail over messenger to talk to Mike & Lee is you can't exactly get responses quickly enough. Shame really. Not that Lee really ever goes on MSN (even though he's probably still up )

Login to post a reply

Server time is: 2024-11-22 00:06:39
Your offset time is: 2024-11-22 00:06:39