I find the problem: if I don't write #include <windows.h> in resource file there is an error when using defines (like WS_POPUP).
In main file is:
#include <windows.h>
#include "resource.h"
In resource file:
#include "resource.h"
In VC++ it works i thinks, in Dev-C++ don't
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
error is "parsing error :line number" or something.
I found the problem: error message is when i don't give #include <windows.h> in resource file. This is set in main.c file, so i think it shoudln't be in res file. Why it doesn't work?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
error is "parse error: line number" or something.
i found the error reason: it appears when i don't set #include <windows.h> in resource file. windows.h is included in main.cpp file, so why it doesn't work?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Do you have any problems with resources in DevCPP? I can't compile things like this:
IDD_ABOUT DIALOG 19, 17, 182, 71
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "About"
FONT 8, "MS Sans Serif"
BEGIN
CTEXT "AAA", 101, 17, 30, 81, 11
GROUPBOX "BBB", 102, 11, 11, 95, 48, WS_TABSTOP
DEFPUSHBUTTON "&Ok", IDOK, 112, 6, 64, 14
PUSHBUTTON "&CCC", IDEMAIL, 112, 21, 64, 14
PUSHBUTTON "DDD", IDAZTEK, 112, 36, 64, 14
PUSHBUTTON "EEE", IDBSRF, 112, 51, 64, 14
END
We kinda need an error message, obviously...
Kip
I find the problem: if I don't write #include <windows.h> in resource file there is an error when using defines (like WS_POPUP).
In main file is:
#include <windows.h>
#include "resource.h"
In resource file:
#include "resource.h"
In VC++ it works i thinks, in Dev-C++ don't
error is "parsing error :line number" or something.
I found the problem: error message is when i don't give #include <windows.h> in resource file. This is set in main.c file, so i think it shoudln't be in res file. Why it doesn't work?
error is "parse error: line number" or something.
i found the error reason: it appears when i don't set #include <windows.h> in resource file. windows.h is included in main.cpp file, so why it doesn't work?