x64 - Assembly

A

Anders Eriksson

If I compile my program for x64 must all assemblys (*.dll) also be x64?

// Anders
 
A

Anders Eriksson

At run-time, yes. They can be "Any CPU" and will be automatically JITted
for x64. You cannot mix x86 and x64 assemblies though.

Hmm.... Well, it's kind of logical...

I'm compiling for "Any CPU", but I'm using an ActiveX object that exist
in two different versions (x32 and x64. The version is selected on
install depeding on the version of Windows)

I develop on a Windows 7 32-bit computer, which means that on my
computer I have the x86 version of the ActiveX object. When I add the
ActiveX object as a Reference it creates an Introp.dll

This Interop.dll will be compiled for x86!

This will make my application crash on a Windows 7 64-bit computer!

Is there someway I can get around this without buying a new computer
with Windows 7 64-bit?


// 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