How to Use Scintilla .NET in C# Project?

浪尽此生 提交于 2019-12-03 00:59:11
Tim Robinson

It's been a little while since I used Scintilla, but my understanding is that SciLexer.dll is an entirely native DLL, which is why you can't add a reference to it from Visual Studio.

Instead, you should 'arrange' for SciLexer.dll to appear in the right directory at runtime so that it can be loaded by ScintillaNET.dll. The safest way to do this would be to add SciLexer.dll to your Visual Studio project as a plain file (not as a reference), then change the properties on the file to have it copied to the output directory when your project is built.

Given that you're on 64-bit, I expect that you'll need to build your app specifically as 32-bit and not AnyCPU. As I say, it's been a while since I did this, but when I did, Scintilla only had 32-bit binaries.

Steve

I got round the issue by copying the files to C:\Windows\SysWOW64

Got the idea from @weston's post.

I use ScintillaNET (C# port). It is easy to use, but it is a memory hog.

https://github.com/jacobslusser/ScintillaNET

Prathap Panabaka

Click on RUN and select MyComputer Right click on MyComputer Go to Properties then Click on Advanced System Settings .

After that select Advanced and Click on Environment Variables.

Here we can add the value and path.

Value : what ever you like " Eg : Scintilla

Value path : where the downloaded dll kept ." EG: D:\prathap\DLL\

Download Path :https://scintillanet.codeplex.com/releases

Select the downloads from right hand side on the screen.

Then in the application add the Scintill Dll as a reference and other 2 dll as existing files.

Right click on project ADD -- Addexisting files -- then select the files from local system and make sure that you keep the 2 files "Copy to Output directory = Copy Always.

Then run the application it will work.

i added reference to Scintilla.dll instead of SciLexer.dll - and it worked

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