/*error here because your parameters are missing type*/
typedef int (*MyPrototype2)(*loc, *name);
/*perhaps something like this is what you meant?*/
int (*MyPrototype2)(char*, char*);
/*error here because your parameters are missing type*/
typedef int (*MyPrototype2)(*loc, *name);
/*perhaps something like this is what you meant?*/
int (*MyPrototype2)(char*, char*);
To copy to clipboard, switch view to plain text mode
I would put all of your function pointers into a namespace and initialize with a free function when your application starts. The will help your symbol management.
namespace tqsl
{
int (*getStationLocation)(char*,char*) = 0;
}
namespace tqsl
{
int (*getStationLocation)(char*,char*) = 0;
}
To copy to clipboard, switch view to plain text mode
Has the benefit of being able to say
tqsl::getStationLocation("?", "?");
tqsl::getStationLocation("?", "?");
To copy to clipboard, switch view to plain text mode
which looks alot better than the C convention of
tqsl_getStationLocation
tqsl_getStationLocation
To copy to clipboard, switch view to plain text mode
and it keeps your global namespace from being polluted.
Bookmarks