Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating FLL
Message
De
27/05/2016 05:03:03
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Creating FLL
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Divers
Thread ID:
01636848
Message ID:
01636848
Vues:
216
i want to create a simple fll with c++ (vc++2005)

i downloaded visual studio2008 with vc++2005 only.

i build a test project solution from cpp file as below:

*ytest.cpp
// include the library construction header file
#include "pro_ext.h"

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
};
i add the pro_ext.h (header file) and winapims.lib ( shipped with vfp in samples\api folder)

*note1: there is no fll in the c++ project option but dll.why ?
can i rename dll to fll or use dll with "set library to.." directly.

i debug and have errors (no dll created)
f:\yc++\pro_ext.h(53) : fatal error C1083: Cannot open include file: 'Windows.h': No such file or directory
windows.h is cited in pro_ext.h
i googled and dont find this file (maybe must download all visual studio....very big).

*note2: where find this file (but in the same scenario maybe windows.h contains another .h files.
then must include all these .h file ???

*note3: what light visual studio version able to create flls without any problem ?

thank you in advance.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform