InitScintilla with PB 6.10

Just starting out? Need help? Post your questions and find answers here.
drgolf
Enthusiast
Enthusiast
Posts: 114
Joined: Tue Mar 03, 2009 3:40 pm
Location: france

InitScintilla with PB 6.10

Post 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 ?
User avatar
mk-soft
Always Here
Always Here
Posts: 6263
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: InitScintilla with PB 6.10

Post by mk-soft »

The scintilla is now statically linked.

Should probably be available as an option. :!:
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
User avatar
Tenaja
Addict
Addict
Posts: 1959
Joined: Tue Nov 09, 2010 10:15 pm

Re: InitScintilla with PB 6.10

Post 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.
User avatar
Tenaja
Addict
Addict
Posts: 1959
Joined: Tue Nov 09, 2010 10:15 pm

Re: InitScintilla with PB 6.10

Post 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.
Post Reply