Hello.
How can I use enum declarations in my resource file? I'm getting a resource syntax error.
ErrorStrings.rc:
Code:
# include "ErrorStringIds.hpp"
STRINGTABLE
BEGIN
SER_ERROR_FUNCTION_0x00, "A_Function_name"
SER_ERROR_FUNCTION_0x01, "A_Function_name"
SER_ERROR_FUNCTION_0x02, "A_Function_name"
//etc etc.
END
Old ErrorStringIds.hpp without resource syntax error:
Code:
# define SER_ERROR_FUNCTION_0x00 0
# define SER_ERROR_FUNCTION_0x01 1
# define SER_ERROR_FUNCTION_0x02 2
//etc etc
New ErrorStringIds.hpp with resource syntax error:
Code:
enum ErrorFunction
{
SER_ERROR_FUNCTION_0x00 = 1,//[Resource error] syntax error
SER_ERROR_FUNCTION_0x01 = 2,
SER_ERROR_FUNCTION_0x02 = 4
//etc etc
};
I hope you get the picture, I want to use flags so I can combine error's to reduce the stringtable size.
Thanks in advance, Ktulu. (I'm using Dev-C++).