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 *ptr; ptr=NULL; try { *ptr=5; } catch(...) { cerr << "Caught exception" <"throw" somewhere for you to…
Read more
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…
C++

Convert Hex String to an Integer Value.

Author: Embarcadero USA Technical Information Database TI2203C.txt Convert Hex String to an Integer Value. Category :General Platform :All Product :C/C++ All Description: This document provides a method to read hexadecimal numbers. The atoi() function…
C++

Output Numbers with Thousands Separator

Author: Embarcadero USA Technical Information Database TI2183C.txt Output Numbers with Thousands Separator Category :General Platform :All Product :C/C++ All Description: How do I output comma-formatted numbers such as 1,000,000 with C++ IOStreams? As common as this would seem, C++ IOStreams have no support for this. The function shown in the code sample below serves…
Read more
C++

How to Build and Use a Simple DLL

Author: Embarcadero USA Technical Information Database TI2195C.txt How to Build and Use a Simple DLL Category :General Platform :All Product :C/C++ All Description: This document discusses how to create dynamically linked libraries (DLLs) using version 5.0 of…
C++

Null Pointer Assignment Errors Explained

Author: Embarcadero USA Technical Information Database TI500C.txt Null Pointer Assignment Errors Explained Category :General Platform :All Product :Borland C++ All Description: 1. What is a Null Pointer Assignment error? The Null Pointer Assignment error is generated in programs that corrupt the bottom of the data segment in such a fashion as to indicate a high…
Read more
C++

Getting Input In Graphics Mode

Author: Embarcadero USA Technical Information Database TI676C.txt Getting Input In Graphics Mode Category :General Platform :All Product :Borland C++ 3.0 Description: This program demonstrates how to get input from the user in …
C++

Resolving Undefined Symbol linker messages.

Author: Embarcadero USA Technical Information Database TI867C.txt Resolving Undefined Symbol linker messages. Category :General Platform :All Product :Borland C++ 3.x Description: The purpose of this document is to provide an overview of the …