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.