Jump to content
  • Advertisement

Archived

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

raislam

vc++6 help....

This topic is 5859 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

yea yea, im a noob, w/e... but look, i just recently (1 week ago) went into windows instead of dos programming... anyway, im startin with little non-game programs but i''m gettin this annoyin-@$$ error... in my resource file, which btw was automatically generated by VC++6, there is a placce where there is a class ''LANGUAGE'' used for the line ''LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US''. i keep gettin this error: ''f:\microsoft visual studio\myprojects\program3\program3.rc(20) : error C2501: ''LANGUAGE'' : missing storage-class or type specifiers'' any help would be appreciated thx LiveWireRaislam - Sean

Share this post


Link to post
Share on other sites
Advertisement
the resource file is in the resource folder of the project and i tried modifying the code b4, but i jus got more errors, so i recreated the project and got this error again... is there a particular file that has the ''LANGUAGE'' class in it? maybe i should just add another include file

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Service pack 5?

Share this post


Link to post
Share on other sites
aight, look... the simplest way i can get this question answered is by putting up the code generated by VC++6 and asking one of you to compare it to yours... so, could someone create a simple menu and look at the .rc file and tell me if it looks similar to this code (and if not, what is different):

//Microsoft Developer Studio generated resource script.
//
#include "resource.h"

#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#include "afxres.h"

/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS

/////////////////////////////////////////////////////////////////////////////
// English (U.S.) resources

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
#ifdef _WIN32
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
#pragma code_page(1252)
#endif //_WIN32

#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// TEXTINCLUDE
//

1 TEXTINCLUDE DISCARDABLE
BEGIN
"resource.h\0"
END

2 TEXTINCLUDE DISCARDABLE
BEGIN
"#include ""afxres.h""\r\n"
"\0"
END

3 TEXTINCLUDE DISCARDABLE
BEGIN
"\r\n"
"\0"
END

#endif // APSTUDIO_INVOKED


/////////////////////////////////////////////////////////////////////////////
//
// Menu
//

IDR_MENU1 MENU DISCARDABLE
BEGIN
POPUP "&One"
BEGIN
MENUITEM "&Alpha", ID_ONE_ALPHA
MENUITEM "&Beta", ID_ONE_BETA
MENUITEM "&Exit", ID_ONE_EXIT
END
POPUP "&Two"
BEGIN
MENUITEM "&Gamma", ID_TWO_GAMMA
POPUP "&Delta"
BEGIN
MENUITEM "&Epsilon", ID_TWO_DELTA_EPSILON
MENUITEM "&Zeta", ID_TWO_DELTA_ZETA
END
MENUITEM "&Eta", ID_TWO_ETA
MENUITEM "&Theta", ID_TWO_THETA
END
MENUITEM "&Help", ID_HELP
END

#endif // English (U.S.) resources
/////////////////////////////////////////////////////////////////////////////



#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//


/////////////////////////////////////////////////////////////////////////////
#endif // not APSTUDIO_INVOKED

Share this post


Link to post
Share on other sites
wait... nvm, thats just a warning... but it does say that i need a '';'' somewhere around the menu and i have no idea where

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!