Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FLL, How to Create??
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00802812
Message ID:
00802929
Views:
24
This message has been marked as the solution to the initial question of the thread.
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
Map
View

Click here to load this message in the networking platform