General information
Category:
Visual FoxPro and .NET
Title:
Implementing a .net class
I have created a simple class in vb.net with 1 event and one procedure. I have compiled this and registered it to COM. I can create this class object easily and use it in VFP7 using the creatobject syntax(CREATEOBJECT("TestFoxClass.TestFunctions"). No problems here. What I cannot seem to do is use this .net class using the following syntax in a VFP7 custom class:
g_oMTIEventHandler = CREATEOBJECT("MSTInterfaceEvent")
DEFINE CLASS MSTInterfaceEvent AS custom OLEPUBLIC
IMPLEMENTS __ShellFunctions IN TestFoxClass.TestFunctions
PROCEDURE __ShellFunctions_ShellClosed() AS VOID
g_MSTShell = ""
ENDPROC
ENDDEFINE
When I try to build the VFP7 app I get an error stating that the type library TestFoxClass.TestFunctions cannot be found. This class looks fine in the VFP object viewer and I can create the same class using VB6 and it works fine. What I'm trying to do here is capture an event from a .net class run by a calling VFP app.
What am I missing here?
Any help would be appreciated.
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only