Advertisement

vc++6 help....

Started by June 01, 2002 02:21 PM
10 comments, last by raislam 22 years, 3 months ago
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
Sounds like it''s trying to compile the resource file as a source file. Have you modified the code at all?

Later,
ZE.

//email me.//zealouselixir software.//msdn.//n00biez.//
miscellaneous links

[if you have a link proposal, email me.]

[twitter]warrenm[/twitter]

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

Service pack 5?
whats service pack 5?

*bump*

Advertisement
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 "Α", ID_ONE_ALPHA
MENUITEM "Β", ID_ONE_BETA
MENUITEM "&Exit", ID_ONE_EXIT
END
POPUP "&Two"
BEGIN
MENUITEM "Γ", ID_TWO_GAMMA
POPUP "Δ"
BEGIN
MENUITEM "Ε", ID_TWO_DELTA_EPSILON
MENUITEM "Ζ", ID_TWO_DELTA_ZETA
END
MENUITEM "Η", ID_TWO_ETA
MENUITEM "Θ", 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

Why don''t you just totally remove that line and see what happens?

Later,
ZE.

//email me.//zealouselixir software.//msdn.//n00biez.//
miscellaneous links

[if you have a link proposal, email me.]

[twitter]warrenm[/twitter]

now it says the the #pragma right beneath it is unknown

wait... nvm, thats just a warning... but it does say that i need a '';'' somewhere around the menu and i have no idea where

This topic is closed to new replies.

Advertisement