Overriding classes/functions from a .dll.

Posted by Jeff on Stack Overflow See other posts from Stack Overflow or by Jeff
Published on 2010-04-05T03:54:41Z Indexed on 2010/04/05 4:03 UTC
Read the original article Hit count: 376

Filed under:
|
|
|
|

Say I have class A and class B. B inherits from class A, and implements a few virtual functions. The only problem is that B is defined in a .dll. Right now, I have a function that returns an instance of class A, but it retrieves that from a static function in the .dll that returns an instance of class B. My plan is to call the created object, and hopefully, have the functions in the .dll executed instead of the functions defined in class A. For some reason, I keep getting restricted memory access errors. Is there something I don't understand that will keep this plan from working?

© Stack Overflow or respective owner

Related posts about c++

Related posts about .dll