Archived

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

A. Buza

GetProcAddress probs

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
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