Archicad C++ API
About Archicad add-on development using the C++ API.

Error RC2135 ,How to solve it?

Anonymous
Not applicable
Just like this:

Debug\Demo.grc.rc2(19) : error RC2135 : file not found: STRS
Debug\Demo.grc.rc2(21) : error RC2135 : file not found: 0
Debug\Demo.grc.rc2(22) : error RC2135 : file not found: DevKit
Debug\Demo.grc.rc2(23) : error RC2135 : file not found: project


the Demo.grc.rc2:

#define INT__APP
#define INTERNAL_NAME "Demo"
#define ORIGINAL_NAME "Demo.apx"

#define COMPANY_STR "Some Company"
#define COPYRIGHT_STR "Copyright (c) Some Company 2008"
#define FILEDESC_STR "API DevKit Sample"

#include "DGDefs.h"

32000 STRS
BEGIN
67, 0,
"API DevKit Sample\0",
"Default project in ArchiCAD API Development Kit.\0",
END

32500 STRS
BEGIN
12, 0,
"Sample menu\0",
END

32520 STRS
BEGIN
7, 0,
"Sample\0",
END
3 REPLIES 3
Anonymous
Not applicable
I solved the problem correction encoding file "AddOn.grc" "AddOnFix.grc"

(notepad ++ convert to ANSI)
Anonymous
Not applicable
Thanks for your reply.But I still cannot solve it.

"Demo.grc"
CommandLine = "D:\Graphisoft\API Development Kit 12.2156\Support\Tools\Win\ResConv.exe" -m r -D WINDOWS -T W -q utf8 936 -i "$(ProjectDir)\RINT\Demo.grc" -o "$(OutDir)\Demo.grc.rc2"

'STR#' 32000 "Add-on Name and Description" {
/* [  1] */		"API DevKit Sample"
/* [  2] */		"Default project in ArchiCAD API Development Kit."
}


'STR#' 32500 "Menu strings" {
/* [  1] */		"Sample menu"
}


'STR#' 32520 "Status bar strings" {
/* [  1] */		"Sample"
}
"DemoFix.grc"
CommandLine = "D:\Graphisoft\API Development Kit 12.2156\Support\Tools\Win\ResConv.exe" -m r -D WINDOWS -T W -q utf8 936 -i "$(ProjectDir)\RFIX\DemoFix.grc" -p "$(ProjectDir)\RFIX\Images" -o "$(OutDir)\DemoFix.grc.rc2"

@#define	CHI__APP
@#define	INTERNAL_NAME	"Demo"
@#define	ORIGINAL_NAME	"Demo.apx"
@
@#define	COMPANY_STR		"Some Company"
@#define	COPYRIGHT_STR	"Copyright (c) Some Company 2008"
@#define	FILEDESC_STR	"API DevKit Sample"
@
@#include "GSLocalization.h"
@

/* Version resource - uses strings defined in the localizable resource file */
'VERS' {
	COMPANY_STR
	COPYRIGHT_STR
	FILEDESC_STR
	1.00
	1.00
	"ArchiCAD"
	12.0
}


/* TODO: replace the first ID with your developer ID and the second ID with */
/*       your local ID                                                      */
@ #include "MDIDs_APICD.h"
'MDID' 32500 "Add-On Identifier" {
	1
	1
}
"Demo.rc2"
rc /i "D:\Graphisoft\API Development Kit 12.2156\Support\Inc" /i "D:\Graphisoft\API Development Kit 12.2156\Support\Modules\DGLib" /i "$(OutDir)" /fo"$(OutDir)\Demo.res" "$(ProjectDir)\RFIX.WIN\Demo.rc2"

#include <Windows.h>

#if !defined (WINDOWS)
#define WINDOWS
#endif


#include "Demo.grc.rc2"
#include "DemoFix.grc.rc2"

1	ICON    LOADONCALL MOVEABLE IMPURE  ACAP.ico
Environment:VC++2008
Anonymous
Not applicable
delete -q utf8 936
and corect coding .