|
-
December 11th, 2002, 01:52 AM
#1
COleSafeArray
When i use COleSafeArray the compiler seems to say undeclared identifier.
Do i need to add specific header file or code in order for COleSafeArray to be recognised?
please help and thanks in advance
-
December 11th, 2002, 03:09 AM
#2
-
December 11th, 2002, 03:48 AM
#3
these are my header files
#include <stdio.h>
#include <iostream.h>
#include <comdef.h>
#include <ole2.h>
#include <afxdisp.h>
this is the error
-----------------------------
:\program files\microsoft visual studio\vc98\mfc\include\afxv_w32.h(14) : fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include <windows.h>
Error executing cl.exe.
conflict of header?
-
December 11th, 2002, 04:25 AM
#4
:\program files\microsoft visual studio\vc98\mfc\include\afxv_w32.h(14) : fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include <windows.h>
Did you check the stdafx.h and preprocessor? You need to ensure that windows.h is not included and _WINDOWS_ is not defined.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|