Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Implementing a .net class
Message
From
30/04/2005 00:08:00
 
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro and .NET
Environment versions
Visual FoxPro:
VFP 7
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01009535
Message ID:
01009863
Views:
14
Actually I have found that the code compiles clean with VFP8 and VFP9. I guess version 7 can't handle the .net dll and type library for some reason.

Now on to the next error though:

After running this app and executing the foxpro eventhandler for the .net dll, I get a nasty windows error coming out of the foxpro app. The windows error is in the .net dll mscorwks.dll. I am running the latest .net framework(1.1). If I never execute the foxpro eventhandler and never raise the .net event, the app will exit clean. I have watched the foxpro code in the debugger and all the foxpro code executes cleanly. As it exits to the desktop the mscorwks.dll gpfs.

What is interesting is that I created a small VB6 dll that the .net object calls to raise the event that the foxpro app responds to, and everything runs clean.

Is there any sample code anywhere that demonstrates how to respond cleanly to .net events in foxpro?

Again, creating the .net object works fine and the .net app runs smoothly. I just need to be able to respond to events in the foxpro app as things happen in the .net object.

Thanks again.
Previous
Reply
Map
View

Click here to load this message in the networking platform