Click here to Skip to main content
15,668,842 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow do I get the notification when the user modifies the DNS server address? Pin
EverettJF17-Mar-10 20:11
EverettJF17-Mar-10 20:11 
Questionhow to draw a sector of a circle? Pin
tho_mee17-Mar-10 13:55
tho_mee17-Mar-10 13:55 
AnswerRe: how to draw a sector of a circle? Pin
Avi Berger17-Mar-10 15:23
Avi Berger17-Mar-10 15:23 
AnswerRe: how to draw a sector of a circle? Pin
Adam Roderick J17-Mar-10 18:25
Adam Roderick J17-Mar-10 18:25 
AnswerRe: how to draw a sector of a circle? Pin
Eugen Podsypalnikov17-Mar-10 21:14
Eugen Podsypalnikov17-Mar-10 21:14 
GeneralRe: how to draw a sector of a circle? Pin
tho_mee27-Mar-10 6:12
tho_mee27-Mar-10 6:12 
AnswerRe: how to draw a sector of a circle? Pin
Iain Clarke, Warrior Programmer18-Mar-10 10:43
Iain Clarke, Warrior Programmer18-Mar-10 10:43 
QuestionUAC and restarting an external service in my MFC app Pin
Sternocera17-Mar-10 12:45
Sternocera17-Mar-10 12:45 
Hi,

I have an MFC app that is dependant on an external windows service. The need to restart that service occasionally arises.

I do this using some boilerplate code, heavily derivative of that appearing in an article on MSDN. When I run the application on Vista as a non-administrator, a call to OpenSCManager() returns NULL. I must run the application as an administrator for the process to succeed.

Can I make a UAC dialog automatically appear on Vista/7 in the event of needing to access administrative functions like this? I have similar problems in the same application when calling code that uses boost.asio to ping a remote server.

I'm not sure if it's relevant, but here is my application manifest security entry:

<!-- Identify the application security requirements. -->
<ms_asmv2:trustInfo xmlns:ms_asmv2="urn:schemas-microsoft-
   com:asm.v2">
  <ms_asmv2:security>
    <ms_asmv2:requestedPrivileges>
      <ms_asmv2:requestedExecutionLevel level="highestAvailable">
      </ms_asmv2:requestedExecutionLevel>
    </ms_asmv2:requestedPrivileges>
  </ms_asmv2:security>
</ms_asmv2:trustInfo>


Thanks a lot,
Sternocera
AnswerRe: UAC and restarting an external service in my MFC app Pin
Mohan Ramachandra17-Mar-10 19:10
Mohan Ramachandra17-Mar-10 19:10 
AnswerRe: UAC and restarting an external service in my MFC app Pin
BIJU Manjeri17-Mar-10 19:48
BIJU Manjeri17-Mar-10 19:48 
GeneralRe: UAC and restarting an external service in my MFC app Pin
Sternocera18-Mar-10 0:13
Sternocera18-Mar-10 0:13 
Questionprevent scientific notation for integers [Solved] Pin
b-rad31117-Mar-10 10:25
b-rad31117-Mar-10 10:25 
AnswerRe: prevent scientific notation for integers Pin
Gwenio17-Mar-10 10:56
Gwenio17-Mar-10 10:56 
GeneralRe: prevent scientific notation for integers Pin
b-rad31117-Mar-10 11:00
b-rad31117-Mar-10 11:00 
QuestionDeleting a quadtree [modified] Pin
Chidori-chan17-Mar-10 9:56
Chidori-chan17-Mar-10 9:56 
QuestionRe: Deleting a quadtree Pin
David Crow17-Mar-10 10:03
David Crow17-Mar-10 10:03 
AnswerRe: Deleting a quadtree Pin
krmed17-Mar-10 10:08
krmed17-Mar-10 10:08 
GeneralRe: Deleting a quadtree Pin
Chidori-chan17-Mar-10 10:17
Chidori-chan17-Mar-10 10:17 
QuestionWindows 7 compiled project does not run on Windows XP anymore Pin
Joschwenk66617-Mar-10 8:20
Joschwenk66617-Mar-10 8:20 
AnswerRe: Windows 7 compiled project does not run on Windows XP anymore Pin
Eugen Podsypalnikov17-Mar-10 9:20
Eugen Podsypalnikov17-Mar-10 9:20 
AnswerRe: Windows 7 compiled project does not run on Windows XP anymore Pin
Richard MacCutchan17-Mar-10 12:18
mveRichard MacCutchan17-Mar-10 12:18 
Questionc++ download and execute with stadistics Pin
adan-rivera17-Mar-10 7:55
adan-rivera17-Mar-10 7:55 
QuestionRe: c++ download and execute with stadistics Pin
David Crow17-Mar-10 10:05
David Crow17-Mar-10 10:05 
AnswerRe: c++ download and execute with stadistics Pin
adan-rivera17-Mar-10 12:11
adan-rivera17-Mar-10 12:11 
GeneralRe: c++ download and execute with stadistics Pin
adan-rivera17-Mar-10 12:14
adan-rivera17-Mar-10 12:14 

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.