>>>> In C++ it won't let me because it ask for a filename.
C is a subset of C++. You can call LoadLibrary same as in C.
Main Topics
Browse All TopicsHi, this should be a really simple question to answer.
In C I can do something like:
BYTE* module.. LoadLibrary(module)
In C++ it won't let me because it ask for a filename. Is there any workaround to load my library directly within memory?
Thanks.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: evilrixPosted on 2009-11-02 at 07:13:58ID: 25720063
>> In C++ it won't let me because it ask for a filename
en-us/libr ary/ms8867 36.aspx
This function is neither C not C++ specific -- it is part of the WIN32 API framework.
What is the error you actually get? I suspect in C it's treating module as a filename (the rules of typing are less strict in C); however, this may not give you the results you expect as LoadLibrary expects a filename.
http://msdn.microsoft.com/