Hasan
VS2005:
Use the Win32 Console App wizard. Click Application Settings and Check
the Add common header files for MFC checkbox
You can use MFC in a console app as well. That option is provided when
you start the wizard for a console. Make sure you select it. Once you
have that, you can use CAsyncSocket in your project as well.
--
Ajay
Of course, you *are* using the wizards to create the app, right?
joe
Joseph M. Newcomer [MVP]
email: newc...@flounder.com
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
You should not use CAsyncSocket in a console application.
CAsyncSocket relies on the existence of a message pump, in order to
deliver asynchronous notifications to your application (the
notifications start out as ordinary Windows messages). A console app
does not have a message pump, so it will not be able to receive
asynchronous notifications.
"Malachy Moses" <malach...@gmail.com> wrote in message
news:ffa3b4a3-2f52-43f0...@r37g2000prr.googlegroups.com...
Of course, there is a serious question about why you need a console app for this purpose.
What value does a console app add that a GUI app wouldn't fulfill? The last time I had to
do one of these, I built a dialog-based app that sits in the tray.
joe