targets a different processor than the application

A

Anders Eriksson

I get this error when compiling

Warning 2 Referenced assembly '...\Interop.laserengineLib.dll' targets a
different processor than the application. DCMarkerWpf1

How do I fix this?

// Anders
 
A

Anders Eriksson

Compile the application with the same target CPU as is used for the
referenced assembly, or get a different version of the assembly that
uses the same target CPU that the application does.
OK, as usual I have left some info out. Sorry about that!
My application has Any CPU as Platform target.
The application uses a assembly (dll) that also has Any CPU as Platform
target.

This assembly uses an ActiveX, laserengineLib.dll, that is created using
VC++ Unmanaged.

As you can see from the Warning it's Interop.laserengineLib.dll

I can't find anywhere where I can set the Platform target for an Interop?

// Anders
 
A

Anders Eriksson

Thanks for your answer Pete, but unfortunately I don't understand...

I add an REFERENCE, which is an COM application (laserengine.exe). Then
when I compile my application then the Interop.laserengine.dll is created.

laserengine.exe is a 3:rd party software, which I have been told is
programmed using VC++ unmanaged.

Is there anyway that I can influence how the Interop.laserengine.dll is
created or find out the platform target of Interop.laserengine.dll or
laserengine.exe?

My software works and it loads the ActiveX and everything is OK, except
for that annoying warning...

// Anders
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top