Delphi

Extracting Icons

Author: Embarcadero USA Question and Answer Database FAQ1778D.txt Extracting Icons Category :Windows API Platform :All Product :All 32 bit Question: How can I use the undocumented ShellAPI function ExtractIconEx() to extract the small and large icons from a given file? Answer: You can use the undocumented ShellAPI function ExtractIconEx() to extract both large and small icons…
Read more
Delphi

Using WM_COPYDATA.

Author: Embarcadero USA Question and Answer Database FAQ1525D.txt Using WM_COPYDATA. Category :Windows API Platform :All Product :All 32 bit Question: How can I use the WM_COPYDATA message to pass information between 16-bit and 32-bit…
Delphi

Preventing multiple application instances

Author: Embarcadero USA Question and Answer Database FAQ1355D.txt Preventing multiple application instances Category :Windows API Platform :All Product :All 32 bit Question: How can I guarantee that only one instance of my program executes? Is it possible to restore the previous instance and shut down if I start more than one instance? Answer: Under Win16, you can check the value…
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++

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++

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…
C++

Showing a splash screen at startup

Author: Embarcadero USA Question and Answer Database FAQ533C.txt Showing a splash screen at startup Category :VCL Platform :All Product :C++Builder 1.x Question: Where is the best place to open a splash screen on program start up? Answer: The best place to…
Delphi

How to dynamically create a TPageControl

Author: Embarcadero USA Technical Information Database TI1321D.txt - How to dynamically create a TPageControl Category :VCL Platform :All-32Bit Product :All32Bit, Description: This document demonstrates how to dynamically add tab sheets (TTabSheet objects) to a Windows 9x/NT Page Control (TPageControl object). Both of these objects are declared in the ComCtrls unit. So make…
Read more