Advertisement

<windows.h>; to include or not to include..

Started by November 17, 2000 04:17 PM
1 comment, last by Fresh 24 years, 2 months ago
Hi, I have a relatively simple problem. I have a variety of files, and I include windows.h in the appropriate files. Now I am trying to use the stl CPtrList class, and I include afxcoll.h like the help file indicates. However I get this error: #ifdef _WINDOWS_ #error WINDOWS.H already included. MFC apps must not #include #endif in afx_w32.h. How do I use this object and still reference windows.h? Is it the order I do them in or something? I am not using the standard MFC structure type thing, I just want to use this particular container class. "The mere thought hadn''t even begun to speculate about the slightest possibility of traversing the eternal wasteland that is my mind..."
That should read mfc CPtrList, but how would I use the stil equivalent?

"The mere thought hadn''t even begun to speculate about the slightest possibility of traversing the eternal wasteland that is my mind..."
Advertisement
With MFC, it''s all or nothing, you can''t use a single MFC class without making your app an MFC app and bringing the whole library in.

This topic is closed to new replies.

Advertisement