Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
C++ Classes in FLL
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00811004
Message ID:
00811027
Vues:
16
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform