Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Win32 Dialog Help (http://www.chiefdelphi.com/forums/showthread.php?t=16340)

Raven_Writer 11-01-2003 21:06

Win32 Dialog Help
 
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

Quote:

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.


All times are GMT -5. The time now is 04:26.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi