I have a standard win32 app, using standard Dlls & stuff. I have declared
windows.h and stuff. Now, I want to use some MFC things... in particular the
CSocket and CAsyncSocket classes, this requires the declaration of
afxsock.h. The compiler pukes on this, complaining that I should not include
windows.h ... even tho I have removed every instance of windows.h from my
code. I have used windows.h in mfc apps before without complaint, which
makes me think that perhaps I'm missing a compiler directive or something...
any ideas?
I'd prefer not to rewrite my code as MFC as I only want to use one or two
classes from the MFC libraries.
cheers,
M
You can use things like CString and CMap from MFC without an app object. In
that case you would include <afx.h>, and that would tell you what features you
can and can't use.
--
Timothy J. Ebben
Levon's Wake, Inc.
Email: T...@LevonsWake.com
Web: www.LevonsWake.com
----- Paul Bunyan - Best damn logger there EVER was!
Marcus wrote in message <808ve0$1b...@newton.cc.rl.ac.uk>...
Marcus <m.p...@rl.ac.uk> wrote in message
news:808ve0$1b...@newton.cc.rl.ac.uk...
http://www.codeguru.com/network/winsockapi_wrappers.shtml
I have used them myself, when the MFC ones just didn't cut the mustard.
Marcus W
"pants"? Can you translate please? :) Good? Bad? Cool?
--
John A. Grant * I speak only for myself * (remove 'z' to reply)
Radiation Geophysics, Geological Survey of Canada, Ottawa
If you followup, please do NOT e-mail me a copy: I will read it here
Marcus W
*I don't expect the Queen to be using it in her address to the Commonwealth in
Durban, nor am I aware of the BBC using it in their news reports.
Thanks :)