Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Howto Create an FLL File
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
Howto Create an FLL File
Divers
Thread ID:
00795543
Message ID:
00795543
Vues:
183
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.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform