Tip Bank

DevX - Software Development Resource

How to Instantiate a Template Correctly

The type that a template takes as an argument must have external linkage. This means that you cannot instantiate a template with a locally-declared type: int main(){ struct S {

DevX - Software Development Resource

What’s in a Signature?

A function’s signature consists of the function’s parameter list and the parameters’ ordering. A member function’s signature also includes the const/volatile qualifiers (if any) of that function. Signatures provide the

DevX - Software Development Resource

Create/Drop Table Problem

Question: When I execute this query: create table #T1 ( pk numeric( 9 ) ) drop table #T1 create table #T1 ( pk numeric( 9 ) ) drop table #T1

DevX - Software Development Resource

Insert Performance

Question: When I try to do a simple insert in a table with 25,000 records, it takes a long time do execute. In the same database for a table with

DevX - Software Development Resource

Set DIV Clipping Height

Question: I am inserting some text into a DIV in Netscape using the .open, write(), and close() methods. At first there is nothing in the DIV, and when I check

DevX - Software Development Resource

Retrieving Data from a Text Field

Question: I have a table with a text field that stores a long description. When I use the Select statement to query the table, it only returns 255 characters. How

DevX - Software Development Resource

Faxing a Report via WinFax Pro

Question: I want to output a report by Visual FoxPro 6.0 and fax it by WinFax Pro 9.0. I can output my report to an ASCII file which is then

DevX - Software Development Resource

Precise Division

Question: I have var1 and var2 both ints in a DB (only ints will be entered into var1, var2). But I want the result to show answer with decimal places: