Pablo Sullivan
8/20/2007 1:56:00 PM
I have a problem building a c# project that references a COM object built for
x64. The problem is that the x64 DLL is missing under the "Add References"
COM tab for the C# project. Also when I attempt to add a reference via the
BROWSE tab, an error message is displayed saying â??Please make sure that the
file is accessible and, that it is a valid assembly or COM component.â?
I can regsvr32 the DLL and instantiate objects in the DLL via JavaScript, so
it is unclear why Visual Studio cannot find it. Maybe it has to do with
Visual Studio running in 32 bit mode.
My machine is running an Intel(R) Pentium(R) D CPU with Windows XP
Professional x64 Edition, and I am running Visual Studio 2005, The C# project
settings are â??Any CPUâ? and the settings for the C++ ATL COM project are:
Project- x64
Linker/Advanced/Target Machine - x64
MIDL/General/Target Environment- x64
If I change the MIDL/General/Target Environment to 32-bit then the DLL does
show up under Add References of the c# project. Unfortunately this is not a
solution since the DLL has to run as x64.
Does anyone have any ideas as to how to solve this?
Thank you for any help you can provide.