How to add unmanaged C++ code to 32/64 bit project

Add-in Express™ Support Service
That's what is more important than anything else

How to add unmanaged C++ code to 32/64 bit project
Project setup for 64-bit project 
Vladimir Lvov




Posts: 10
Joined: 2010-09-16
To improve the performance of my add-on I had to move mshtml parsing to unmanaged C++ code. The unmanaged code is embedded into C++ CLI wrapper as a static library. Both C++ projects are compiled as Win 32 bit applications.
When I use this library with Add-in-Express, 32 bit version works fine but 64 bit version fails when it calls the C++ CLI wrapper (which is expected).
How should I setup the solution to support both versions: 32-bit and 64-bit? Do I need two setupup projects?
Thank you,
Vladimir Lvov
Posted 09 Feb, 2011 17:24:46 Top
Sergey Grischenko


Add-in Express team


Posts: 7202
Joined: 2004-07-05
Hi Vladimir,

I would advise you to load the C++ CLI unmanaged wrapper dynamically depending on the IE bitness. In this case you will need one setup project only.
Posted 15 Feb, 2011 06:09:04 Top