Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Implementing a .net class
Message
From
28/04/2005 23:15:00
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro and .NET
Title:
Implementing a .net class
Environment versions
Visual FoxPro:
VFP 7
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01009535
Message ID:
01009535
Views:
54
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
Map
View

Click here to load this message in the networking platform