Archived

This topic is now archived and is closed to further replies.

GetProcAddress probs

This topic is 6198 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have a variable of type FARPROC which I want to use to execute a function in a DLL. I created the DLL (all it does right now is add a number together... just for testing purposes), but my program crashes when it tries to execute the function. If someone could tell/show me how to properly use it, I''d be very gratefull.

Share this post


Link to post
Share on other sites
http://www.gamedeveloper.net has a "Using DLL" example in the Code Snippets Section. Maybe it can help you.

Regards,
Jumpster

Share this post


Link to post
Share on other sites
I found "Using interfaces with DLLs". You were refering to this, correct? It did help a bit, but I''m still unsure as to how to use a DLL to dynamically assign a real function to a member function pointer within a class. Maybe a better question would be "Is there a better way I could be doing this?".

Maybe I''ll just look into scripting and leave DLLs for another day.

Share this post


Link to post
Share on other sites
No, that''s not what I was referring too.

On that site there''s a few boxes on the left. Looking at the one that says "Development" click on the Code Snippets option.

From here on, you''ll be looking at the box on the right:

C/C++->Misc

On the table that displays, check these segments out:

"Dynamic DLL''s using C/C++" and
"Using DLL''s with C/C++"

Regards,
Jumpster

Share this post


Link to post
Share on other sites
Ohhhh! GameDeveloper.net! I read that as "gamedev.net". Thanks for clearing that up!

Share this post


Link to post
Share on other sites