Qbasicnews.com

Full Version: Need helps calling static LIB function
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How do I calling a function from static lib that has cpp export function? Would this working in FB?

Code:
'$inclib: "cppbase.lib"
declare function lib_func1 alias "lib::func1" (arg...) as long


Thanks in advance
No, that won't work, C++ will mangle the function names and also the cons/des/tructors have to be called etc.

Only way is creating a wrapper in C and then declaring the wrapper's functions -- see wx-c for an example, but it's not simple to be done.