Click here to Skip to main content
15,903,033 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Windows has triggered a breakpoint in xxxxx, This may be due a corruption of the heap Pin
sdancer7510-Nov-11 21:55
sdancer7510-Nov-11 21:55 
QuestionOld style JPEG compression Tiff file problem Pin
Hadi Dayvary10-Nov-11 7:02
professionalHadi Dayvary10-Nov-11 7:02 
AnswerRe: Old style JPEG compression Tiff file problem Pin
Chris Losinger10-Nov-11 8:20
professionalChris Losinger10-Nov-11 8:20 
GeneralRe: Old style JPEG compression Tiff file problem Pin
Hadi Dayvary10-Nov-11 22:28
professionalHadi Dayvary10-Nov-11 22:28 
GeneralRe: Old style JPEG compression Tiff file problem Pin
Chris Losinger11-Nov-11 1:18
professionalChris Losinger11-Nov-11 1:18 
GeneralRe: Old style JPEG compression Tiff file problem Pin
Hadi Dayvary11-Nov-11 19:05
professionalHadi Dayvary11-Nov-11 19:05 
QuestionPreTranslateMessage runs twice in VC 6.0 MFC Pin
Vaclav_10-Nov-11 3:09
Vaclav_10-Nov-11 3:09 
Questionfopen fails to give error when UAC is enabled Pin
sindhumahe10-Nov-11 0:54
sindhumahe10-Nov-11 0:54 
Hi,

I have a use case to validate an path that is given as an input to my application.

I tried to create a file in the path with fopen and added the following check :

FILE *fp= fopen(Input path, "w");
if( fp == NULL)
{
//Invalid path
}
else
{
//Valid path
}

This works well for cases when the input path is invalid or not present.
But in certain cases, when UAC is enabled, a file cannot be created in the C:\Program files location. So in that scenario, if my input path is C:\Program files, fopen doesnt return any error and above code executes the else part, which is wrong.

Can anyone please provide suggestions about this issue?


Sindhu
QuestionRe: fopen fails to give error when UAC is enabled Pin
Code-o-mat10-Nov-11 1:49
Code-o-mat10-Nov-11 1:49 
AnswerRe: fopen fails to give error when UAC is enabled Pin
sindhumahe10-Nov-11 2:04
sindhumahe10-Nov-11 2:04 
GeneralRe: fopen fails to give error when UAC is enabled Pin
Code-o-mat10-Nov-11 2:18
Code-o-mat10-Nov-11 2:18 
QuestionRe: fopen fails to give error when UAC is enabled Pin
David Crow10-Nov-11 2:35
David Crow10-Nov-11 2:35 
AnswerRe: fopen fails to give error when UAC is enabled Pin
Chris Meech10-Nov-11 2:46
Chris Meech10-Nov-11 2:46 
QuestionRe: fopen fails to give error when UAC is enabled Pin
David Crow10-Nov-11 4:11
David Crow10-Nov-11 4:11 
AnswerRe: fopen fails to give error when UAC is enabled Pin
Chris Meech10-Nov-11 4:29
Chris Meech10-Nov-11 4:29 
GeneralRe: fopen fails to give error when UAC is enabled Pin
David Crow10-Nov-11 4:36
David Crow10-Nov-11 4:36 
QuestionRe: fopen fails to give error when UAC is enabled Pin
bob1697210-Nov-11 4:09
bob1697210-Nov-11 4:09 
QuestionCEditView operation rediculously Slows down in Windows 7 Pin
Vijjuuu.9-Nov-11 18:49
Vijjuuu.9-Nov-11 18:49 
AnswerRe: CEditView operation rediculously Slows down in Windows 7 Pin
Richard MacCutchan9-Nov-11 22:37
mveRichard MacCutchan9-Nov-11 22:37 
GeneralRe: CEditView operation rediculously Slows down in Windows 7 Pin
Vijjuuu.9-Nov-11 23:03
Vijjuuu.9-Nov-11 23:03 
GeneralRe: CEditView operation rediculously Slows down in Windows 7 Pin
Richard MacCutchan10-Nov-11 0:20
mveRichard MacCutchan10-Nov-11 0:20 
GeneralRe: CEditView operation rediculously Slows down in Windows 7 Pin
Vijjuuu.10-Nov-11 5:00
Vijjuuu.10-Nov-11 5:00 
GeneralRe: CEditView operation rediculously Slows down in Windows 7 Pin
Richard MacCutchan10-Nov-11 6:23
mveRichard MacCutchan10-Nov-11 6:23 
GeneralRe: CEditView operation rediculously Slows down in Windows 7 Pin
Vijjuuu.10-Nov-11 6:28
Vijjuuu.10-Nov-11 6:28 
AnswerRe: CEditView operation rediculously Slows down in Windows 7 Pin
David Crow10-Nov-11 2:46
David Crow10-Nov-11 2:46 

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.