> Hi,
Hi.
> I am trying to use CoInitializeEx but VC++ 6.0 compiler always complaining
> error C2065: 'CoInitializeEx' : undeclared identifier.
[quoted text clipped - 5 lines]
>
> Is there anywhere else I forgot to include?
Somewhere before that ill-fated usage, write
#define _WIN32_WINNT 0x0400
#include <ole2.h>
You might want to study the following screen-scrape and
think about the implication a little bit.
=====================================
[C:\tmp]
> pushd \Programs\DevStud.NET.2003\Vc7\PlatformSDK\Include\
[C:\Programs\DevStud.NET.2003\Vc7\PlatformSDK\Include]
> findstr CoInitializeEx *.h
...
ObjBase.h:WINOLEAPI CoInitializeEx(IN LPVOID pvReserved, IN DWORD dwCoInit);
[C:\Programs\DevStud.NET.2003\Vc7\PlatformSDK\Include]
> findstr /i objbase.h *.h | findstr include
...
Ole2.h:#include <objbase.h>
...
======================================
(edited for length)
> Please advice, thanks!
Your error message came from the compiler.
Your settings shown above affect the linker.
Those tools are distinctly different and you should
learn to distinguish them to help sort out problems
of this nature on your own.

Signature
--Larry Brasfield
email: donotspam_larry_brasfield@hotmail.com
Above views may belong only to me.
Paul - 31 Jan 2005 23:29 GMT
Got it, thx!
> > Hi,
> Hi.
[quoted text clipped - 40 lines]
> learn to distinguish them to help sort out problems
> of this nature on your own.