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
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…
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 ======= == ========= == =========== ======= ==== ========= The use of dynamic link libraries, or DLLs, is fundamental to Windows…
Read more
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…
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++

Bad object file record in...

Author: Embarcadero USA Question and Answer Database FAQ563C.txt Bad object file record in... Category :Linker Platform :All Product :BC++ 5.x Question: What's a possible cause for the linker error Fatal: Bad object file record in file xxx near module offset 0x00000000 Answer: There are more legitimate means of getting this error, of course, but often when it is at offset zero it…
Read more
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…
C++

Catching an access violation exception

Author: Embarcadero USA Question and Answer Database FAQ1750C.txt Catching an access violation exception Category :C/C++ Language Issues Platform :All Product :BC++ 5.x Question: Why does my attempt at catching an access violation fail? main() { char…
C++

Sharing Violation Error with Paradox Tables.

Author: quinn Technical Information Database TI265B.txt Sharing Violation Error with Paradox Tables Category :General Programming Platform :All Product :BDE All Description: This error is most commonly caused by a "Lock File Contention". A lock file contention occurs in this situation: One user, User "A", is accessing one or more Paradox tables in a directory. "A" is closing…
Read more