wxDevC++ and WMI?
- From: francis.ducharme@xxxxxxxxx
- Date: 29 Nov 2006 11:47:00 -0800
Hi!
I'm trying to write a WMI application with the wxDev C++ RAD/IDE but
basic code won't even compile.
From the MSDN article "Initializing COM for a WMI Application":
#define _WIN32_DCOM
#include <iostream>
using namespace std;
#include <wbemidl.h>
# pragma comment(lib, "wbemuuid.lib")
Compiling this return the extensive compilation error log:
In file included from C:/Program Files/Microsoft Platform
SDK/Include/wbemidl.h:21,
from TestWMIFrm.h:39,
from TestWMIApp.cpp:11:
C:/Program Files/Microsoft Platform SDK/Include/wbemcli.h:17: warning:
ignoring #pragma warning
In file included from C:/Program Files/Microsoft Platform
SDK/Include/wbemcli.h:25,
from C:/Program Files/Microsoft Platform
SDK/Include/wbemidl.h:21,
from TestWMIFrm.h:39,
from TestWMIApp.cpp:11:
C:/Program Files/Microsoft Platform SDK/Include/rpc.h:78:1: warning:
"__RPC_API" redefined
In file included from C:/Program Files/Dev-Cpp/include/windows.h:82,
from C:/Program
Files/Dev-Cpp/include/common/wx/msw/wrapwin.h:51,
from C:/Program
Files/Dev-Cpp/include/common/wx/msw/private.h:17,
from C:/Program
Files/Dev-Cpp/include/common/wx/filefn.h:169,
from C:/Program
Files/Dev-Cpp/include/common/wx/utils.h:21,
from C:/Program
Files/Dev-Cpp/include/common/wx/cursor.h:41,
from C:/Program
Files/Dev-Cpp/include/common/wx/event.h:21,
from C:/Program
Files/Dev-Cpp/include/common/wx/wx.h:25,
from TestWMIApp.h:18,
from TestWMIApp.cpp:10:
C:/Program Files/Dev-Cpp/include/rpc.h:33:1: warning: this is the
location of the previous definition
In file included from C:/Program Files/Microsoft Platform
SDK/Include/wbemcli.h:25,
from C:/Program Files/Microsoft Platform
SDK/Include/wbemidl.h:21,
from TestWMIFrm.h:39,
from TestWMIApp.cpp:11:
C:/Program Files/Microsoft Platform SDK/Include/rpc.h:79:1: warning:
"__RPC_USER" redefined
In file included from C:/Program Files/Dev-Cpp/include/windows.h:82,
from C:/Program
Files/Dev-Cpp/include/common/wx/msw/wrapwin.h:51,
from C:/Program
Files/Dev-Cpp/include/common/wx/msw/private.h:17,
from C:/Program
Files/Dev-Cpp/include/common/wx/filefn.h:169,
from C:/Program
Files/Dev-Cpp/include/common/wx/utils.h:21,
from C:/Program
Files/Dev-Cpp/include/common/wx/cursor.h:41,
from C:/Program
Files/Dev-Cpp/include/common/wx/event.h:21,
from C:/Program
Files/Dev-Cpp/include/common/wx/wx.h:25,
from TestWMIApp.h:18,
from TestWMIApp.cpp:10:
I could go for pages and pages about this. Is this SDK (Microsoft
Platform SDK) only suitable for a Visual Studio IDE environnement?
.
- Follow-Ups:
- Re: wxDevC++ and WMI?
- From: Agron
- Re: wxDevC++ and WMI?
- Prev by Date: RE: Changes to WMI on Vista that would prevent custom WMI Provider DLL from loading?
- Next by Date: EnableStatic on a disconnected media
- Previous by thread: Re: Set NIC speed/duplex using WMI
- Next by thread: Re: wxDevC++ and WMI?
- Index(es):
Relevant Pages
|
Loading