Page 1 of 1

SyntaxHilighting.dll static alternative

Posted: Wed Aug 29, 2007 8:22 am
by gnozal
2Freak : SyntaxHilighting.dll is very usefull ; could you also provide a static alternative, so that we don't need a DLL ?

Posted: Wed Aug 29, 2007 9:05 am
by milan1612
You could use the LoadDllMemory library from PBOSL...

Posted: Wed Aug 29, 2007 10:16 am
by gnozal
milan1612 wrote:You could use the LoadDllMemory library from PBOSL...
I know, but it's only a workaround.
And it does not work with all DLLs (SyntaxHilighting.dll not tested).

Posted: Wed Aug 29, 2007 10:23 am
by ts-soft
You can use the memorymodule.lib from my includepack. Is the same as in
PBOSL, but as static lib. Works with SyntaxHilighting.dl

http://www.purebasic.fr/english/viewtop ... 126#151126

greetings
Thomas

Posted: Wed Aug 29, 2007 10:24 am
by milan1612
gnozal wrote:And it does not work with all DLLs (SyntaxHilighting.dll not tested).
Sure? I've never had any problems with it...

Posted: Wed Aug 29, 2007 10:39 am
by gnozal
milan1612 wrote:
gnozal wrote:And it does not work with all DLLs (SyntaxHilighting.dll not tested).
Sure? I've never had any problems with it...
Sure :wink:

Posted: Wed Aug 29, 2007 10:42 am
by milan1612
OK, I think I'm gonna do some tests :?

Posted: Wed Aug 29, 2007 10:44 am
by gnozal
ts-soft wrote:You can use the memorymodule.lib from my includepack. Is the same as in PBOSL, but as static lib. Works with SyntaxHilighting.dl
http://www.purebasic.fr/english/viewtop ... 126#151126
Thanks Thomas, I know this too. I am glad it works, but I would like a 'real' SyntaxHilighting static library.

Posted: Wed Aug 29, 2007 10:45 am
by gnozal
milan1612 wrote:OK, I think I'm gonna do some tests :?
I do not remember wich DLL it was, it tested some, maybe BASS or BASSMOD ?

Posted: Wed Aug 29, 2007 1:14 pm
by freak
PB does not create static libs from PB code so i can only provide a dll, sorry.

btw, the idea was that tools should load the dll directly from the user's PB directory.
This way they always get the up to date version of the dll (when keywords are added etc).
Using a static library would defeat that purpose.

Posted: Wed Aug 29, 2007 1:27 pm
by gnozal
freak wrote:PB does not create static libs from PB code so i can only provide a dll, sorry.
I did not know it was written in PB, sorry.
Maybe a new feature for PB4.20 ? Some other basic compilers can compile to lib.
freak wrote:btw, the idea was that tools should load the dll directly from the user's PB directory.
This way they always get the up to date version of the dll (when keywords are added etc).
Yes, that's what my tools do.
Maybe you could post (or include a readme in the SDK) a reliable method to get the PB directory when PB 4.10 final comes out, because this is not very well documented (and now that Vista and UAP are out ...).
Thanks.

Posted: Wed Aug 29, 2007 1:53 pm
by freak
> Maybe a new feature for PB4.20 ? Some other basic compilers can do it.

I don't think that will happen anytime soon.

I can post some code to locate the PB dir in the comming days (no access to the files right now)