Search found 154 matches
- Thu May 15, 2025 4:48 am
- Forum: Coding Questions
- Topic: deindent in scintilla
- Replies: 4
- Views: 841
Re: deindent in scintilla
it is working fine in 5.72 TAB indent / shift TAB back indent
- Tue May 13, 2025 9:23 am
- Forum: Coding Questions
- Topic: is it duplicated library code in final exe ?
- Replies: 15
- Views: 1284
Re: is it duplicated library code in final exe ?
it doesn't matter how the math is ,
when i UsePNGEncode() and UsePNGDecoder() , could i use the Deflate methor in CompressMemory() function ?
in Doc help file , the CompreeMemory() only support #PB_PackerPlugin_BriefLZ , #PB_PackerPlugin_Zip , #PB_PackerPlugin_LZMA
how to use the deflate ...
when i UsePNGEncode() and UsePNGDecoder() , could i use the Deflate methor in CompressMemory() function ?
in Doc help file , the CompreeMemory() only support #PB_PackerPlugin_BriefLZ , #PB_PackerPlugin_Zip , #PB_PackerPlugin_LZMA
how to use the deflate ...
- Tue May 13, 2025 9:15 am
- Forum: Coding Questions
- Topic: is it duplicated library code in final exe ?
- Replies: 15
- Views: 1284
Re: is it duplicated library code in final exe ?
Result = CompressMemory(*Buffer, Size, *Output, OutputSize [, Plugin [, Level]])
Description
Compress the buffer content into the output buffer. The output buffer length needs to be at least as long as the buffer to compress.
Parameters
*Buffer The memory buffer to compress.
Size The size of ...
- Tue May 13, 2025 8:51 am
- Forum: Coding Questions
- Topic: is it duplicated library code in final exe ?
- Replies: 15
- Views: 1284
Re: is it duplicated library code in final exe ?
You just need UsePNGImageEncoder() and UsePNGImageDecoder() to use PNG, why do you want to add the zip lib ? The zip lib large because it use libarchive which handle a lot of file format. But if you use both, it uses a common libzip defalte as both need it, that's why 36KB are saved.
it ...
- Tue May 13, 2025 7:43 am
- Forum: Coding Questions
- Topic: is it duplicated library code in final exe ?
- Replies: 15
- Views: 1284
Re: is it duplicated library code in final exe ?
it is clear that has 303 - 148 = 155 KB more ?
Am I wrong or does your math looks a little wonky?
I see 303 KB - (148 KB - 5 KB) - (201 KB - 5 KB) = -36 KB. So combining everything into the exe sized 303 KB seems to save 36 KB.
so you mean the PNG format placeholder without the deflate ...
- Tue May 13, 2025 4:26 am
- Forum: Coding Questions
- Topic: is it duplicated library code in final exe ?
- Replies: 15
- Views: 1284
Re: is it duplicated library code in final exe ?
In PB 5.72 x86, compiled to final exe size :
MessageRequester("","")
exe = 5 KB
UseZipPacker()
MessageRequester("","")
exe = 201 KB
UsePNGImageEncoder()
UsePNGImageDecoder()
MessageRequester("","")
exe = 148 KB
UseZipPacker()
UsePNGImageEncoder()
UsePNGImageDecoder ...
MessageRequester("","")
exe = 5 KB
UseZipPacker()
MessageRequester("","")
exe = 201 KB
UsePNGImageEncoder()
UsePNGImageDecoder()
MessageRequester("","")
exe = 148 KB
UseZipPacker()
UsePNGImageEncoder()
UsePNGImageDecoder ...
- Sat May 10, 2025 7:46 am
- Forum: Coding Questions
- Topic: is it duplicated library code in final exe ?
- Replies: 15
- Views: 1284
is it duplicated library code in final exe ?
Zlib provides functions like deflate (compress) and inflate (decompress)
ZIP files often use deflate compression internally to compress individual files
if they worked more or less the same in decode/encode functions ,
then my program use PNG encoder/decoder and also useZIP encoder/decoder ...
- Mon May 05, 2025 3:14 am
- Forum: Coding Questions
- Topic: Enumerate the addresses of all labels in the DataSection
- Replies: 10
- Views: 747
Re: Enumerate the addresses of all labels in the DataSection
AZJIO , breeze4me , thanks for your answers.
RASHAD 's code is concise and simple.
This way I got a more compact notation:
EnableExplicit
UsePNGImageDecoder()
Define hGUI, w, h, Counter, id_img
Define imageBuffer, img
DataSection
IncludePath "images" + #PS$
p1: :IncludeBinary "1.png"
p2 ...
- Wed Apr 30, 2025 11:13 am
- Forum: Feature Requests and Wishlists
- Topic: SELECT CASE with relational operators and ELSE CASE like Visual Basic and others
- Replies: 23
- Views: 3328
Re: SELECT CASE with relational operators and ELSE CASE like Visual Basic and others
I come from a language background where case statements can support multiple variables and conditional tests, which I miss, but we have If/ElseIf.
Do you have an example of what you would like to do but can't?
begin case
case acctype = "C" and amount > cutoff
.. do something
case ...
- Wed Apr 30, 2025 2:47 am
- Forum: Feature Requests and Wishlists
- Topic: SELECT CASE with relational operators and ELSE CASE like Visual Basic and others
- Replies: 23
- Views: 3328
Re: SELECT CASE with relational operators and ELSE CASE like Visual Basic and others
i was avoiding SELECT - CASE most the time , use IF-THEN -ELSE make more fun
- Fri Mar 28, 2025 3:21 am
- Forum: The PureBasic Editor
- Topic: Source language lexer
- Replies: 7
- Views: 1652
Re: Source language lexer
purebasic is not a popular language like C , or C++ , or ASM or Pascal or QuickBasic or something else .
In order to make it widely accepted or increase popularity , language should publish it's specifications and encourage alternative compiler implementation.
even the liberty basic has ...
In order to make it widely accepted or increase popularity , language should publish it's specifications and encourage alternative compiler implementation.
even the liberty basic has ...
- Thu Mar 20, 2025 3:36 am
- Forum: Tricks 'n' Tips
- Topic: PureLibrary Creator - PB 6.20
- Replies: 48
- Views: 17002
Re: Lib - PB 6.20
PB 6.20 allows library creation
but for the moment, managing optional procedure parameters is a bit tricky.
to remedy this problem I've made a little code
it also adds a “Quick help” giving the procedure syntax
a comment line above the procedure can be added for a quick description of the ...
- Fri Mar 07, 2025 11:18 am
- Forum: Coding Questions
- Topic: not working
- Replies: 3
- Views: 500
not working
Code: Select all
Working:
Txt$ = "ABC XYZ"
DrawText_(hdc,@Txt$,-1,RC, Text_Align | #DT_NOPREFIX )
Code: Select all
Not working:
Newlist T$()
Addelement(T$())
T$()="ABC XYZ"
DrawText_(hdc,@T$(),-1,RC, Text_Align | #DT_NOPREFIX )
- Thu Mar 06, 2025 4:32 am
- Forum: General Discussion
- Topic: Compiler delays 30 seconds
- Replies: 5
- Views: 1119
Re: Compiler delays 30 seconds
Ok , thanks.
apologise for my stupid.
best regards
apologise for my stupid.
best regards
- Tue Mar 04, 2025 3:22 am
- Forum: Coding Questions
- Topic: The compiler is not ready
- Replies: 38
- Views: 2868
Re: The compiler is not ready
There is no point in getting upset about it now. Other IDEs do the same thing. In VSCode, the concept is called LanguageServer. There is also a dedicated process running in the background that collects information about how the IDE should highlight the syntax.
i am not upset , but used to it ...