Import functions/classes by offset?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Mygg
    New Member
    • Apr 2010
    • 1

    Import functions/classes by offset?

    Hi, I am fairly new to C++, having been a c# person for many years.

    I am trying to access the exports of an '.exe' file but I can't #include or #import it because of a "stray byte" error (which occurs for 5000+ locations). I don't have the original source/headers of the exe btw.

    I realise I can use the LoadLibrary method for getting function pointers, but to my knowledge it doesn't allow me access to the public classes in the .exe file.

    Any suggestions?
  • Banfa
    Recognized Expert Expert
    • Feb 2006
    • 9067

    #2
    Once a C++ class is compiled and linked into a program any vestige of the class has gone. It is not like a .NET class library (or executable??) where the binary can be interrogated to get the definition of the class and allow you to instantiate your own instances of it.

    In standard C++ if you do not have at least the header and the binary file of the source to link against then you are stuffed.

    Comment

    Working...