Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Howto Create an FLL File
Message
De
03/06/2003 03:58:43
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00795543
Message ID:
00795551
Vues:
21
>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,
Check Thread #773844
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform