Log in

View Full Version : Win32 Dialog Help


Raven_Writer
11-01-2003, 21:06
I am trying to do a "Open File" dialog box (tutorial found from http://www.gametutorials.com), but I keep getting an error stating the OPENFILENAME is an undeclared identifier. It compiles fine when I load GameTutorials' project (w/o any modifications), but when I copy/paste mine with the changes necessary, I can't compile it. My question is, does anyone know how to declare it? I've looked at MSDN for the error, but that didn't help me. I would post the code, but since it's to big, I'm attatching it. (It's C++ and Win32 (non-MFC)). This also has no extra libraries.

rbayer
12-01-2003, 01:14
You're gonna have to post a lot more than that. I need to see your ENTIRE project and not just the one source file. My best guess based on what little you did post: you aren't including the necessary headers. OPENFILENAME requires commdlg.h in addition to the normal windows.h.

Raven_Writer
12-01-2003, 09:37
Originally posted by rbayer
You're gonna have to post a lot more than that. I need to see your ENTIRE project and not just the one source file. My best guess based on what little you did post: you aren't including the necessary headers. OPENFILENAME requires commdlg.h in addition to the normal windows.h.
Thank you, the problem was that I didn't include the commdlg.h.