Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating a C++ DLL to use with FoxPro
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00048334
Message ID:
00048532
Views:
81
>Basically, you can create 2 kinds of DLLs with VC++5: With MFC or without MFC. If you need MFC, chose MFC DLL type app when you create your workspace. The wizard will generate the skeleton for you.
>
>If you don't need MFC, create a simple DLL workspace. This will not generate any code for you, but it's easier. Please note that your source files must have the extension .C, not .CPP. This is important: if you use CPP no error or warning is generated, but the generated DLL cannot be used.
>
>Here you have a very, very simple DLL skeleton code. Anything else you need is straight C language.

I tried your simple example, and it works in FoxPro. I have two more questions. First of all in Windows 95, I can do a Quick View on DLLs to see the export table, such as, Kernal32.dll. When I created the DLL from your sample code, I did not see an export table in the DLL using Quick View. Why is that? The other question is what if I have a C++ (instead of C) program, and I want to make a DLL out of it to call from FoxPro. Is it possible? If so, how?

Thanks again for you help!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform