For some reason my resource file isn't getting compiled when I compile in VC++ 2010 express. Even when I make changes to the .rc file. This is the contents of it:

#include <windows.h>
#include <commctrl.h>
#include "resource.h"

LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
IDD_ASSERT DIALOGEX 150, 100, 180, 180
STYLE DS_MODALFRAME | DS_SETFONT | WS_CAPTION | WS_POPUP | WS_SYSMENU
CAPTION "Assert"
FONT 10, "MS Sans Serif", 0, 0, 1
{
    CONTROL "File:", -1, WC_STATIC, NOT WS_GROUP | SS_LEFT, 7, 7, 23, 9
    CONTROL "no file", IDL_FILE, WC_STATIC, NOT WS_GROUP | SS_LEFT, 23, 7, 238, 8
    CONTROL "Line:", -1, WC_STATIC, NOT WS_GROUP | SS_LEFT, 7, 18, 23, 9
    CONTROL "no line", IDL_LINE, WC_STATIC, NOT WS_GROUP | SS_LEFT, 25, 18, 236, 8
    CONTROL "Assert:", -1, WC_STATIC, NOT WS_GROUP | SS_LEFT, 7, 29, 23, 9
    CONTROL "no assert", IDL_ASSERT, WC_STATIC, NOT WS_GROUP | SS_LEFT, 31, 29, 230, 9
    CONTROL "Break in Debugger", IDB_BREAKINDEBUGGER, WC_BUTTON, WS_TABSTOP | BS_DEFPUSHBUTTON, 7, 69, 98, 14
    CONTROL "Ignore This Assert", IDB_IGNORETHISASSERT, WC_BUTTON, WS_TABSTOP | BS_PUSHBUTTON, 7, 86, 98, 14
    CONTROL "1", IDT_TIMES, WC_EDIT, WS_TABSTOP | WS_BORDER | ES_AUTOHSCROLL | ES_NUMBER, 110, 86, 24, 14, WS_EX_CLIENTEDGE
    CONTROL "time(s).", -1, WC_STATIC, NOT WS_GROUP | SS_LEFT, 138, 89, 23, 8
    CONTROL "Always Ignore This Assert", IDB_ALWAYSIGNORE, WC_BUTTON, WS_TABSTOP | BS_PUSHBUTTON, 7, 105, 98, 14
    CONTROL "Ignore Asserts in This File", IDB_IGNOREASSERTSINFILE, WC_BUTTON, WS_TABSTOP | BS_PUSHBUTTON, 7, 141, 98, 14
    CONTROL "Ignore All Asserts", IDB_IGNOREALLASSERTS, WC_BUTTON, WS_TABSTOP | BS_PUSHBUTTON, 7, 159, 98, 14
    CONTROL "Message:", -1, WC_STATIC, NOT WS_GROUP | SS_LEFT, 7, 40, 38, 8
    CONTROL "no message", IDL_MESSAGE, WC_STATIC, NOT WS_GROUP | SS_LEFT, 41, 40, 132, 8
}

Limitations

The limitations of Visual C++ Express are:
No resource editor.
No built-in MFC support.
No built-in ATL support.
No Profiler support (by using profiler information, you can determine which sections of your code are working efficiently).
Does not support x64 applications (separate compiler available).
No support for add-ins or macros.

Maybe that could be your problem, but I'm just guessing here...

I know there's no resource editor, but I didn't think that ment that it wouldn't compile .rc files. :(

EDIT: I just realised - VC++ 2008 Express didn't have one either, but it compiled fine on that.

EDIT2: Just realised it IS getting compiled. The dbgassert.res file is being generated. What I can't figure out now is why I'm getting the 1813(resource not found) when I run this line of code: DialogBox( GetModuleHandle( NULL ), MAKEINTRESOURCE(IDD_ASSERT), NULL, AssertDlgProc );

Just read express has compiler for rc, but no rc editor, so your right it must be able to compile rc files.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.