News:

Download Pelles C here: http://www.smorgasbordet.com/pellesc/

Main Menu

Recent posts

#61
User contributions / Mike Henning's Link2Res
Last post by Vortex - July 26, 2025, 10:52:43 AM
MrBcx, the Administrator of the BCX Forum explains how to build this useful resource linker :

QuoteMike Henning wrote this app in 2006 and it still builds today using the current version of BCX.

It is important that you build this as a 32-bit executable, to minimize warnings and to ensure
its proper operation.  Be certain to build it as a console mode app.

This app can attach a proper Windows binary resource file (*.res) to any 32-bit or 64-bit exe.
This is particularly good news for for folks that prefer working with the MINGW toolchain, as
WINDRES is not particularly adept at dealing with *.res files.

https://bcxbasiccoders.com/smf/index.php?topic=1382.0
#62
Beginner questions / Re: Trreview problem with movi...
Last post by John Z - July 26, 2025, 01:52:10 AM
Thanks CFred!

Very nice.  Grabbed it for learning and future reference. 
I've used TreeView quite a bit, but never needed to drag and drop a leaf,

John Z
#63
Beginner questions / Re: Trreview problem with movi...
Last post by CFred - July 25, 2025, 05:30:31 PM
At last I managed to find a bug in my code at line 560 in the previously uploaded version of the code in the function TREE_MoveSingleBranch().

I changed the line:

tvItem.mask = TVIF_HANDLE | TVIF_TEXT | TVIF_IMAGE | TVIF_SELECTEDIMAGE | TVIF_PARAM | TVIF_STATE | TVIF_CHILDREN;
to:

tvItem.mask = TVIF_HANDLE | TVIF_TEXT;
I am uploading the working version in case anybody finds it useful (there is very little information on the internet that I could find for dragging tree nodes, particularly as Code Project is no longer available). The code is heavily commented to explain how the it works. I have not tidied up the code so I leave this for anybody who wants to use it.
#64
Beginner questions / Trreview problem with moving a...
Last post by CFred - July 25, 2025, 12:19:19 PM
The attached program attempts to move a leaf node in a tree when it is dragged to a different position.

The program almost works except if I drag a leaf node to another position and then I drag another leaf mode to make it a child node of the previously dragged leaf node the second dragged node disappears.

I've spent a long time trying to fix this issue without success. Can anybody help me to solve this issue?
#65
User contributions / Re: External Sorting Algorithm
Last post by cosh - July 12, 2025, 07:44:18 AM
Quote from: TimoVJL on July 11, 2025, 09:50:08 AMJust Pelles C projects from those files for test.
Thank you for uploading test files for SVXS!
#66
User contributions / Re: Hint_SA (Standalone)
Last post by John Z - July 11, 2025, 11:36:44 AM
Hi,

Please unzip and use the version of the database that comes with the new version of Hint_SA.

John Z
#67
User contributions / Re: External Sorting Algorithm
Last post by TimoVJL - July 11, 2025, 09:50:08 AM
Just Pelles C projects from those files for test.
#68
User contributions / External Sorting Algorithm
Last post by cosh - July 10, 2025, 03:58:40 AM
Hi, fellows.
I recently write an external sorting algorithm and tested it by Pelles C compiler.
https://github.com/coshcage/StoneValley/blob/master/Examples/svxs.h
https://github.com/coshcage/StoneValley/blob/master/Examples/svxs.c
External sorting is a type of sorting algorithm that is used to sort data on an external storage, typically disk.
We all know that the capacity of a disk usually is larger than internal memory (RAM).
The question is how we can sort a massive of data on disk by using limited memory and simultaneously maintain a rapid running speed.
External sorting algorithm is born for this situation.

The implementation of external sorting is at svxs.c and function svXSort is exported to svxs.h.
The usage of function svXSort is listed below:
svXSort
(
[output file],
[input file],
[how many elements to be sorted in the input file],
[how many elements can be loaded into RAM],
[size of an element],
[callback comparator]
);  // Returns 0 for no error.
The final question is how we can test this algorithm.
There is a complete guide at the tail of file svxs.h.

The external sorting function needs StoneValley to be compiled.
*) If svmisc.c(319): error #2083: Invalid address of 'st' with storage class 'register'. this error occurs during compiling your project, please delete the 'REGISTER' qualifier at svmisc.c line 319 and re-compile it again.

There you go, thank you guys to read this article and use my external sorting function.
I'm here to wait for your replies.
#69
Assembly discussions / Re: Unicode strings in Assembl...
Last post by TimoVJL - July 09, 2025, 03:15:51 PM
The poasm.exe is far better tool to basic asm things than ml64.exe
I don't need an assembler, but just being keen to verify them.
#70
Assembly discussions / Re: Unicode strings in Assembl...
Last post by Pelle - July 09, 2025, 12:07:34 PM
Quote from: Vortex on July 08, 2025, 08:58:13 PMThanks for the new release of Poasm fixing the issue. Tested both of the UTF8 and UTF16 encodings.
OK, good to know. Thanks!