MSVC++2010 Resource Compiler Error

l wanted to create an app and l edited the .rc file but on compilation l got errors. And l need help getting my work compiled. Thanks
Below is the RC content and the errors reported by VC++

1) .RC

//Microsoft Visual C++ generated resource script.
//
#include "resource.h"

#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#ifndef APSTUDIO_INVOKED
#include "targetver.h"
#endif
#define APSTUDIO_HIDDEN_SYMBOLS
#include "windows.h"
#undef APSTUDIO_HIDDEN_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
LANGUAGE 9, 1

/////////////////////////////////////////////////////////////////////////////
//
// Icon
//

// Icon with lowest ID value placed first to ensure application icon
// remains consistent on all systems.

IDI_UNICALPTUME ICON "Unical PTUME.ico"
IDI_SMALL ICON "small.ico"

/////////////////////////////////////////////////////////////////////////////
//
// Menu
//

IDC_UNICALPTUME MENU
BEGIN
POPUP "&File"
BEGIN
MENUITEM "E&xit", IDM_EXIT
END
POPUP "&Help"
BEGIN
MENUITEM "&About ...", IDM_ABOUT
END
END


/////////////////////////////////////////////////////////////////////////////
//
// Accelerator
//

IDC_UNICALPTUME ACCELERATORS
BEGIN
"?", IDM_ABOUT, ASCII, ALT
"/", IDM_ABOUT, ASCII, ALT
END


//My Combo Dialog box here

CHOICEBOX DIALOG DISCARDABLE 50, 50, 500, 500
STYLE DS_MODALFRAME|WS_VISIBLE|WS_POPUP|WS_CAPTION|DS_SETFONT
CAPTION "Select Category"
FONT 10, "MS Shell Dlg"
BEGIN
LTEXT "FACULTY", IDC_STATIC,10,10,50,50
COMBOBOX IDC_UNICALPTUME_FACULTY, 10,14,100,50, CBS_DROPDOWNLIST|WS_VSCROLL | WS_TABSTOP
EDITTEXT IDC_UNICALPTUME_SUBJECT_TBOX, 10, 18, 60,50, ES_LEFT|WS_BORDER
LTEXT "SUBJECT", IDC_STATIC, 30, 20, 50,50
COMBOBOX IDC_UNICALPTUME_SUBJECT1, 10,25,50,50, CBS_DROPDOWNLIST|WS_TABSTOP
COMBOBOX IDC_UNICALPTUME_SUBJECT2, 10,30,50,50, CBS_DROPDOWNLIST|WS_TABSTOP
COMBOBOX IDC_UNICALPTUME_SUBJECT3, 10,35,50,50, CBS_DROPDOWNLIST|WS_TABSTOP
COMBOBOX IDC_UNICALPTUME_SUBJECT4, 10,40,50,50, CBS_DROPDOWNLIST|WS_TABSTOP
COMBOBOX IDC_UNICALPTUME_SUBJECT5, 10,45,50,50, CBS_DROPDOWNLIST|WS_TABSTOP
COMBOBOX IDC_UNICALPTUME_SUBJECT6, 10,50,50,50, CBS_DROPDOWNLIST|WS_TABSTOP
COMBOBOX IDC_UNICALPTUME_YEAR1, 55,25,30,30, CBS_DROPDOWNLIST|WS_TABSTOP
COMBOBOX IDC_UNICALPTUME_YEAR2, 55,30,30,30 CBS_DROPDOWNLIST|WS_TABSTOP
COMBOBOX IDC_UNICALPTUME_YEAR3, 55,35,30,30 CBS_DROPDOWNLIST|WS_TABSTOP
COMBOBOX IDC_UNICALPTUME_YEAR4, 55,40,30,30 CBS_DROPDOWNLIST|WS_TABSTOP
COMBOBOX IDC_UNICALPTUME_YEAR5, 55,45,30,30 CBS_DROPDOWNLIST|WS_TABSTOP
COMBOBOX IDC_UNICALPTUME_YEAR6, 55,50,30,30 CBS_DROPDOWNLIST|WS_TABSTOP
LTEXT "TIME", IDC_STATIC, 30,60,50,50
COMBOBOX IDC_UNICALPTUME_TIME, 60,65,50,50, CBS_DROPDOWNLIST|WS_TABSTOP
END


/////////////////////////////////////////////////////////////////////////////
//
// Dialog
//

IDD_ABOUTBOX DIALOGEX 0, 0, 170, 62
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "About Unical PTUME"
FONT 8, "MS Shell Dlg"
BEGIN
ICON IDR_MAINFRAME,IDC_STATIC,14,14,21,20
LTEXT "Unical PTUME, Version 1.0",IDC_STATIC,42,14,114,8,SS_NOPREFIX
LTEXT "Copyright (C) 2015",IDC_STATIC,42,26,114,8
DEFPUSHBUTTON "OK",IDOK,113,41,50,14,WS_GROUP
END

/////////////////////////////////////////////////////////////////////////////
//
// DESIGNINFO
//

#ifdef APSTUDIO_INVOKED
GUIDELINES DESIGNINFO
BEGIN
IDD_ABOUTBOX, DIALOG
BEGIN
LEFTMARGIN, 7
RIGHTMARGIN, 163
TOPMARGIN, 7
BOTTOMMARGIN, 55
END
END
#endif // APSTUDIO_INVOKED

#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// TEXTINCLUDE
//
1 TEXTINCLUDE
BEGIN
"resource.h\0"
END

2 TEXTINCLUDE
BEGIN
"#ifndef APSTUDIO_INVOKED\r\n"
"#include ""targetver.h""\r\n"
"#endif\r\n"
"#define APSTUDIO_HIDDEN_SYMBOLS\r\n"
"#include ""windows.h""\r\n"
"#undef APSTUDIO_HIDDEN_SYMBOLS\r\n"
"\0"
END

3 TEXTINCLUDE
BEGIN
"\r\n"
"\0"
END

#endif // APSTUDIO_INVOKED

/////////////////////////////////////////////////////////////////////////////
//
// String Table
//

STRINGTABLE
BEGIN
IDC_UNICALPTUME "UNICALPTUME"
IDS_APP_TITLE "Unical PTUME"
END

#endif
/////////////////////////////////////////////////////////////////////////////



#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//

/////////////////////////////////////////////////////////////////////////////
#endif // not APSTUDIO_INVOKED



2) MS VC++ Error report

1>------ Build started: Project: Unical PTUME, Configuration: Debug Win32 ------
1>Build started 1/6/2016 9:06:48 PM.
1>InitializeBuildStatus:
1> Touching "Debug\Unical PTUME.unsuccessfulbuild".
1>ClCompile:
1> All outputs are up-to-date.
1> All outputs are up-to-date.
1>ResourceCompile:
1>
1>Unical PTUME.rc(81): error RC2111: invalid control type
1>
1>
1>Unical PTUME.rc(81): error RC2113: END expected in dialog
1>
1>
1>Unical PTUME.rc(82): error RC2135: file not found: 140


l don't understand what (81) and (82) and what the last three statements means.


I guess Cervil is right.
Probably some commas missing after the last 30.
1
2
3
4
5
COMBOBOX IDC_UNICALPTUME_YEAR2, 55, 30, 30, 30     CBS_DROPDOWNLIST | WS_TABSTOP
COMBOBOX IDC_UNICALPTUME_YEAR3, 55, 35, 30, 30     CBS_DROPDOWNLIST | WS_TABSTOP
COMBOBOX IDC_UNICALPTUME_YEAR4, 55, 40, 30, 30     CBS_DROPDOWNLIST | WS_TABSTOP
COMBOBOX IDC_UNICALPTUME_YEAR5, 55, 45, 30, 30     CBS_DROPDOWNLIST | WS_TABSTOP
COMBOBOX IDC_UNICALPTUME_YEAR6, 55, 50, 30, 30     CBS_DROPDOWNLIST | WS_TABSTOP
Last edited on
Not a user of vc++, but I guess 81 and 82 are the line numbers within the named file.
Looks like there is an error round about here?
1
2
	COMBOBOX IDC_UNICALPTUME_YEAR1,    55,25,30,30, CBS_DROPDOWNLIST|WS_TABSTOP
	COMBOBOX IDC_UNICALPTUME_YEAR2,    55,30,30,30 CBS_DROPDOWNLIST|WS_TABSTOP


Should there not be a comma after 30 and before CBS ?

Last edited on
@Chevil: Thanks but that's how it is done in VC++

@Thomas1965: Unical PTUME.ico is VC++ auto generated file and the IDC_UNICALPTUME_FACULTY is my #define which l put in header file.

The problem is from the COMBOBOX class l put in the .rc. Am creating a combo box
l want to e in a dialog which requires commctrl.h but when l put #include <commctrl.h> the IDE tells me it requires a file.
So my problem which l need help on is how l can insert a combobox in my crafted dialogbox.

Now l corrected the .rc error, on compiling it again, l got the following error

1) On Modules pane;
Unical PTUME.exe C:\Users\CHIBU\Documents\Visual Studio 2010\Projects\Unical PTUME\Debug\Unical PTUME.exe N/A N/A Symbols loaded. C:\Users\CHIBU\Documents\Visual Studio 2010\Projects\Unical PTUME\Debug\Unical PTUME.pdb 1 1/6/2016 11:21 PM 00270000-0029A000 [25860] Unical PTUME.exe: Native
Unical PTUME.exe C:\Users\CHIBU\Documents\Visual Studio 2010\Projects\Unical PTUME\Debug\Unical PTUME.exe N/A N/A Symbols loaded. C:\Users\CHIBU\Documents\Visual Studio 2010\Projects\Unical PTUME\Debug\Unical PTUME.pdb 1 1/6/2016 11:21 PM 00270000-0029A000 [25860] Unical PTUME.exe: Native
ntdll.dll C:\Windows\SysWOW64\ntdll.dll N/A N/A Cannot find or open the PDB file 2 6.2.9200.16384 (win8_rtm.120725-1247) 11/12/2015 9:04 PM 76F20000-77077000 [25860] Unical PTUME.exe: Native
ntdll.dll C:\Windows\SysWOW64\ntdll.dll N/A N/A Cannot find or open the PDB file 2 6.2.9200.16384 (win8_rtm.120725-1247) 11/12/2015 9:04 PM 76F20000-77077000 [25860] Unical PTUME.exe: Native
kernel32.dll C:\Windows\SysWOW64\kernel32.dll N/A N/A Cannot find or open the PDB file 3 6.2.9200.16384 (win8_rtm.120725-1247) 3/1/2014 7:59 AM 76710000-76840000 [25860] Unical PTUME.exe: Native
kernel32.dll C:\Windows\SysWOW64\kernel32.dll N/A N/A Cannot find or open the PDB file 3 6.2.9200.16384 (win8_rtm.120725-1247) 3/1/2014 7:59 AM 76710000-76840000 [25860] Unical PTUME.exe: Native
KernelBase.dll C:\Windows\SysWOW64\KernelBase.dll N/A N/A Cannot find or open the PDB file 4 6.2.9200.16384 (win8_rtm.120725-1247) 5/8/2015 9:05 PM 75EB0000-75F57000 [25860] Unical PTUME.exe: Native
KernelBase.dll C:\Windows\SysWOW64\KernelBase.dll N/A N/A Cannot find or open the PDB file 4 6.2.9200.16384 (win8_rtm.120725-1247) 5/8/2015 9:05 PM 75EB0000-75F57000 [25860] Unical PTUME.exe: Native
user32.dll C:\Windows\SysWOW64\user32.dll N/A N/A Cannot find or open the PDB file 5 6.2.9200.16384 (win8_rtm.120725-1247) 6/28/2014 3:23 AM 76CB0000-76DC6000 [25860] Unical PTUME.exe: Native
user32.dll C:\Windows\SysWOW64\user32.dll N/A N/A Cannot find or open the PDB file 5 6.2.9200.16384 (win8_rtm.120725-1247) 6/28/2014 3:23 AM 76CB0000-76DC6000 [25860] Unical PTUME.exe: Native
msvcr100d.dll C:\Windows\SysWOW64\msvcr100d.dll N/A N/A Symbols loaded. C:\Windows\symbols\dll\msvcr100d.i386.pdb 6 10.00.30319.460 4/22/2011 9:00 AM 0FF40000-100B2000 [25860] Unical PTUME.exe: Native
msvcr100d.dll C:\Windows\SysWOW64\msvcr100d.dll N/A N/A Symbols loaded. C:\Windows\symbols\dll\msvcr100d.i386.pdb 6 10.00.30319.460 4/22/2011 9:00 AM 0FF40000-100B2000 [25860] Unical PTUME.exe: Native
gdi32.dll C:\Windows\SysWOW64\gdi32.dll N/A N/A Cannot find or open the PDB file 7 6.2.9200.17410 (win8_gdr.150611-0606) 6/11/2015 5:27 PM 76060000-7615D000 [25860] Unical PTUME.exe: Native
imm32.dll C:\Windows\SysWOW64\imm32.dll N/A N/A Cannot find or open the PDB file 8 6.2.9200.16384 (win8_rtm.120725-1247) 7/26/2012 3:27 AM 76040000-76060000 [25860] Unical PTUME.exe: Native
msctf.dll C:\Windows\SysWOW64\msctf.dll N/A N/A Cannot find or open the PDB file 9 6.2.9200.16384 (win8_rtm.120725-1247) 3/14/2015 4:58 AM 76BD0000-76CAD000 [25860] Unical PTUME.exe: Native
msvcrt.dll C:\Windows\SysWOW64\msvcrt.dll N/A N/A Cannot find or open the PDB file 10 7.0.9200.16384 (win8_rtm.120725-1247) 7/26/2012 3:40 AM 76160000-76211000 [25860] Unical PTUME.exe: Native
uxtheme.dll C:\Windows\SysWOW64\uxtheme.dll N/A N/A Cannot find or open the PDB file 11 6.2.9200.16384 (win8_rtm.120725-1247) 11/7/2015 6:29 AM 72C60000-72CE8000 [25860] Unical PTUME.exe: Native
dwmapi.dll C:\Windows\SysWOW64\dwmapi.dll N/A N/A Cannot find or open the PDB file 12 6.2.9200.16384 (win8_rtm.120725-1247) 6/28/2014 3:23 AM 72C40000-72C5A000 [25860] Unical PTUME.exe: Native
comctl32.dll C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.9200.17359_none_8935f06086091acc\comctl32.dll N/A N/A Cannot find or open the PDB file 13 6.10 (win8_rtm.120725-1247) 4/25/2015 1:34 AM 72CF0000-72EE8000 [25860] Unical PTUME.exe: Native
SHCore.dll C:\Windows\SysWOW64\SHCore.dll N/A N/A Cannot find or open the PDB file 14 6.2.9200.16384 (win8_rtm.120725-1247) 11/12/2015 6:39 PM 72F20000-72F93000 [25860] Unical PTUME.exe: Native
combase.dll C:\Windows\SysWOW64\combase.dll N/A N/A Cannot find or open the PDB file 15 6.2.9200.16384 (win8_rtm.120725-1247) 9/20/2012 5:11 AM 74730000-74866000 [25860] Unical PTUME.exe: Native
rpcrt4.dll C:\Windows\SysWOW64\rpcrt4.dll N/A N/A Cannot find or open the PDB file 16 6.2.9200.16384 (win8_rtm.120725-1247) 6/27/2015 2:22 PM 76660000-7670C000 [25860] Unical PTUME.exe: Native
sspicli.dll C:\Windows\SysWOW64\sspicli.dll N/A N/A Cannot find or open the PDB file 17 6.2.9200.16864 (win8_gdr.140309-1509) 3/10/2014 2:27 AM 74510000-7452D000 [25860] Unical PTUME.exe: Native
cryptbase.dll C:\Windows\SysWOW64\cryptbase.dll N/A N/A Cannot find or open the PDB file 18 6.2.9200.16384 (win8_rtm.120725-1247) 7/26/2012 3:35 AM 74500000-74509000 [25860] Unical PTUME.exe: Native
sechost.dll C:\Windows\SysWOW64\sechost.dll N/A N/A Cannot find or open the PDB file 19 6.2.9200.16384 (win8_rtm.120725-1247) 7/26/2012 1:10 AM 748C0000-748F4000 [25860] Unical PTUME.exe: Native
bcryptprimitives.dll C:\Windows\SysWOW64\bcryptprimitives.dll N/A N/A Cannot find or open the PDB file 20 6.2.9200.17522 (win8_gdr.150921-0600) 9/21/2015 5:58 PM 744A0000-744F1000 [25860] Unical PTUME.exe: Native


2) On Output pane;

'Unical PTUME.exe': Loaded 'C:\Users\CHIBU\Documents\Visual Studio 2010\Projects\Unical PTUME\Debug\Unical PTUME.exe', Symbols loaded.
'Unical PTUME.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll', Cannot find or open the PDB file
'Unical PTUME.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll', Cannot find or open the PDB file
'Unical PTUME.exe': Loaded 'C:\Windows\SysWOW64\KernelBase.dll', Cannot find or open the PDB file
'Unical PTUME.exe': Loaded 'C:\Windows\SysWOW64\user32.dll', Cannot find or open the PDB file
'Unical PTUME.exe': Loaded 'C:\Windows\SysWOW64\msvcr100d.dll', Symbols loaded.
'Unical PTUME.exe': Loaded 'C:\Windows\SysWOW64\gdi32.dll', Cannot find or open the PDB file
'Unical PTUME.exe': Loaded 'C:\Windows\SysWOW64\imm32.dll', Cannot find or open the PDB file
'Unical PTUME.exe': Loaded 'C:\Windows\SysWOW64\msctf.dll', Cannot find or open the PDB file
'Unical PTUME.exe': Loaded 'C:\Windows\SysWOW64\msvcrt.dll', Cannot find or open the PDB file
'Unical PTUME.exe': Loaded 'C:\Windows\SysWOW64\uxtheme.dll', Cannot find or open the PDB file
'Unical PTUME.exe': Loaded 'C:\Windows\SysWOW64\dwmapi.dll', Cannot find or open the PDB file
'Unical PTUME.exe': Loaded 'C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.9200.17359_none_8935f06086091acc\comctl32.dll', Cannot find or open the PDB file
'Unical PTUME.exe': Loaded 'C:\Windows\SysWOW64\SHCore.dll', Cannot find or open the PDB file
'Unical PTUME.exe': Loaded 'C:\Windows\SysWOW64\combase.dll', Cannot find or open the PDB file
'Unical PTUME.exe': Loaded 'C:\Windows\SysWOW64\rpcrt4.dll', Cannot find or open the PDB file
'Unical PTUME.exe': Loaded 'C:\Windows\SysWOW64\sspicli.dll', Cannot find or open the PDB file
'Unical PTUME.exe': Loaded 'C:\Windows\SysWOW64\cryptbase.dll', Cannot find or open the PDB file
'Unical PTUME.exe': Loaded 'C:\Windows\SysWOW64\sechost.dll', Cannot find
Unhandled exception at 0x76d0dba9 in Unical PTUME.exe: 0xC000041D: An unhandled exception was encountered during a user callback.
@Thomas1965 how did your reply to my post get posted ahead of it? curiouser and curiouser ...
how did your reply to my post get posted ahead of it? curiouser and curiouser ...

Not so curious if you check the edited time vs the posted time.
Topic archived. No new replies allowed.