View Full Version : Win32 Dialog Help
Raven_Writer
01-11-2003, 08:06 PM
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
01-12-2003, 12:14 AM
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
01-12-2003, 08:37 AM
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.
vBulletin® v3.6.4, Copyright ©2000-2013, Jelsoft Enterprises Ltd.