Click here to Skip to main content
15,891,372 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Proxy aware application Pin
Manmohan2917-Dec-10 3:31
Manmohan2917-Dec-10 3:31 
QuestionProblem in windows7 Pin
bhanu_850916-Dec-10 0:46
bhanu_850916-Dec-10 0:46 
AnswerRe: Problem in windows7 Pin
phil.o16-Dec-10 1:07
professionalphil.o16-Dec-10 1:07 
AnswerRe: Problem in windows7 Pin
krmed16-Dec-10 3:05
krmed16-Dec-10 3:05 
GeneralRe: Problem in windows7 Pin
bhanu_850916-Dec-10 3:28
bhanu_850916-Dec-10 3:28 
GeneralRe: Problem in windows7 Pin
David Crow16-Dec-10 4:16
David Crow16-Dec-10 4:16 
GeneralRe: Problem in windows7 Pin
«_Superman_»16-Dec-10 7:05
professional«_Superman_»16-Dec-10 7:05 
GeneralRe: Problem in windows7 Pin
krmed16-Dec-10 7:06
krmed16-Dec-10 7:06 
Since you are writing to HKEY_LOCAL_MACHINE, I don't think you can prevent the prompt - writing there REQUIRES administrative privilege.

Having your application in the Program Files directory is OK, but modifying or creating files in that directory is a problem also requiring admin privilege.

Even if you create a manifest containing the RequestedExecutionLevel set to "requiresAdministrator" (as some will probably suggest) will not solve it - all that does is when your program starts the user is prompted to enter the administrator password or approve the operation anyway.

As DavidCrow indicated, there is probably a better way to accomplish what you need - perhaps using HKEY_CURRENT_USER instead.

Good luck.
Karl - WK5M
PP-ASEL-IA (N43CS)
PGP Key: 0xDB02E193
PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193

QuestionHow to pass text file data from MFC line Graph? Pin
mathivanaan16-Dec-10 0:38
mathivanaan16-Dec-10 0:38 
AnswerRe: How to pass text file data from MFC line Graph? Pin
Rajesh R Subramanian16-Dec-10 0:42
professionalRajesh R Subramanian16-Dec-10 0:42 
AnswerRe: How to pass text file data from MFC line Graph? Pin
Cedric Moonen16-Dec-10 1:00
Cedric Moonen16-Dec-10 1:00 
QuestionHow to save TransParent IMage after drawing on another image? Pin
002comp15-Dec-10 19:55
002comp15-Dec-10 19:55 
AnswerRe: How to save TransParent IMage after drawing on another image? Pin
Rozis16-Dec-10 11:59
Rozis16-Dec-10 11:59 
GeneralRe: How to save TransParent IMage after drawing on another image? Pin
002comp16-Dec-10 18:15
002comp16-Dec-10 18:15 
QuestionSingleton Class Pin
pix_programmer15-Dec-10 18:00
pix_programmer15-Dec-10 18:00 
AnswerRe: Singleton Class Pin
RaviRanjanKr15-Dec-10 19:08
professionalRaviRanjanKr15-Dec-10 19:08 
AnswerRe: Singleton Class Pin
Cedric Moonen15-Dec-10 20:23
Cedric Moonen15-Dec-10 20:23 
AnswerRe: Singleton Class PinPopular
Stefan_Lang15-Dec-10 22:41
Stefan_Lang15-Dec-10 22:41 
GeneralRe: Singleton Class Pin
Sauro Viti15-Dec-10 23:24
professionalSauro Viti15-Dec-10 23:24 
QuestionCSV Pin
MsmVc15-Dec-10 17:33
MsmVc15-Dec-10 17:33 
AnswerRe: CSV Pin
Alain Rist15-Dec-10 20:11
Alain Rist15-Dec-10 20:11 
GeneralRe: CSV Pin
MsmVc15-Dec-10 20:19
MsmVc15-Dec-10 20:19 
QuestionRe: CSV Pin
Alain Rist15-Dec-10 20:34
Alain Rist15-Dec-10 20:34 
AnswerRe: CSV Pin
Cedric Moonen15-Dec-10 20:45
Cedric Moonen15-Dec-10 20:45 
GeneralRe: CSV Pin
Alain Rist15-Dec-10 20:51
Alain Rist15-Dec-10 20:51 

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.