Jump to content
  • Advertisement


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

The Curved One

[Win 32] Loading a DLL loaded in (char*)

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

I have a DLL loaded as a char* somewhere in the memory and need to load it without flushing it somewheres in a file or anything. So, is it possible? I don''''t care about code being messy if it gets the job done well enough.

Share this post

Link to post
Share on other sites
Sorry, can''t be done. However, if you have the offsets of the functions within the file, you could run them directly from a function pointer:

(FARPROC buffer[functionOffset])();

something like that... function pointers are nasty though. Is there really no way you can dump to a temp file?

- saving pigs from untimely fates
- sleeps in a ham-mock at www.thebinaryrefinery.cjb.net

Share this post

Link to post
Share on other sites

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