Jump to content
  • Advertisement
Sign in to follow this  
intrest86

C++ and Swapping DLLs?

This topic is 4666 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

Hey everyone, I've been looking for a reference that addresses this but haven't found anything even remotely close. Can two DLLs that both have a single class that implements the same interface be swapped for each other after compilation (without recompiling)? If not, is there another way to go about this?

Share this post


Link to post
Share on other sites
Advertisement
As long as it's exactly the same interface, yes.

They would also need to be called the same filename (if you link normally). Then the situation is exactly like just having another version of the same DLL.

Mark

Share this post


Link to post
Share on other sites
yes, that's one way hackers can get around some programs.

Consider a dllwith a method,

bool DoIHavePermission()

you can create your own dll with that method taht returns true always there by circumventing the original dll.

Some directx wrappers do this as a methdod of code injection or for profiling. ie you link with them and they pass the DirectX calls onto the real DirectX wrappers after doing some profiling code.

Cheers
Chris

Share this post


Link to post
Share on other sites
Sign in to follow this  

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