C++ and Swapping DLLs?
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?
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
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
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
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
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement