the first 8 lines are ok, the rest, you can explain like a child of 8 years?
thanks in advance
>Hi!
>Remove declaration of function in begining of file and add extern "C" to definition of function:
>extern "C" __declspec(dllexport) LPSTR say_hello(LPSTR cText)
>{
> return "Hola";
>}
>
>About extern "C". C++ uses decorated names for exported functions. For instance,
>your mcd function exported by name ?mcd@@YAHHH@Z. You can fing this name by Dependency Walker from Visual Studio and use this name in VFP. To prohibit decorating of names, extern "C" keyword used. You can also create a C project instead of C++.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only