0 votes

Whenever I want to use the 64bit DLL files I get the following message when opening the form in Visual Studio:

"The variable 'MailBrowserControl1' is either undeclared or was never assigned."

I've tried to compile as x64 because it's necessary for me. Then I read they were compiled as AnyCPU okay so I've switched to AnyCPU but the message is still the same. Only the x86 DLLs work fine.

Why don't you compile the x64 als true x64? In fact you offer already a x86 version there is no reason for AnyCPU and it looks like it doesn't even work the way you compiled them.

//edit: Btw of course I'm using the DLLs from the x64 folder.

by

1 Answer

0 votes

It's hard to say what you are doing incorrectly. The error message you show is rather yours code compilation error.

Mail.dll is compiled with and AnyCpu option on, which means it runs in native mode on both 32 and 64 bit machines.

MailBrowserControl has 2 version for 64 bit (x64 folder) and 32 bit (x86 folder).

I'm using 64bit machine and have no problems using MailBrowserControl.

Why don't you compile the x64 als true x64?

I don't undesrtand what you are referring to.
MailBrowserControl in x64 folder is compiled for x64 architecture.
MailBrowserControl in x86 folder is compiled for x86 architecture.

You can use ILSpy to verify that.

In fact you offer already a x86 version there is no reason for AnyCPU and it looks like it doesn't even work the way you compiled them.

MailBrowserControl is not compiled with AnyCpu option. It seems you're confusing two different assemblies (Mail.dll and MailBrowserControl.dll).

by (301k points)
...