Page 1 of 1

InitScintilla with PB 6.10

Posted: Sun Feb 04, 2024 11:53 am
by drgolf
How to use specific scintilla dll with PB 6.10 ?

The code :

Code: Select all

CompilerIf #PB_Compiler_64Bit
      InitScintilla("scilexer_x64.dll")     
     CompilerElse
        InitScintilla("scilexer_x86.dll")
CompilerEndIf

Give a warning : function initscintilla2 is obsolete... and dont use the specified dll.
Any workaround ?

Re: InitScintilla with PB 6.10

Posted: Sun Feb 04, 2024 12:30 pm
by mk-soft
The scintilla is now statically linked.

Should probably be available as an option. :!:

Re: InitScintilla with PB 6.10

Posted: Sun Feb 04, 2024 5:53 pm
by Tenaja
The linked one is always very old, which is why I usually use the dll for my personal programs.

You'll have to look for examples of how to link in a dll of you want to use one. There is a whole library of PB commands for dll's. There will also be helper code here so you don't have to define all of the libraries yourself. Just search older stuff, maybe look for scintilla editor and DeclareDLL or whatever the command is.

Sorry, I'd help more, but I'm not at my pc.

Re: InitScintilla with PB 6.10

Posted: Sun Feb 04, 2024 6:01 pm
by Tenaja
Oh, yeah... Three scintilla library didn't have all of the lexers available in the dll. I don't know if Fred's changed that recently, but you had to use a dll to get those anyway, unless you wanted to make a static library yourself to link those in.