Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
The macro simplifies the import from the dll into the program. Wherever you use "MYLIBAPI", the dll import directive will expand.
extern "C" means to use simple function signature generation (C style) when getting object files. In particular, it prevents the C++ compiler from "decorating" (or "beautifying") a function name with additional characters when working with a DLL
Example:
extern "C" __declspec(dllimport)double AddNumbers(double a, double b);
in your case, you can write
MYLIBAPI double AddNumbers(double a, double b);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question