Home > Net >  A 64 - bit Windows control library is not Microsoft. Net module
A 64 - bit Windows control library is not Microsoft. Net module

Time:10-12

Create a Visual c + + in VS2010 - & gt; CLR library form controls, and then in the external program into the control of the kit library, if control library is a 32-bit (at this point the corresponding external program is also a 32-bit), that there is no problem; But if control library is a 64 - bit (the corresponding external program is also a 64 - bit), pops out the following error:
This is how to return a responsibility excuse me? How to solve? Thank you very much!!!!!!

CodePudding user response:

https://docs.microsoft.com/zh-cn/dotnet/api/system.runtime.interopservices.dllimportattribute? Redirectedfrom=MSDN& View=netframework 4.8
You can try to do this?

CodePudding user response:

Vc.net support anycpu? Or high version vs a try, you want to change the legend vs because itself is a 32-bit with 64 controls

CodePudding user response:

refer to the second floor stherix response:
vc.net support anycpu? Or high version vs a try, you want to change the legend vs because itself is 32 bit so in less than 64 controls


Don't see where you can set the anycpu, I use VS2012 tried, the same effect, as for the higher versions haven't tried it

CodePudding user response:

reference 1/f, invertors often reply:
https://docs.microsoft.com/zh-cn/dotnet/api/system.runtime.interopservices.dllimportattribute? Redirectedfrom=MSDN& View=netframework 4.8
You can try to do this?


This seemingly mainly solve the import unmanaged DLL method, but I also managed control library DLL, only 32, 64 is not,,,

CodePudding user response:

reference yangyangqinqin reply: 3/f
Quote: refer to the second floor stherix response:

Vc.net support anycpu? Or high version vs a try, you want to change the legend vs because itself is 32 bit so in less than 64 controls


Don't see where you can set the anycpu, I use VS2012 tried, the same effect, as for the higher versions haven't tried the

CodePudding user response:

reference 5 floor invertors often reply:
Quote: refer to the third floor yangyangqinqin response:

Quote: refer to the second floor stherix response:

Vc.net support anycpu? Or high version vs a try, you want to change the legend vs because itself is 32 bit so in less than 64 controls


Don't see where you can set the anycpu, I use VS2012 tried, the same effect, as for the higher versions haven't tried the



I am not is c + +/cli program, c #, so if do not have this set up

CodePudding user response:

If you use the DLL is a 32-bit see this control library didn't provide 64 for the DLL

CodePudding user response:

refer to 7th floor OrdinaryCoder response:
did you use the DLL is a 32-bit see 64 for this control kuti not offer DLL


The library is my own writing,,, is generated by 32-bit library DLL no problem, can't import generated by 64

CodePudding user response:

refer to the second floor stherix response:
vc.net support anycpu? Or high version vs a try, you want to change the legend vs because itself is 32 bit so in less than 64 controls



Vs because itself is a 32-bit with 64 controls, so the claim is credible, please?

CodePudding user response:

To ensure the file is not choose the wrong!

CodePudding user response:

In the "configuration manager" to select a new "solution platform", in the pop-up window can choose "X64" or "X86", corresponding to a 64 - bit program and 32-bit
  • Related