Dynamically loading C++ DLL's on the fly...

Started by
2 comments, last by Enlighten 14 years, 7 months ago
I want to be able to compile a C++ DLL so another program can load it without having to close and reopen. Is it possible? Thanks.
Advertisement
Short answer, yes. Applications do this all the time. Check out the MSDN documentation for the LoadLibrary function.
---------------------------Visit my Blog at http://robwalkerdme.blogspot.com
Hi Enlighten
(You may know this already just I felt like it might help future people who end up googling :-))
What you normally do is do issue a LoadLibrary call and then use the functions that are "exported" from that particular DLL.

After importing the "exported" functions, you use that function using its particular signature.
Hey, thanks for all your help.

I found this.
http://www.codeguru.com/cpp/cpp/cpp_mfc/tutorials/article.php/c9855

It was everything I expected.

This topic is closed to new replies.

Advertisement