I'm developing an application in C# that makes use of some functions developed and compiled with Matlab 2009b 64 bit. As Matlab is 64bit, the DLL compiled with it can only be used in 64 bit applications. I have successfuly build a WPF application that makes
use of these libraries, setting the target architecture to x64 (it crashes if set to AnyCPU with the BadImageFormatException error).
My problems started when I tried to migrate the WPF application to a WPF Browser Application. In this case, I can't set the target architecture to x64 since VS forces me to use AnyCPU (I get the "Error 2 Cannot build a
platform-specific XAML Browser Application. If HostInBrowser property is set to 'True', either do not set the PlatformTarget property or set it to 'AnyCpu'." compilation error otherwise). However, if I set the target to AnyCPU, the application crashes when
I try to use the Matlab DLLs, getting the BadImageFormatException error.
I have just started to work with VS and C#, so I'm completely lost. I don't understand why, even when using AnyCPU as target, I can't use 64bit DLL when I'm using a 64 bit OS (Windows 7 64 bit). Also, I have just noted that VS launches IE 32 bit. Maybe is
that the cause of the problem? How can I configure VS to launch IE 64 bit instead?
I'm really in a dead e
View Complete Post