I am new to AngelScript and in need of help. ;)
as per the suggestion here.
http://www.angelcode.com/angelscript/sdk/docs/manual/doc_register_func.html
r = engine->RegisterGlobalFunction("void AppName(const Str &in)", asMETHODPR(Application, name,Str,Application), asCALL_THISCALL_ASGLOBAL, &App);
I get error
C2061: syntax error : identifier 'Str'
if I do (Str)
'static_cast' : cannot convert from 'overloaded-function' to 'Application (__thiscall Application::* )(Str)'
1> None of the functions with this name in scope match the target type
r = engine->RegisterGlobalFunction("void AppName(const Str &in)", asMETHOD(Application, name), asCALL_THISCALL_ASGLOBAL, &App);
d:\prod\main.cpp(66): error C2440: 'type cast' : cannot convert from 'overloaded-function' to 'void (__thiscall Application::* )(void)'
1> None of the functions with this name in scope match the target type
struct Application{ // Application Settings
Application& name (const Str &name); // set application name
const Str& name ( ) {return _name ;} // get application name
}extern App