devxlogo

Tip Bank

DevX - Software Development Resource

Delaying a Program

Question: Can you please tell me how to delay the program flow in Java? I can’t find any implementation of delay(). Answer: To introduce a delay into your program, use

DevX - Software Development Resource

Array of pointers.

Question: I need to pass an array of pointers to a class to a function. The function is: void myFunc(myClass *example[]); The problem is that I need to define the

DevX - Software Development Resource

NT RAS error codes

Question: Where can I go to decipher Microsoft error codes? I am having trouble making one NT workstation dial in to my RRAS server; I get a TCP/IP error code

DevX - Software Development Resource

Returning strings from functions

Question: I would like to write a function that receivesan integer and converts this into a string representing the integers value in binary. At the moment I am struggling to

DevX - Software Development Resource

Reflection – Constructors and array params

Question: I need to call a constructor of a dynamically loaded class, and thatconstructor takes a single parameter which is an array of strings,(i.e., constructor(String [] args). How can I

DevX - Software Development Resource

Extracting bits.

Question: How do I extract the value from a certain number of bits of an unsigned type? ex: date is stored as unsigned date = 0x26cf; bits meaning 0-4 Day

DevX - Software Development Resource

DLLs on NT

Question: I’ve written an application that uses external DLLs. It works fine on Win95. When I try to load it on NT, it says it can’t find any of the