Click here to Skip to main content
15,920,896 members
Home / Discussions / COM
   

COM

 
GeneralRe: tips on how start mfc & vc++ Pin
Anonymous27-Feb-05 2:49
Anonymous27-Feb-05 2:49 
GeneralRe: tips on how start mfc & vc++ Pin
ThatsAlok11-Mar-05 2:09
ThatsAlok11-Mar-05 2:09 
GeneralSysAllocString() allocation Pin
abc87624-Feb-05 22:54
abc87624-Feb-05 22:54 
GeneralRe: SysAllocString() allocation Pin
geo_m26-Feb-05 7:54
geo_m26-Feb-05 7:54 
GeneralRe: SysAllocString() allocation Pin
Jörgen Sigvardsson26-Feb-05 8:05
Jörgen Sigvardsson26-Feb-05 8:05 
Generalwhy my com dll could not be imported Pin
williamchou24-Feb-05 15:26
williamchou24-Feb-05 15:26 
GeneralTlbImp.exe Pin
ursus zeta6-Mar-05 12:11
ursus zeta6-Mar-05 12:11 
GeneralWMI Blues Pin
newbee7824-Feb-05 4:41
newbee7824-Feb-05 4:41 
WMI Blues

I am trying to set the NIC properties on a local machine using WMI. The code to do this is written in C++. I have a windows service and the code to set the NIC settings is handled in that service.

Problem:

I can get two of the properties always (does not matter which one like ip, default gateway or DNS) to set. However, on the third attempt to set any property, the connectServer () function fails (connect server function is required to get the namespace). I tried another experiment, when I restart my service after setting a property it will always work. The CoInitializeSecurity settings are exactly the same as the one in my MFC app. I am clueless at this point and I have a hunch that the code to set NIC settings residing in a service has got something to do with my program not running properly.

Note: I created a test MFC application that uses all my above functions and it works well all the time.

Any help will be appreciated
Thanks

newbee78
GeneralStart learning COM Pin
vuthaianh24-Feb-05 0:21
vuthaianh24-Feb-05 0:21 
GeneralRe: Start learning COM Pin
rwestgraham24-Feb-05 11:22
rwestgraham24-Feb-05 11:22 
GeneralRe: Start learning COM Pin
Fragging14-Mar-05 8:31
Fragging14-Mar-05 8:31 
GeneralWord document to stream Pin
jan larsen23-Feb-05 21:34
jan larsen23-Feb-05 21:34 
GeneralRe: Word document to stream Pin
vishalmore23-Feb-05 23:09
vishalmore23-Feb-05 23:09 
GeneralRe: Word document to stream Pin
jan larsen23-Feb-05 23:44
jan larsen23-Feb-05 23:44 
GeneralRe: Word document to stream Pin
vishalmore1-Mar-05 2:39
vishalmore1-Mar-05 2:39 
GeneralRe: Word document to stream Pin
jan larsen1-Mar-05 2:49
jan larsen1-Mar-05 2:49 
GeneralRe: Word document to stream Pin
jan larsen2-Mar-05 1:08
jan larsen2-Mar-05 1:08 
GeneralRe: Word document to stream Pin
Jörgen Sigvardsson26-Feb-05 8:08
Jörgen Sigvardsson26-Feb-05 8:08 
GeneralRe: Word document to stream Pin
jan larsen27-Feb-05 20:05
jan larsen27-Feb-05 20:05 
Generalextracting mail from yahoo using mozilla Pin
Spiritofamerica23-Feb-05 5:09
Spiritofamerica23-Feb-05 5:09 
GeneralC++ Client for a C# object Pin
Fragging22-Feb-05 9:14
Fragging22-Feb-05 9:14 
GeneralRe: C++ Client for a C# object Pin
Fragging28-Feb-05 3:08
Fragging28-Feb-05 3:08 
GeneralDifference b/e COM and ActiveX Pin
Muhammad Azam21-Feb-05 23:40
Muhammad Azam21-Feb-05 23:40 
GeneralRe: Difference b/e COM and ActiveX Pin
ThatsAlok22-Feb-05 6:08
ThatsAlok22-Feb-05 6:08 
GeneralRe: Difference b/e COM and ActiveX Pin
Muhammad Azam22-Feb-05 17:24
Muhammad Azam22-Feb-05 17:24 

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.