Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

23yrold3yrold

Dev-C++ 4.0, and a dialog resource problem

This topic is 5903 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I''ve been learning Win32 programming from Petzold''s Programming Windows, but I''ve hit a snag with one of the examples. Here is the first few lines of a dialog resource in my Rsrc.rc:
  HexCalc DIALOG 1, 1, 102, 122
  STYLE WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX
  CLASS "HexCalc"
  CAPTION "Hex Calculator"
  {
     PUSHBUTTON "D",       68,  8,  24, 14, 14
     ......
 
I get a parse error on line 3. Near as I can tell, it''s all right, and I''m not sure where to look for info on the CLASS keyword. Any ideas what might be causing that? Thanks for your help. Chris Barry (crbarry at mts.net) My Personal Programming Depot

Share this post


Link to post
Share on other sites
Advertisement
quote:
Original post by Puzzler183
What language?

I think it's pretty well stated that it's a Win32 resource file. Edit: I don't personally know the answer (I haven't touched a Win32 resource file for at least a year), I'm just answering sub-questions.



[edited by - Null and Void on April 18, 2002 12:01:13 AM]

Share this post


Link to post
Share on other sites
If you don''t have a resource.h file then don''t worry about it.

But if you see anywhere in your source the following:

MAKEINTRESOURCE

Then chances are that the program needs a resource.h file to resolve the string names into integers. Otherwise if don''t want to use a resource.h file, then anywhere you see MAKEINTRESOURCE, delete it, and just use the string itself.

Share this post


Link to post
Share on other sites
I''ve mucked about with resource files for a couple of years now (thanks to lcc-win32 ), and for the life of me, I''ve never come across a CLASS identifier. Have you tried removing it?

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!