Simple DLL question
OK, if i''m writing a simple c++ console application that i would like to have access a function in a .dll file i have created, what is the easiest way to do it...at load-time.
????
Use LoadLibrary() to load the DLL and GetProcAddress() to get the address of an exported function.
A console app running in Windows is still a Windows app so you can still use normal Windows Kernel calls. It''s only if it were loaded in pure DOS mode that you wouldn''t have those calls available (but then again you wouldn''t have a flat memory model etc)
--
Simon O''''Connor
Creative Asylum Ltd
www.creative-asylum.com
A console app running in Windows is still a Windows app so you can still use normal Windows Kernel calls. It''s only if it were loaded in pure DOS mode that you wouldn''t have those calls available (but then again you wouldn''t have a flat memory model etc)
--
Simon O''''Connor
Creative Asylum Ltd
www.creative-asylum.com
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement