Base64 Encode and Decode - VCL
Here is a way to Base64 Encode and Decode your string in Borland C++ Builder (VCL)… Read the rest of this entry »
Here is a way to Base64 Encode and Decode your string in Borland C++ Builder (VCL)… Read the rest of this entry »
Author: Raz | On June 30th, 2007 | C++ Builder, [ En ] | Leave a comment
So, you need a way to get your user local IP address? Here is the winsock way. Read the rest of this entry »
Author: Raz | On June 16th, 2007 | C/C++, C++ Builder, [ En ] | Leave a comment
So, you want to report errors in a printf / sprintf way? Check this out… Read the rest of this entry »
Author: Raz | On June 14th, 2007 | C++ Builder, [ En ] | Leave a comment
Author: Raz | On May 7th, 2007 | C++ Builder | 2 comments
Q: How can I get file version information from my own exe/dll or any other file?
A: The VerQueryValue function retrieves specified version information from the specified version-information resource. To retrieve the appropriate resource, before you call VerQueryValue, you must first call the GetFileVersionInfoSize function, and then the GetFileVersionInfo function.
Read the rest of this entry »
Author: Raz | On February 25th, 2007 | C/C++, C++ Builder, [ En ] | Leave a comment
Author: Raz | On February 22nd, 2007 | C/C++, C++ Builder | 2 comments
Here is how you can use the OnColumnClick and OnCompare events of a TListView to let users sort the columns (ascending/descending) in a report-style list view by clicking on the column headers. This requires a global variable to keep track of the column that was clicked:
Read the rest of this entry »
Author: Raz | On February 17th, 2007 | C++ Builder, [ En ] | 2 comments
How to enabled drag&drop from explorer to your window and retrieve a list of dropped files?
1. Enable your window (Form) to accept dropped files (DragAcceptFiles )
2. Add a message handler for WM_DROPFILES
3. Use DragQueryFile ( on WM_DROPFILES) to get the dropped files count and their full path.
Author: Raz | On February 10th, 2007 | C++ Builder, [ En ] | Leave a comment
The simple way to print a TBitmap is to use the Draw method of a TPrinter Canvas ThePrinterCanvas->Draw ( PositionX, PositionY, TheBitmap);. This works, except that on many machines this will fail to print (or print out too small). The following code will print the TBitmap at a size that is adjusted for the printer device using StretchDIBits. You could change the scaling and have it print to whatever size you want…
Read the rest of this entry »
Author: Raz | On February 2nd, 2007 | C++ Builder, [ En ] | Leave a comment
Checking if a file or folder exists with FileExists and DirectoryExists (VCL) will not work on Unicode files path, so here are the Unicode versions…
Read the rest of this entry »
Author: Raz | On January 27th, 2007 | C++ Builder, [ En ] | Leave a comment
Here is an easy way to make a custom message box with a check box bellow the buttons. No need for MessageBox hooks or any other “magics”, just plain VCL:
Author: Raz | On January 21st, 2007 | C++ Builder, [ En ] | 1 comment
So, you want to disable XP Theme applied on the entirely window or maybe just on a button? or any other control?
Read the rest of this entry »
Author: Raz | On January 13th, 2007 | C/C++, C++ Builder, [ En ] | 2 comments






























