Information générale
Catégorie:
Visual FoxPro et .NET
Titre:
Loading with incorrect format
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement