Armenian Knowledge Base  

Go Back   Armenian Knowledge Base > Technical sections > Languages, Compilers, Interpreters
Register

Reply
 
LinkBack Thread Tools
Old 04.03.2002, 13:05   #1
Младенец
 
Join Date: 03 2002
Location: Yerevan
Posts: 7
Downloads: 0
Uploads: 0
Reputation: 0 | 0
Question Visual resource panel trouble

Hello dear programmers and prospective programmers
Could you please tell me how can i solve the trouble with this. AFter installing Visual c++ 6.0, when making MFC app(exe) and clicking on a resource tab it gives me "this resource uses unknown languagee 2bx0, 0x1" message and doesn't show my resources tab (it saiz - load failed)
So what should i do?
Dont tell me to see documentation - i aleady did, and i also tried to reinstall it!

Kind regards
__________________
Ամեն ինչ կախվածա նրանից թե ինչքան ես դու...
Reply With Quote
Old 04.03.2002, 15:48   #2
Академик
 
greka's Avatar
 
Join Date: 09 2001
Location: inside myself
Posts: 5,369
Downloads: 0
Uploads: 0
Reputation: 18 | 5
Post

hi.
I never seen problem like this.

Please describe which OS you're using I'll try to find an answer.
Reply With Quote
Old 05.03.2002, 07:09   #3
Дошкольник
 
Basil REX's Avatar
 
Join Date: 01 2002
Location: Yerevan
Age: 64
Posts: 78
Downloads: 1
Uploads: 0
Reputation: 0 | 0
Arrow

As I understand this message indicates a variance in lingual settings between your OS and your project in VS.
Most of VS editions support only few languages for projects.
If your Windows' Regional Options are set to Armenian (for example), AppWizard in VS will try to set resource language to Armenian too. But Armenian is unsupported (thus unknown) language for VS.
I met something like that a few years ago, when I installed English version of VS on Russian Win95.

I suppose your problem is of the same kind.

Check your project settings. Open "Project" menu and select "Settings" item. Then select "Resources" tab in opened dialog-box and look on "Language" combo or check hexadecimal codepage number for resource language in /l parameter (lowest edit box).

Please, inform me whether am I correct or not -- it's an interesting problem.
__________________
Per aspera ad astra!
Reply With Quote
Old 08.03.2002, 13:05   #4
Младенец
 
Join Date: 03 2002
Location: Yerevan
Posts: 7
Downloads: 0
Uploads: 0
Reputation: 0 | 0
Post

first of all thank you very much for the answers.

i'm using winxp, and vc++6.0
error message sais "unknown language: 0x2b,0x1"
The same error occurs when I click the *.rc file in source files folder.

I'va already changed the language etting to ENglish but it didn't help yet. The hexadecimal setting for the language is "0x409"(english-US) but it doesn't help either but you gave me some invaluable clues to think on to solve this problem - thanks. I'll in form you when i'kll make it!

Looking forward to your responces!
Reply With Quote
Old 10.03.2002, 07:10   #5
Guest
 
Posts: n/a
Downloads:
Uploads:
Post

Of course this error must occure when you try to open .rc file, because you actually open your .rc file when you switch to resource panel.

Try the following. Open your .rc file outside of your Visual Studio, using some simpliest text editor (Notepad or WordPad) and examine its content -- it's just a text file. Especially pay your attention to blocks of codes like those:


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

or

"LANGUAGE 9, 1\r\n"
"#pragma code_page(1252)\r\n"

They appear in many places into .rc file.

BTW, did you try to perform "clean build" of your project, without trying to open your resource panel? If you manage to do it, then examine the file with .plg extension -- it will contain the listing for resource compiler and you could easy find the place with incorrect code in .rc file.

Another question. Did I understand correct that you had discovered this error first time when you had created your application? If so, did you try to create this application again with AppWizard?
Reply With Quote
Old 10.03.2002, 07:13   #6
Дошкольник
 
Basil REX's Avatar
 
Join Date: 01 2002
Location: Yerevan
Age: 64
Posts: 78
Downloads: 1
Uploads: 0
Reputation: 0 | 0
Post

2 ADMINISTRATOR !!!

I typed a long reply to this topic.
What happened with it???!!!
This is what came to site.

Quote:
Originally posted by 1:
Of course this error must occure when you try to open .rc file, because you actually open your .rc file when you switch to resource panel.

Try the following. Open your .rc file outside of your Visual Studio, using some simpliest text editor (Notepad or WordPad) and examine its content -- it's just a text file. Especially pay your attention to blocks of codes like those:

</font><blockquote><font size="1" face="MS Sans Serif, Verdana, Helvetica, sans-serif">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">
#if !defined(AFX_RESOURCE_DLL)
Please, check your script and try to recover my text.
Reply With Quote
Old 12.03.2002, 08:34   #7
Младенец
 
Join Date: 03 2002
Location: Yerevan
Posts: 7
Downloads: 0
Uploads: 0
Reputation: 0 | 0
Wink

dear Rex Basil

the very first idea of mine about how to solve this was exactly what you said - to open .rc with notepad and look for that kind of stuff, but first of all i was expecting to find something related to that languages mentioned in the error message! but i found nothing of a kind and also i found a lot of staff that you told me but i don't know what to do with em!?!

What should this error in text most probably look like in your opinion.

It is worth to mention that i already tried to nstall several other vc++ but neither worked!

Regards
Reply With Quote
Old 17.03.2002, 04:38   #8
Дошкольник
 
Basil REX's Avatar
 
Join Date: 01 2002
Location: Yerevan
Age: 64
Posts: 78
Downloads: 1
Uploads: 0
Reputation: 0 | 0
Post

Dear ButtHead.

Reading your very first message, I understood your problem as the following:

You created a project in VS using AppWiz.
Then you tried to open resource panel. During this procedure VS starts resource compiler, which tries to perform the first step of resource file compilation (something like preproceesor step in C++ compiler).
Trying to perform this, your resource compiler reported a syntax error in your .rc file, which (according to error mesage text) was related to incorrect settings for language, used in .rc file.

So, the only thing I can recommend, was my previous advice to check the content of .rc file and try to find those incorrect settings (visually).

Another way could be "total elimination" i.e. remove your progect and create it again from scratch.

To my regret I cannot offer you more help beeng far away from problem place

Good luck, my friend.
Reply With Quote
Sponsored Links
Reply

Thread Tools


На правах рекламы:
реклама

All times are GMT. The time now is 14:09.


Powered by vBulletin® Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.