S
Sandy
I have a code like this
extern "C"
App * GetApp()
{
App a = new App;
a->Init();
return a;
}
Where App is a Class having some data members and accessor/modifier
function.
Is this allowed, i mean can i create an object inside a C function, is there
any ill effect of the code.
extern "C"
App * GetApp()
{
App a = new App;
a->Init();
return a;
}
Where App is a Class having some data members and accessor/modifier
function.
Is this allowed, i mean can i create an object inside a C function, is there
any ill effect of the code.