Click here to Skip to main content
15,886,362 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: exe fine in codeblocks Pin
Albert Holguin19-Feb-13 4:10
professionalAlbert Holguin19-Feb-13 4:10 
QuestionRe: exe fine in codeblocks Pin
David Crow19-Feb-13 4:40
David Crow19-Feb-13 4:40 
QuestionWDK 7600.16385.1 Compiler Pin
msr_codeproject18-Feb-13 17:44
msr_codeproject18-Feb-13 17:44 
AnswerRe: WDK 7600.16385.1 Compiler Pin
Richard MacCutchan19-Feb-13 3:05
mveRichard MacCutchan19-Feb-13 3:05 
QuestionInvoking a modal Dialog whitin a modal Pin
ForNow18-Feb-13 12:39
ForNow18-Feb-13 12:39 
AnswerRe: Invoking a modal Dialog whitin a modal Pin
Jibesh18-Feb-13 12:55
professionalJibesh18-Feb-13 12:55 
GeneralRe: Invoking a modal Dialog whitin a modal Pin
ForNow18-Feb-13 13:42
ForNow18-Feb-13 13:42 
GeneralRe: Invoking a modal Dialog whitin a modal Pin
«_Superman_»18-Feb-13 19:51
professional«_Superman_»18-Feb-13 19:51 
There are many problems in your code.
The main problem that I see is the typecast to LPCTSTR.
I've said it before and I will say it again - Typecasting is evil.

Here is a sample code that you can use to correct your mistakes -
CFileDialog fOpenDlg(TRUE, L"txt", L"",
                       OFN_FILEMUSTEXIST|OFN_EXPLORER|OFN_HIDEREADONLY ,
                        L"All Image Files (*.jpg;*.jpeg;*.bmp;*.png)|*.jpg; *.jpeg; *.bmp ; *.png|Bitmap Files (*.bmp)|*.bmp|PNG Files (*.png)|*.png|JPEG Files (*.jpg;*.jpeg)|*.jpg; *.jpeg||", this);

fOpenDlg.DoModal();

«_Superman 
I love work. It gives me something to do between weekends.


Microsoft MVP (Visual C++) (October 2009 - September 2013)

Polymorphism in C

GeneralRe: Invoking a modal Dialog whitin a modal Pin
Richard MacCutchan18-Feb-13 21:24
mveRichard MacCutchan18-Feb-13 21:24 
GeneralRe: Invoking a modal Dialog whitin a modal Pin
ForNow19-Feb-13 2:29
ForNow19-Feb-13 2:29 
GeneralRe: Invoking a modal Dialog whitin a modal Pin
Richard MacCutchan19-Feb-13 3:02
mveRichard MacCutchan19-Feb-13 3:02 
GeneralRe: Invoking a modal Dialog whitin a modal Pin
David Crow19-Feb-13 9:42
David Crow19-Feb-13 9:42 
GeneralRe: Invoking a modal Dialog whitin a modal Pin
ForNow19-Feb-13 11:33
ForNow19-Feb-13 11:33 
SuggestionRe: Invoking a modal Dialog whitin a modal Pin
David Crow20-Feb-13 3:25
David Crow20-Feb-13 3:25 
GeneralRe: Invoking a modal Dialog whitin a modal Pin
ForNow20-Feb-13 7:22
ForNow20-Feb-13 7:22 
GeneralRe: Invoking a modal Dialog whitin a modal Pin
David Crow20-Feb-13 7:39
David Crow20-Feb-13 7:39 
GeneralRe: Invoking a modal Dialog whitin a modal Pin
ForNow20-Feb-13 9:41
ForNow20-Feb-13 9:41 
QuestionRe: Invoking a modal Dialog whitin a modal Pin
David Crow20-Feb-13 10:08
David Crow20-Feb-13 10:08 
AnswerRe: Invoking a modal Dialog whitin a modal Pin
ForNow20-Feb-13 10:43
ForNow20-Feb-13 10:43 
SuggestionRe: Invoking a modal Dialog whitin a modal Pin
David Crow20-Feb-13 10:46
David Crow20-Feb-13 10:46 
QuestionRe: Invoking a modal Dialog whitin a modal Pin
David Crow19-Feb-13 4:34
David Crow19-Feb-13 4:34 
AnswerRe: Invoking a modal Dialog whitin a modal Pin
ForNow19-Feb-13 6:10
ForNow19-Feb-13 6:10 
GeneralRe: Invoking a modal Dialog whitin a modal Pin
Richard MacCutchan19-Feb-13 8:50
mveRichard MacCutchan19-Feb-13 8:50 
QuestionRe: Invoking a modal Dialog whitin a modal Pin
David Crow19-Feb-13 9:36
David Crow19-Feb-13 9:36 
QuestionCreate a program to encrypt and decrypt binary files using S-DES (Simplified DES) in the Cipher Block Chaining mode. Pin
franksilva14318-Feb-13 7:16
franksilva14318-Feb-13 7:16 

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.