Codesnippets


Here I will post all Code snippets, that I wrote for the Forums, or the Recourcesite. I have some more, but they are not well structured or commented.


GetDiskSpace
With todays big Harddisks, the sizes in Bytes don't fit inside a LONG Value anymore. This example shows how to get the Size of a Disk in MegaBytes.
View    Download (1Kb)
GetDrives
A very short example of how to get the avaiable Drives on a Computer, nothing special.
View    Download (1Kb)
SendMessageString
A short example of how to Send String Messages between Apps.
This is the Sender part.
View    Download (1Kb)
SendMessageString2
This is the receiving Part of the String Message example.
View    Download (1Kb)
StrDouble
This is a Procedure to convert a Double Value (splitt in hiLONG and loLONG) to a String. It is usefull for some API calls.
View    Download (1Kb)
TreeDrag
This Code lets you enable Drag'n'Drop in a TreeGadget. This way, you can trace Items that are draged out of the TreeGadget, and dropped somewhere in your Window.
View    Download (2Kb)