Simple DLL question

Started by
0 comments, last by commando_337 22 years, 6 months ago
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. ????
Advertisement
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

Simon O'Connor | Technical Director (Newcastle) Lockwood Publishing | LinkedIn | Personal site

This topic is closed to new replies.

Advertisement