Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Implementing a .net class
Message
De
01/05/2005 20:33:00
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro et .NET
Versions des environnements
Visual FoxPro:
VFP 7
OS:
Windows XP SP2
Divers
Thread ID:
01009535
Message ID:
01010057
Vues:
25
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?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform