devxlogo

Tip Bank

Writing Binary Data to an ofstream

To write the binary value of a variable to an output file stream (ofstream) object, use the write() member function. write() takes two parameters: const char * and long, which

CUDL – A class to create UDL files

‘ A class that creates UDL files for use as ADO Data Sources.’ Universal Data link files are handy for select data sources but there’ are lack of a way

Fill a Combo with Available Drive Letters

To create a drop-down control with a list of used or unused drive letters, place two ComboBox controls on a form, named Combo1 and Combo2, and include this code to

Float Buttons Over Tab Panels

When using the SSTab control to build a tabbed dialog, I often find the design more pleasing when the OK/Cancel buttons or other controls appear on every tab. It