Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Implementing a .net class
Message
From
01/05/2005 20:33: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:
01010057
Views:
24
Rick,

Thanks for the continued help. I believe you are on the right track here, threading is my issue, and I have re-created your the example on your web page. I created a vb.net dll with 1 form and is run by your example 'runform' procedure, starting a new thread.
I then created a simple form in VFP9 with 1 button that creates this .net object and executes the runform method. Works as described. No problems.

Now I created a VFP9 exe out of this. The main prg looks like this:

do form test
read events

In form test, there is 1 button that creates the .net object and brings up the form. When I build and execute this in the VFP IDE, it runs fine. When I run the exe from Windows explorer, it errors with :

ole error code 0x8007000b An attempt was made to load a program with an invalid format.

WTF? Am I missing some code that needs to run in this VFP exe when it runs outside of the IDE?
Previous
Reply
Map
View

Click here to load this message in the networking platform