Link to home
Start Free TrialLog in
Avatar of delvin
delvinFlag for Canada

asked on

VC++ Console Application & DLL File

I have a CGI/Console application that I want to add a DLL file(s) to.  I have found plenty of resources on how to do this in a windows environment, but not in a DOS/Console application environment.  Does anyone know how or where a good resource is that describes this process.  Or even sample code would be appreciated.  

Thanks
Avatar of faster
faster

As long as it is windows console program, you can use DLL just as you do it in normal windows application.  You can link with a import lib or use LoadLibrary(), all win32 API works.
DOS programs cannot use DLLs.  DOS was written 10 years prior to the first DLL.

But a win32 console program looks a lot like a DOS program to the user.  It looks a lot like a standard C++ program to the programmer.  And it has complete access to the windows API functions and 32 bit memory.  I suspect you are using a win32 console program already (not DOS), but if not, there is a good chance that you can easily change to a win32 console program with little effort.  (Note VC 5 and 6 do not produce DOS programs.  If that is what you are using, you already have a console program.)
Avatar of delvin

ASKER

Do you know of a good book that covers this topic?
ASKER CERTIFIED SOLUTION
Avatar of NullTerminator
NullTerminator

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
>> Do you know of a good book that covers this topic?
What topic?  DLLs?  That is not that big an issue that a book would be devoted to it.  Any introductory windows programming book will do.  The VC on-line help will as well.
You don't need any book if you already know tranditional windows programming.
Avatar of delvin

ASKER

Thanks ALL!  I should be able to take it from here. :)  I can always count on the experts at the experts-exchange to come through.