*** C2039: 'CoInitializeEx' : is not a member of '`global namespace'' ****
sydt 2006-06-14 05:55:52 VC6 程序中调用 CoInitializeEx函数
编译错误如下
D:\NicOPCServer\ServerClient\MainFrm.cpp(199) : error C2039: 'CoInitializeEx' : is not a member of '`global namespace''
产生错误的CPP已经包含相关头文件了,查了相关帖子,未解决!
// MainFrm.cpp : implementation of the CMainFrame class
//
#ifndef _WIN32_DCOM
#define _WIN32_DCOM // WinNT 4.0 or Win95 w/DCOM
#endif
#define _WIN32_WINNT 0x0500
#include <ole2.h>
#include "stdafx.h"
#include <objbase.h>
#include <atlbase.h>
大家帮忙!