General information
Category:
Coding, syntax & commands
Hi Borislav,
You have not used any of FoxAPI functions in your code and winapims.lib was not linked. Just add one of functions, for example:
{
MessageBox(NULL,"This is a test","Title",MB_OK);
_RetInt(0, 10);
}
and all should work.
>I am trying to create my FLL file with VS++ 6.0, I create an empty DLL project & do everithing that is described in Help for VFP:
>
>"In the Category list, choose Code Generation.
>In the Calling Convention list, choose _fastcall.
>In the Use run-time library list, choose Multithreaded DLL.
>
>Choose the Link tab and then in the Object/Library Modules text box, add one of the following libraries:
>If you're building an .fll, add WINAPIMS.LIB from the Visual FoxPro API directory."
>
>Here is the my code:
>
>#include "pro_ext.h"
>
>void Internal_Name(ParamBlk *parm)
>{
>MessageBox(NULL,"This is a test","Title",MB_OK);
>}
>
>FoxInfo myFoxInfo[] = {
> {"FUNC_NAME", (FPFI) Internal_Name, 0, ""},
> };
>
>extern "C" {
> FoxTable _FoxTable = {
> (FoxTable *)0, sizeof(myFoxInfo)/sizeof(FoxInfo), myFoxInfo
> };
>}
>
>When I run my test programm:
>SET LIBRARY TO Test.Fll
>FUNC_NAME()
>in the first row error appears:
>"Library file c:\...\test.FLL is invalid"
>What I am doing wrong??
>
>TIA
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only