Click here to Skip to main content
15,910,603 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: populating a CListCtrl which is inside a Dialog Pin
Aamir Butt27-Feb-05 18:07
Aamir Butt27-Feb-05 18:07 
GeneralOwner Draw Menus without MFC Pin
r3dqu33n24-Feb-05 7:53
r3dqu33n24-Feb-05 7:53 
GeneralRe: Owner Draw Menus without MFC Pin
PJ Arends24-Feb-05 16:52
professionalPJ Arends24-Feb-05 16:52 
GeneralReally Tricky situation with ODBC and FlexGrids Pin
ur_unholyness24-Feb-05 6:53
ur_unholyness24-Feb-05 6:53 
GeneralUnicode in CCommandLineInfo Pin
Konrad Windszus24-Feb-05 6:18
Konrad Windszus24-Feb-05 6:18 
GeneralRe: Unicode in CCommandLineInfo Pin
PJ Arends24-Feb-05 8:06
professionalPJ Arends24-Feb-05 8:06 
GeneralRe: Unicode in CCommandLineInfo Pin
Konrad Windszus24-Feb-05 10:26
Konrad Windszus24-Feb-05 10:26 
GeneralWMI Blues Pin
newbee7824-Feb-05 4:39
newbee7824-Feb-05 4:39 
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
GeneralVcWizCtl Pin
mikeh24-Feb-05 2:54
mikeh24-Feb-05 2:54 
GeneralPackaging & Deploying C++ Application Pin
clav24-Feb-05 2:38
clav24-Feb-05 2:38 
GeneralRe: Packaging & Deploying C++ Application Pin
Ravi Bhavnani24-Feb-05 3:05
professionalRavi Bhavnani24-Feb-05 3:05 
GeneralRe: Packaging & Deploying C++ Application Pin
clav24-Feb-05 3:55
clav24-Feb-05 3:55 
GeneralRe: Packaging & Deploying C++ Application Pin
Ravi Bhavnani24-Feb-05 5:20
professionalRavi Bhavnani24-Feb-05 5:20 
GeneralRe: Packaging & Deploying C++ Application Pin
r3dqu33n24-Feb-05 7:57
r3dqu33n24-Feb-05 7:57 
GeneralChanging HeaderTitle/HeaderSubTitle in Wizard97 Pin
User 2237024-Feb-05 1:36
User 2237024-Feb-05 1:36 
GeneralRe: Changing HeaderTitle/HeaderSubTitle in Wizard97 Pin
Blake Miller24-Feb-05 6:01
Blake Miller24-Feb-05 6:01 
GeneralRe: Changing HeaderTitle/HeaderSubTitle in Wizard97 Pin
ThatsAlok24-Feb-05 17:16
ThatsAlok24-Feb-05 17:16 
GeneralSet view regions for controls Pin
Rahim Rattani24-Feb-05 1:06
Rahim Rattani24-Feb-05 1:06 
QuestionCOlePropertyPage or Dialog Box? Pin
Anand for every one24-Feb-05 0:47
Anand for every one24-Feb-05 0:47 
GeneralProxy information Pin
Geert van Horrik23-Feb-05 23:29
Geert van Horrik23-Feb-05 23:29 
GeneralActive Document Pin
Pauwl23-Feb-05 21:23
Pauwl23-Feb-05 21:23 
QuestionHow to retrieve table name and field name from SQL server database Pin
reenacutie23-Feb-05 19:18
reenacutie23-Feb-05 19:18 
AnswerRe: How to retrieve table name and field name from SQL server database Pin
David Crow24-Feb-05 3:38
David Crow24-Feb-05 3:38 
AnswerRe: How to retrieve table name and field name from SQL server database Pin
RChin24-Feb-05 5:04
RChin24-Feb-05 5:04 
Questionhow to read macro code from doc file? Pin
boyboy23-Feb-05 19:17
boyboy23-Feb-05 19:17 

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.