Click here to Skip to main content
15,901,373 members
Home / Discussions / COM
   

COM

 
GeneralRe: Why we need COM? Pin
Nandu_77b3-Jul-07 5:50
Nandu_77b3-Jul-07 5:50 
AnswerRe: Why we need COM? Pin
Michael Dunn4-Jul-07 13:39
sitebuilderMichael Dunn4-Jul-07 13:39 
QuestionActiveX Pin
Anil K P1-Jul-07 22:52
Anil K P1-Jul-07 22:52 
Questionunderstanding COM Pin
KASR11-Jul-07 21:32
KASR11-Jul-07 21:32 
AnswerRe: understanding COM Pin
CPallini1-Jul-07 22:01
mveCPallini1-Jul-07 22:01 
QuestionNot able to create folders on exchange 2003 on Windows 2003 Pin
kaushik_Manoj1-Jul-07 19:11
kaushik_Manoj1-Jul-07 19:11 
QuestionHow to datas import in Grd to Excel sheet Pin
Ranjith Joseph Selvaraj29-Jun-07 23:47
Ranjith Joseph Selvaraj29-Jun-07 23:47 
QuestionSetting computer name with WMI Pin
one-trick-pony29-Jun-07 7:07
one-trick-pony29-Jun-07 7:07 
Greetings,

I have been trying to figure out how to set computer name with WMI in C++. Below is part of the code to help demonstrate what I am doing.


VARIANT varCommand;
varCommand.vt = VT_BSTR;
varCommand.bstrVal = L"NewHostName01";
hr = pInInst->Put(L"Name", 0, &varCommand, 0);
IWbemClassObject * pOutInst = NULL;

hr = pNamespace->ExecMethod(L"Win32_ComputerSystem", L"Rename",0,NULL, pInInst, &pOutInst, NULL);

ExecMethod fails with following error message: WBEM_E_INVALID_METHOD_PARAMETERS. I believe "Rename" is a non-static method thus ExecMethod reports preceeding error message. I don't know how to properly code for the non-static caseConfused | :confused: . Need help. Thanks



one-trick-pony
Questionusing asp.net2.0, in case of Gridview control if we dont use Sqldatasource control ,can we use inbuilt edit update.. functionality? Pin
yogita charhate28-Jun-07 23:29
yogita charhate28-Jun-07 23:29 
QuestionMulti threading in c++ [modified] Pin
role127-Jun-07 20:25
role127-Jun-07 20:25 
AnswerRe: Multi threading in c++ Pin
Jürgen Jung1-Jul-07 21:26
Jürgen Jung1-Jul-07 21:26 
QuestionHow to Deploy Presentation Layer and COM + in two servers? Pin
Sylvester george27-Jun-07 19:04
Sylvester george27-Jun-07 19:04 
Questionverify MS Index server from code Pin
kaushik_Manoj26-Jun-07 18:47
kaushik_Manoj26-Jun-07 18:47 
QuestionWhy TLS(Thread Local Storage) can not be used in COM Pin
jsjwql26-Jun-07 16:58
jsjwql26-Jun-07 16:58 
AnswerRe: Why TLS(Thread Local Storage) can not be used in COM Pin
Roger Stoltz27-Jun-07 1:56
Roger Stoltz27-Jun-07 1:56 
QuestionSQL XML 3 BulkLoad Error Pin
Panchal Hardik25-Jun-07 2:29
Panchal Hardik25-Jun-07 2:29 
AnswerRe: SQL XML 3 BulkLoad Error Pin
Dave Kreskowiak25-Jun-07 4:05
mveDave Kreskowiak25-Jun-07 4:05 
QuestionCatching events from C# COM in VC++ client Pin
Gakk22-Jun-07 3:57
Gakk22-Jun-07 3:57 
QuestionProblem with dll file Pin
Natarajasivan22-Jun-07 0:45
Natarajasivan22-Jun-07 0:45 
Question"Server busy" since changed to VC2005 SP1 [modified] Pin
howieh21-Jun-07 20:47
howieh21-Jun-07 20:47 
Questionadd Activex Object Pin
dhatchu21-Jun-07 16:27
dhatchu21-Jun-07 16:27 
QuestionPrinterProperties Pin
moon_stick21-Jun-07 5:46
moon_stick21-Jun-07 5:46 
AnswerRe: PrinterProperties Pin
moon_stick21-Jun-07 22:41
moon_stick21-Jun-07 22:41 
QuestionStateable Web application using COM+ Pin
Babak Ansari19-Jun-07 23:38
Babak Ansari19-Jun-07 23:38 
QuestionReleasing a com interface Pin
john563219-Jun-07 18:31
john563219-Jun-07 18:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.