Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Howto Create an FLL File
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Howto Create an FLL File
Miscellaneous
Thread ID:
00795543
Message ID:
00795543
Views:
184
Hi!

I found a hello.c program in the Samples\Api\ section of Visual FoxPro, but I am not able to compile it properly.

1. I created a new Project depending on Win32-Dynamic Link Library
2. Used the Create a simple dll
3. Appended this Code of the hello.c into the .CPP code
#include "stdafx.h"
BOOL APIENTRY DllMain(HANDLE hModule,DWORD ul_reason_for_call,LPVOID lpReserved)
{return TRUE;}

#include
// include the library construction header file
void hello(ParamBlk *parm) // the function definition
{_PutStr("\nHello, World!\n"); //print the message}

// the FoxInfo structure registers the function
FoxInfo myFoxInfo[] = {{"HELLO",(FPFI) hello, 0, ""},};

// the FoxTable structure
FoxTable _FoxTable = {(FoxTable *) 0, sizeof(myFoxInfo)/sizeof(FoxInfo), myFoxInfo};

4. Set up the Microsoft Foundation Class to Sháred DLL
5. Set up the Options to search for the INCLUDE files in VFP\SAMPLES\API\
6. Tried to compile but got stuck on this:
test_fll.obj : error LNK2001: Not declared external Symbol @_PutStr@4

Could you help me on this? Seems if I forgot to set a Path to something?!
Marvin Blase (tA-logistic Software GmbH)
You'll never notice the good things if you haven't seen the bad.
Next
Reply
Map
View

Click here to load this message in the networking platform