Scintilla .NET - Can't find libraries

旧街凉风 提交于 2019-12-08 19:51:33

问题


I'm trying to get Scintilla .NET working in a C# form I'm making. I've followed the directions provided in the readme such as adding the Scintilla component to the toolbox, but when I try to drag the component to a C# form I get this following error: http://tinypic.com/r/152m7wx/4

I've placed the two included dlls (SciLexer.dll, ScintillaNET.dll) in my system32 folder. I can't seem to figure out what's wrong.

I'm using VS 2008, and Windows 7.

Any ideas why I'd be getting a File not found error?


回答1:


Is your computer x86 or x64? If it's x64 you need to put the dll's in C:\Windows\SysWOW64 Otherwise do the following: put scilexer.dll in the same directory as scintillanet.dll (note that when you reference scintillanet.dll from VS 2008 it copies it to the debug directory.. so scilexer.dll should also be put in debug.




回答2:


Try using procmon to "spy" on where it is actually looking for the DLL files.




回答3:


I found that the problem was caused by whatever I used to install the Scintilla stuff. The install was incomplete.

I don't have specifics, but there is another install floating around on the same page you find the first that is complete. I think that should head you in the right direction. Sorry I can be more specific.

If your still stuck, lemme know and I'll try and figure out exactly where I got the files, or maybe I have them lying around somewhere.



来源:https://stackoverflow.com/questions/1639073/scintilla-net-cant-find-libraries

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