Delphi

Hiding your application from the Windows Taskbar.

Author: Embarcadero USA Question: How do I hide my application from the Windows Taskbar? Answer: It is possible to have your application running without an icon appearing in the task bar. Here’s how to do this: In Delphi go to the menu option Project -> View Source. Add the Windows unit to the uses clause. Add Application.ShowMainForm := False; to the line…
Read more
Delphi

Implementing TCollection

Author: Embarcadero USA Technical Information Database TI1647D.txt - Implementing TCollection Category :ActiveX/OLE/COM/ActiveForm Platform :All-32Bit Product :All32Bit, Description: This document is intended for those needing to descend from a class that…
C++

Playing a WAV from a resource.

Author: Embarcadero USA Question and Answer Database FAQ498C.txt Playing a WAV from a resource. Category :Windows API Platform :All Product :C++Builder 1.x Question: How do I play a sound from a resource? Answer: We haven't been able to get the SND_RESOURCE…
C++

Displaying an error string from GetLastError.

Author: Embarcadero USA Technical Information Database TI2459C.txt Displaying an error string from GetLastError. Category :General Platform :All Product :Borland C++ All Description: Displaying an Error Message with GetLastError GetLastError is a WIN32 API that returns an error code indicating the most recent error. The most recent error will be set by the failing…
Read more
C++

Linking to Functions in Third-Party DLLs

Author: Embarcadero USA Technical Information Database TI2407C.txt Linking to Functions in Third-Party DLLs Category :General Platform :All Product :Borland C++ All Description: Linking to Functions in Third-Party Dynamic Link Libraries ======= ==…
C++

Filtering Your DataSet in C++Builder

Author: Embarcadero USA Technical Information Database TI2367C.txt Filtering Your DataSet in C++Builder Category :General Platform :All Product :C++Builder All Description: Filtering your DataSet In C++ Builder Filtering lets you specify criteria to…
C++

Converting an AnsiString to Char*

Author: Embarcadero USA Question and Answer Database FAQ1360C.txt Converting an AnsiString to Char* Category :VCL Platform :All Product :C++Builder 1.x Question: I am trying to convert a String to char* but keep receiving the error: "Cannot cast from System::AnsiString to Char*". Below is my code. What am I doing wrong? String s; char* ch; s…
Read more
C++

C++Builder WinExec() and CreateProcess()

Author: Embarcadero USA Question and Answer Database FAQ1378C.txt C++Builder WinExec() and CreateProcess() Category :Windows API Platform :All Product :C++Builder 1.x Question: I am updating my code for Win32 and changing my WinExec() calls to…
C++

How do I make a ComboBox Read-Only?

Author: Embarcadero USA Question and Answer Database FAQ971C.txt How do I make a ComboBox Read-Only? Category :VCL Platform :All Product :C++Builder 1.x Question: How do I make a ComboBox Read-Only? Answer: The same effect can be achieved by…
Delphi

Direct Commands to Printer - Passthrough/Escape

Author: Embarcadero USA Technical Information Database TI1497D.txt - Direct Commands to Printer - Passthrough/Escape Category :Printing Platform :All-32Bit Product :All32Bit, Description: Although Delphi's TPrinter unit makes it easy to interface to a given printer, there are times when you may need to drop down to the printers level and send device specific escape sequences. Under…
Read more