Scintilla Update to v3.7.6 (before migrating to v4)

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Zach
Addict
Addict
Posts: 1656
Joined: Sun Dec 12, 2010 12:36 am
Location: Somewhere in the midwest
Contact:

Re: Scintilla Update to v3.7.6 (before migrating to v4)

Post by Zach »

I think that's where the whole debate is.

The version included with PB right now doesn't require the DLL when compiled, because it's included as an internal library from source code.
But since apparently it has other dependencies in later versions, you'd be requiring people to either include those files, or require users of their software to install them (I mean let's be honest, they should have them anyway if they use any number of windows apps and keep their system updated)
Image
User avatar
DoubleDutch
Addict
Addict
Posts: 3219
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Re: Scintilla Update to v3.7.6 (before migrating to v4)

Post by DoubleDutch »

That's what I thought too, I made a Windows program that used Scintilla and gave a copy to someone who did not have the dll (I started it without pointing to a dll). It would not work. When I gave them the dll (and pointed to it) it did.

The latest version just requires the scintilla.dll - unless you want to do syntax highlighting of other languages - then you have to include a second dll.
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
User avatar
kenmo
Addict
Addict
Posts: 1967
Joined: Tue Dec 23, 2003 3:54 am

Re: Scintilla Update to v3.7.6 (before migrating to v4)

Post by kenmo »

I wonder if future PureBasics could ship with newer Scintilla (4.xyz) - but also provide older Scintilla (3.xyz) as an optional subsystem? Like the "opengl" and "qt" subsystems, etc.

Then most users could enjoy updated Scintilla, while providing legacy Scintilla for farther backwards compatibility (32-bit MacOS, Windows without the latest runtimes, etc.)
User avatar
Tristano
Enthusiast
Enthusiast
Posts: 190
Joined: Thu Nov 26, 2015 6:52 pm
Location: Italy
Contact:

Re: Scintilla Update to v3.7.6 (before migrating to v4)

Post by Tristano »

Zach wrote:The version included with PB right now doesn't require the DLL when compiled, because it's included as an internal library from source code.
I believe it does require the DLL, because building Scintilla as a static library has always been problematic under Windows.

If the program is running as expected even without the DLL in its folder, it might be just because you have a Scintilla DLL in your system path (either from the PB distribution, or via some other app).

In any case, to prevent "DLL Hell", you should always include the correct version of the Scintilla DLL along with your compiled app, to avoid problems in case the user has a different DLL version on his/her path.

I don't remember if the PB Scintilla Library actually carries out some checks for the DLL version, but since many users have reported shipping their Windows app with a DLL taken from the Scintilla official distribution package I guess it doesn't.
The PureBASIC Archives: FOSS Resources:
Post Reply