Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
C++ Classes in FLL
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00811004
Message ID:
00811027
Views:
15
Hello Alexander, thanks for your reply, what I mean is, can one create a class in a C++ dll, and expose all of its members to VFP using the Foxinfo structure required to create a fll

example
class MyClass: CObject
{
   MyClass::MyClass();
   MyClass~MyClass();
   int i;
   MySpecialFunction1();
   MySpecialFunction2();
   MySpecialFunction3();
};


MyClass::MySpecialFunction1()
{
   // Code Here
}

MyClass::MySpecialFunction2()
{
   // Code Here
}

MyClass::MySpecialFunction3()
{
   // Code Here
}

FoxInfo myFoxInfo[] =
{
	{"MySpecialFunction1", (FPFI) MySpecialFunction1, 0, ""},
      {"MySpecialFunction2", (FPFI) MySpecialFunction2, 0, ""},
      {"MySpecialFunction3", (FPFI) MySpecialFunction3, 0, ""}
};

extern "C" {
	FoxTable _FoxTable =
	{
		(FoxTable *) 0, sizeof(myFoxInfo)/sizeof(FoxInfo), myFoxInfo
	};
} 
Regards,
Peter J. Kane



Pete
Previous
Reply
Map
View

Click here to load this message in the networking platform