Page 1 of 1

Problems using .rc files

Posted: Mon Aug 02, 2004 12:12 pm
by dit6a9
I'm using the following .rc file:

Code: Select all

#include "resources.h"

/*********************************************
File: D:\C\EJEMPLOS\DIALOGBOXES\RESOURCES.RC
Generated by Resource Builder 2.0.
*********************************************/
// Below are important 3 lines, don't change them!
/*
OutputExt=res
*/

DIALOG_0 DIALOG 0, 0, 485, 272
STYLE DS_SETFONT |WS_CHILD |WS_VISIBLE 
FONT 8, "Tahoma"
LANGUAGE LANG_NEUTRAL, 0
BEGIN
  CONTROL "Siguiente >>",0,"BUTTON",BS_DEFPUSHBUTTON |BS_VCENTER |BS_CENTER |WS_CHILD |WS_TABSTOP |WS_VISIBLE ,344,230,116,20
END
and the file resources.h is almost empyt:

Code: Select all

#include <windows.h>
The compiler I use is the free command line tools of BCC 5.5 so I've configured Resource Builder to use the following include directory:

Code: Select all

D:\freecommandLinetools\Include

Everytime I try to open my .rc file I get the following message:

Code: Select all

Error ID: 116
Error message: File D:\freecommandLinetools\Include\windows.h. Line 54: 116. Number expected but got _MSC_VER in expression

What is wrong? The windows.h file has been modified and belongs to the BCC 5.5 package.

The only way I don't get an erro everytime I save the .rc file is by removing any #include sentence like #include <windows.h>

Posted: Mon Aug 02, 2004 12:53 pm
by isiticov
This looks like windows.h file references to _MSC_VER variable which is not defined there and I can suppose that it is global compiler variable. You may try to use the Resource Builder Options dialog and on Compiler tab enter the compiler definition for _MSC_VER variable. I don't know what value it should contain but you may try to investigate this in your environment compiler.
Hope this helps.