Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Building dlls
Message
General information
Forum:
Visual C++
Category:
Other
Title:
Miscellaneous
Thread ID:
00550118
Message ID:
00551795
Views:
22
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
Map
View

Click here to load this message in the networking platform