Click here to Skip to main content
15,927,937 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questiondecrypting the file Pin
code663-Apr-06 0:22
code663-Apr-06 0:22 
AnswerRe: decrypting the file Pin
toxcct3-Apr-06 0:25
toxcct3-Apr-06 0:25 
GeneralRe: decrypting the file Pin
code663-Apr-06 0:33
code663-Apr-06 0:33 
GeneralRe: decrypting the file Pin
code663-Apr-06 0:42
code663-Apr-06 0:42 
QuestionCMonthCalCtrl funny Pin
mcsherry2-Apr-06 23:47
mcsherry2-Apr-06 23:47 
AnswerRe: CMonthCalCtrl funny Pin
mcsherry3-Apr-06 2:48
mcsherry3-Apr-06 2:48 
AnswerRe: CMonthCalCtrl funny Pin
mcsherry3-Apr-06 3:30
mcsherry3-Apr-06 3:30 
QuestionFinding files Pin
Waldermort2-Apr-06 23:44
Waldermort2-Apr-06 23:44 
I have somewhat of a strange problem. I have associated a file type with my app, and set all the registry values accordingly. Double clicking the file opens my app and passes the file and path just as it should. From within my app I then check if the file is there.
WIN32_FIND_DATA fd;
HANDLE          hand;

hand = FindFirstFile(filename,&fd);
if (hand == INVALID_HANDLE_VALUE) {
    MessageBox(0,"File not found",0,0);
    return 0;
}
FindClose(hand);
All this works from within the MSVC environment with both release and debug builds. But after installing the app (program files directory) the findfirstfile() always fails. I have tried placing the file in various locations but it can never confirm that it's there.

Any ideas as to what I may be doing wrong?
AnswerRe: Finding files Pin
khan++2-Apr-06 23:50
khan++2-Apr-06 23:50 
GeneralRe: Finding files Pin
Waldermort2-Apr-06 23:55
Waldermort2-Apr-06 23:55 
AnswerRe: Finding files Pin
Waldermort3-Apr-06 0:04
Waldermort3-Apr-06 0:04 
AnswerRe: Finding files Pin
Hamid_RT3-Apr-06 1:48
Hamid_RT3-Apr-06 1:48 
Questionhow do u do this???? Pin
slurpyz2-Apr-06 23:32
slurpyz2-Apr-06 23:32 
AnswerRe: how do u do this???? Pin
Abebe2-Apr-06 23:41
Abebe2-Apr-06 23:41 
QuestionRe: how do u do this???? Pin
David Crow3-Apr-06 2:28
David Crow3-Apr-06 2:28 
QuestionHow to handle Close button in MDI? Pin
Sarvan AL2-Apr-06 23:27
Sarvan AL2-Apr-06 23:27 
AnswerRe: How to handle Close button in MDI? Pin
khan++2-Apr-06 23:45
khan++2-Apr-06 23:45 
GeneralRe: How to handle Close button in MDI? Pin
Sarvan AL2-Apr-06 23:58
Sarvan AL2-Apr-06 23:58 
GeneralRe: How to handle Close button in MDI? Pin
khan++3-Apr-06 0:14
khan++3-Apr-06 0:14 
GeneralRe: How to handle Close button in MDI? Pin
Nibu babu thomas3-Apr-06 0:16
Nibu babu thomas3-Apr-06 0:16 
GeneralRe: How to handle Close button in MDI? Pin
Sarvan AL3-Apr-06 0:26
Sarvan AL3-Apr-06 0:26 
GeneralRe: How to handle Close button in MDI? Pin
Nibu babu thomas3-Apr-06 0:39
Nibu babu thomas3-Apr-06 0:39 
GeneralRe: How to handle Close button in MDI? Pin
khan++3-Apr-06 0:41
khan++3-Apr-06 0:41 
GeneralRe: How to handle Close button in MDI? Pin
Sarvan AL3-Apr-06 0:46
Sarvan AL3-Apr-06 0:46 
QuestionRe: How to handle Close button in MDI? Pin
David Crow3-Apr-06 2:30
David Crow3-Apr-06 2:30 

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.