Unable to add ILNumerics controls into VS2012 toolbox manually or automatically

三世轮回 提交于 2019-12-07 18:48:35

问题


I am trying to follow the instruction in http://ilnumerics.net/visualization-api-quick-start-guide.html to get ilnumerics working. I have so far been unable to ILnumerics controls on my toolbox.

I tried all three separate package from Nuget

1) ILNumerics (AnyCPU) 2) ILNumerics.32bit 3) ILNumerics.64bit

These package do get loaded to my .csproj, but the IlNumerics Controls are not listed in the toolbox. So I tried to add them manually. I right click on my tool box and select 'Choose items'. This takes me to .Net framework components tab, where I select the Browse button and try to load the DLL. I get the following errors for above three cases

1) ILNumerics.dll : There are no components in ILNumerics.dll that can be placed in the toolbox. 2) ILNumerics.32.dll : There are no components in ILNumerics32.dll that can be placed in the toolbox. 3) ILNumerics.64.dll : The file ILNumerics64.dll is not valid. (Note: this is a different error than previous two cases)

I am using "Microsoft Visual Studio Ultimate 2012", OS is Microsoft Windows 7 professional, and the system type is X64-based PC.

I am not sure if this relevant but when I ran dependency walker on the above three dlls. I got the below error for ILNumerics.dll and ILNumerics.32.dll "Error: Modules with different CPU types were found"

I am able also to execute the console application example give in http://ilnumerics.net/quickstart.html using all three ways shown above.


回答1:


I also had this problem. My workaround is to drag a simple Panel from the toolbox and then got and edit the InitializeComponent() function and change the type of the member to ILPanel. After this I have access to the ILPanel properties



来源:https://stackoverflow.com/questions/19952825/unable-to-add-ilnumerics-controls-into-vs2012-toolbox-manually-or-automatically

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!