Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Loading with incorrect format
Message
From
05/01/2004 12:05:19
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro and .NET
Title:
Loading with incorrect format
Miscellaneous
Thread ID:
00863918
Message ID:
00863918
Views:
57
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.
Reply
Map
View

Click here to load this message in the networking platform