>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