Click here to Skip to main content
16,006,887 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Trouble with Radio Buttons Pin
Navin22-Jul-02 5:36
Navin22-Jul-02 5:36 
GeneralRe: Trouble with Radio Buttons Pin
Renjith Ramachandran22-Jul-02 6:35
Renjith Ramachandran22-Jul-02 6:35 
Generalimitating mouse clicks Pin
NickOne22-Jul-02 4:34
NickOne22-Jul-02 4:34 
Questiontreeview check box color ? Pin
insanely42022-Jul-02 4:25
insanely42022-Jul-02 4:25 
AnswerRe: treeview check box color ? Pin
Shog922-Jul-02 12:58
sitebuilderShog922-Jul-02 12:58 
QuestionDestroyWindow and MDI view...??? Pin
ns22-Jul-02 3:52
ns22-Jul-02 3:52 
GeneralGetOpenFileName unhandled exception. Pin
redeemer22-Jul-02 3:08
redeemer22-Jul-02 3:08 
GeneralRe: GetOpenFileName unhandled exception. Pin
Mike Upton22-Jul-02 4:08
Mike Upton22-Jul-02 4:08 
A couple of points I can see from looking at the documentation for GetOpenFileName().
  • What operating system are you using? There's a note in the platform SDK documentation that says:
    "lStructSize Specifies the length, in bytes, of the structure.
    Windows NT 4.0: In an application that is compiled with WINVER and _WIN32_WINNT >= 0x0500, use OPENFILENAME_SIZE_VERSION_400 for this member.
    Windows 2000/XP: Use sizeof (OPENFILENAME) for this parameter."


  • This is more likely to be the problem - you've forgotten lpstrInitialDir. It should either be the directory you want the dialog to start in, or NULL.

Hope that helps!





"We are the knights who say Ni" (The Knights Who Say Ni)
GeneralRe: GetOpenFileName unhandled exception. Pin
redeemer22-Jul-02 5:01
redeemer22-Jul-02 5:01 
QuestionGDI?? Pin
Anonymous22-Jul-02 2:04
Anonymous22-Jul-02 2:04 
AnswerRe: GDI?? Pin
Christian Graus22-Jul-02 2:05
protectorChristian Graus22-Jul-02 2:05 
GeneralEvent Sinking Interfaces Pin
QAU22-Jul-02 2:02
QAU22-Jul-02 2:02 
Generaladd button to CToolBar, help ! Pin
includeh1022-Jul-02 1:33
includeh1022-Jul-02 1:33 
GeneralCDC::DrawText and DT_CALCRECT Pin
-Dy22-Jul-02 0:25
-Dy22-Jul-02 0:25 
GeneralRe: CDC::DrawText and DT_CALCRECT Pin
Paul M Watt22-Jul-02 9:31
mentorPaul M Watt22-Jul-02 9:31 
GeneralCListCtrl sorting problem Pin
RuiSantiago21-Jul-02 23:36
RuiSantiago21-Jul-02 23:36 
GeneralRe: CListCtrl sorting problem Pin
RuiSantiago21-Jul-02 23:44
RuiSantiago21-Jul-02 23:44 
GeneralMemory error Pin
suresh_sathya21-Jul-02 23:23
suresh_sathya21-Jul-02 23:23 
GeneralRe: Memory error Pin
567890123421-Jul-02 23:24
567890123421-Jul-02 23:24 
GeneralRe: Memory error Pin
Alexandru Savescu21-Jul-02 23:33
Alexandru Savescu21-Jul-02 23:33 
GeneralActivex Programing Pin
Asghar Teimoori21-Jul-02 21:50
Asghar Teimoori21-Jul-02 21:50 
GeneralRe: Activex Programing Pin
super21-Jul-02 22:58
professionalsuper21-Jul-02 22:58 
Generalgdi+ with 3d line Pin
realfly21-Jul-02 21:20
realfly21-Jul-02 21:20 
GeneralRe: gdi+ with 3d line Pin
NormDroid21-Jul-02 21:46
professionalNormDroid21-Jul-02 21:46 
GeneralRe: gdi+ with 3d line Pin
realfly22-Jul-02 15:41
realfly22-Jul-02 15:41 

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.