devxlogo

Tip Bank

DevX - Software Development Resource

Function Pointers

Question: I’m converting an fsm from C to Java. The C code has a struct and one of the members contains a pointer that contains the address of a function.

DevX - Software Development Resource

Outputting query data to a file

Question: I am trying to list out the contents of a field, and there are so many, that I need to send the output to a file. Can you tell

DevX - Software Development Resource

Executing external programs

Question: I know that you can execute a program from a known drive using the system command, but what if you don’t know the drive letter? I am trying to

DevX - Software Development Resource

Using GetFileTime and CompareFileTime

Question: Could you please explain, along with examples, how to use the commands GetFileTime and CompareFileTime? I read the help topics but find it hard to digest what they say.

DevX - Software Development Resource

Integer Size

Question: Our maximum int value is 32,768, but our minimum int value is -32,767. Why aren’t they the same? Answer: Because a short integer (2 bytes or 16 bits) can

DevX - Software Development Resource

Access Modifiers

Question: When should I make member variables protected and when should I make them private? Is it a good practice to ignore protected variables? It seems to me that most

DevX - Software Development Resource

Error When Performing Inserts on SQL Server

Question: When inserting data into a table that has an identity column that is also the key, the following error occurs: Non-Blob column in table is required to perform operation.

DevX - Software Development Resource

C programs to assembly programs

Question: How can I do a C++ program that converts simple C programs to assembly programs? Answer: This is a very complicated task. The first step would be a parser