Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Loading with incorrect format
Message
De
05/01/2004 12:05:19
Roger Smith
Ryalux Carpets Ltd
Rochdale, Royaume Uni
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro et .NET
Titre:
Loading with incorrect format
Divers
Thread ID:
00863918
Message ID:
00863918
Vues:
55
I am calling vb.net code from a VFP 6.0 application. I have compiled the vb.net using the 'register for COM interop' option set.

I am creating the .net objects in vfp using CREATEOBJECT as follows:

oProduct = CREATEOBJECT("Enterprise.Product")

If I run the VFP app from within the VFP IDE I get no problems. However, if I run the VFP app from the desktop or call it by setting it as the Start program when debugging in vb.net I get the following error:

"OLE error code 0x8007000b: An attempt was made to load a program with an incorrect format."

I even get this if I create a new project with just one program and just one line of code to create an object.

The irritating thing is that this is an inconsistent problem. Sometimes I can create a project that works fine but this can suddenly give the error and once that happens the project can't be fixed.

Has anyone else experienced this?

Many thanks in advance,
Roger Smith.
Répondre
Fil
Voir

Click here to load this message in the networking platform