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

Started by
1 comment, last by The Curved One 21 years, 10 months ago
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.
I don''t care about code being messy if it gets the job done well enough.
Advertisement
What do you mean "loaded as a char*"? What are you exactly trying to do?
---visit #directxdev on afternet <- not just for directx, despite the name
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?

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

Richard "Superpig" Fine - saving pigs from untimely fates - Microsoft DirectX MVP 2006/2007/2008/2009
"Shaders are not meant to do everything. Of course you can try to use it for everything, but it's like playing football using cabbage." - MickeyMouse

This topic is closed to new replies.

Advertisement