QLibrary - resolve a char*
-
I'm using QLibrary to load a library (FLAC) during runtime. I've managed to resolve the "extern" functions and use them.
However I'm now trying to resolve a char*, not a function. The extern statement in FLAC's header file:@extern FLAC_API const char *FLAC__VENDOR_STRING;@
And I'm trying to resolve it as follows:
@char versionString;
if((versionString = (char) mLibrary.resolve("FLAC__VERSION_STRING")) != NULL)
{
cout<<versionString<<endl;
}@The output statement is printed, meaning it could be resolved, however the string that is printed only contains a couple of weird characters (which change with each execution of my program).
Does anyone now what I'm doing wrong?