Help - Search - Members - Calendar
Full Version: How to add a resource script to Visual C++ 2005 Express?
Hydrogenaudio Forums > Hosted Forums > foobar2000 > Development - (fb2k)
Wizard
Hi!
I'm using ResEd to visually create a preferences page for a plugin.
ResEd created a file res.rc with the following:

CODE

#define IDD_DLG1 1000
#define IDC_CHK1 1001
IDD_DLG1 DIALOGEX 6,6,194,102
LANGUAGE 8,1
CAPTION "IDD_DLG"
FONT 8,"MS Sans Serif",0,0
STYLE 0x40000000
BEGIN
  CONTROL "Show number of total items ",IDC_CHK1,"Button",0x50010003,8,9,104,9
END


I added this file to the "Resources Files" folder of my project, but when I try to compile it, it reports an error in the uCreateDialog statement that IDD_DLG1 is an undeclared identifier.

Is there anything else I must do?
foosion
Include the header file with the resource IDs in your source code before using those IDs.
Wizard
QUOTE(foosion @ May 25 2006, 17:25) *

Include the header file with the resource IDs in your source code before using those IDs.


Of course... rolleyes.gif Thanks!

EDIT:
Now I get some errors from the linker:
CODE

foobar2000_sdk.lib(utf8api.obj) : error LNK2001: unresolved external symbol __imp__CreateDialogParamW@20
foobar2000_sdk.lib(utf8api.obj) : error LNK2001: unresolved external symbol __imp__DialogBoxParamW@20


Any ideas? sad.gif
oshah
QUOTE(Wizard @ May 25 2006, 16:42) *

EDIT:
Now I get some errors from the linker:
CODE

foobar2000_sdk.lib(utf8api.obj) : error LNK2001: unresolved external symbol __imp__CreateDialogParamW@20
foobar2000_sdk.lib(utf8api.obj) : error LNK2001: unresolved external symbol __imp__DialogBoxParamW@20


Have you installed the Platform SDK? Note, if you haven't performed all the steps on this page (especially step 4), you have NOT installed the SDK.
Wizard
QUOTE(oshah @ May 25 2006, 19:37) *

Have you installed the Platform SDK? Note, if you haven't performed all the steps on this page (especially step 4), you have NOT installed the SDK.


Thanks for the link. It turns out that I needed to go to the project properties -> linker -> input and add the additional dependencies of step 4. smile.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.