Tip Bank

DevX - Software Development Resource

VB and WinSock

Question: Winsock with VB works fine if I specify a port (e.g., 1001). However when I set the Winsock’s port (local and remote) properties to 0 so that they would

DevX - Software Development Resource

Shared Memory Error

Question: My Informix usually server starts fine, but when I try to add a database chunk with the onspaces command I get an error (“shared memory not initialized”). Any ideas?

DevX - Software Development Resource

Error in Timed Job

Question: I am getting an error (“Could not do a physical-order read to fetch next row” #244) while executing a job that runs a set of SQL statements every 30

DevX - Software Development Resource

MTS Programming

Question: Should I make a call to GetObjectContext() in every function in my DLL? Obviously, you are going to do that in your “main” methods, but does calling GetObjectContext() in

DevX - Software Development Resource

Reference to Pointers

Question: When should you use reference to pointers like those found in function arguments (class_name * & )? Answer: When you want the callee to change the pointer itself, not

DevX - Software Development Resource

Quick comparison among UDTs

When you need to compare two User Defined Type (UDT) variables to check whether they are equal, the only approach that you can follow in plain VB is to compare

DevX - Software Development Resource

VB Constant Declaration

Question: What does the ‘* 1’ mean in this constant declaration? Public Const gcsDelimiter As String * 1 = “|” Answer: The * in your example defines the size of

DevX - Software Development Resource

Reserved Words

Question: Where can I find a list of reserved words in C++? Answer: Most C++ books include a list of reserved keywords. Here’s the list: asm do if return typedefauto

DevX - Software Development Resource

Do Templates Increase Executable Size ?

Question: Since template code is generated at compile time, it implies that there should be a separate set of code for each template objects created. Does that mean templates increase