Jump to content
  • Advertisement

Archived

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

A. Buza

GetProcAddress probs

This topic is 6379 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
Advertisement
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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!