Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

 
 
Thread Tools Display Modes
Prev Previous Post in Thread   Next Post in Thread Next
Old Jul 4th, 2009, 4:40 AM   #1
rodman
Newbie
 
Join Date: Nov 2006
Posts: 7
Rep Power: 0 rodman is on a distinguished road
Send a message via MSN to rodman
Error C2059

Hi,

I add the following code into the resource.h file:
cplusplus Syntax (Toggle Plain Text)
  1. #define IDR_MYMENU 101
  2. #define IDI_MYICON 201
  3.  
  4. #define ID_FILE_EXIT 9001
  5. #define ID_STUFF_GO 9002

Then I add the following lines to Simple_Window.h file
cplusplus Syntax (Toggle Plain Text)
  1.  
  2. #include "Resource.h"
  3.  
  4. IDR_MYMENU MENU

When I compile my program I get the following error:
Error 1 error C2059: syntax error : 'constant'

What is the problem here?
Thankyou in advance.
rodman is offline   Reply With Quote
 

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 11:10 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC