How to get direct access to the character buffer?

Topics: Developer Forum, User Forum
Apr 19, 2010 at 6:08 PM

I'm trying to get access to the raw character buffer of Scintilla so I can pass it on to a compiler.

I've tried using this code with SCI_GETCHARACTERPOINTER defined as 2520. 

Editor.NativeInterface.SendMessageDirect(SCI_GETCHARACTERPOINTER, IntPtr.Zero, IntPtr.Zero);

However it just seems to return a null pointer. I'm not sure if it's ScintillaNET fault or Scintilla itself, but since it seems like Scintilla uses the same method internally I'm hoping I did something silly instead.

Coordinator
Apr 22, 2010 at 11:58 PM

I think the version of SciLexer.dll that we're currently using in ScintillaNET does not support that message. It came in a later release that we have upgraded to yet. You should be able to drop in a newer version of SciLexer.dll though that supports the SCI_GETCHARACTERPOINTER message. ScintillaNET should still work and you'll also get what you're looking for.

 

Thanks,
Jacob

Apr 23, 2010 at 12:03 AM

I was already using the newest version. Since then I built a version with MSVC which seems to solve the problem...