PC Review


Reply
Thread Tools Rate Thread

compilatio errors while compiling WMI code in C++

 
 
New Member
Join Date: Dec 2007
Posts: 3
 
      17th Dec 2007
Hai All,

When I am trying to compile the example C++ code given at microsoft site, I am getting the following errors.

C:\Borland\BCC55\Bin>bcc32 -W WMI2.cpp
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
WMI2.cpp:
Warning W8057 WMI2.cpp 174: Parameter 'argc' is never used in function main(int,char * *)
Warning W8057 WMI2.cpp 174: Parameter 'argv' is never used in function main(int,char * *)
Warning W8004 WMI2.cpp 159: 'hres' is assigned a value that is never used in function main(int,char
* *)
Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
Error: 'C:\PROGRAM FILES\MICROSOFT PLATFORM SDK FOR WINDOWS XP SP2\LIB\WBEMUUID.LIB' contains invalid OMF record, type 0x21 (possibly COFF)

Can anyone guide me to resolve this issue?
I am new to WMI coding and learning how to program now. But I was struck at starting itself.
I have installed borland C++ compiler V5.5, installed win XP SDK and visual C++ 2005 express edition.

What path variables I need to set extra to make this work?
Can I use some other tools and ged rid of this problem?
If anyone have the good e-books on programming in C++ using WMI, please send to me.

Please help me to execute sample WMI code in C++.........
 
Reply With Quote
 
 
 
 
New Member
Join Date: Dec 2007
Posts: 3
 
      18th Dec 2007
If any one know, what is the setup required before running WMI Program in C++, please reply here.
It will be of great help to me.
 
Reply With Quote
 
New Member
Join Date: Sep 2011
Posts: 1
 
      2nd Sep 2011
how to run wmi code ,HRESULT error is found ,this function not found
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Errors when compiling a VC6 project in VC2005 fabioraciti Microsoft VC .NET 0 2nd Mar 2007 11:34 AM
Re: Errors in Compiling ComputerJy Microsoft VB .NET 0 26th Jan 2007 02:31 PM
Errors when pre-compiling ASP.NET 2.0 site Paul Taylor Microsoft ASP .NET 1 4th Nov 2006 06:17 PM
Errors when compiling, any ideas?? brin Microsoft ASP .NET 2 28th Jun 2004 01:40 PM
Compiling errors Tom Southworth Windows XP General 0 5th Oct 2003 07:57 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:07 PM.