Original Post
I am using a DLL to plug my game-specific code into a generic engine. I need to let the DLL know about all the subsystem objects (graphics, input, timer, sound, etc.) in the calling application. I pass pointers (to the subsystem objects) to the DLL when it is loaded, and I then use these pointers within the DLL to access the subsystems from within the game-specific code.
At least, that is my desire. The DLL doesn''t seem to like referring to memory that is not in its own space. So how would I go about getting the DLL to use the subsystem objects allocated by the calling application?
Thanks in advance,
Mike