devxlogo

Tip Bank

Floating point accuracy

Question: When I do the following, double answer = 121 * .1;System.out.println(“Answer: ” + answer); I get, Answer: 12.100000000000001 What’s going on? Answer: Almost every computer architecture represents numbers in

WIN NT User ID

Question: Do you know where to locate the Windows NT user ID so that I can add the user to the Exchange Server? Answer: The following code works just fine:

Parameters for NT Services

Question: I have written a service that accepts some parameters. How do I set up the service to send those parameters to the service when it starts? Answer: Since services

Read-only members

Question: If I write a class in C++, which contains private members, I can make them read-only by providing a get access method and no set access method. If that

NT remote execute

Question: How do I execute a batch file on an NT machine remotely from another Windows machine? Answer: You have a couple of choices, all from the NT Server Resource

Foxpro 2.6 for DOS

Question: I know I’m a bit behind, but I would like to know how to create C programs for use in Foxpro for DOS. I have Foxpro 2.6 with LCK,

Loading automaticaly

Question: When I put my CD into my computer, it should start the programs automatically, but it don’t. I have to go to PROGRAMS to make it come up. Could

FoxPro vs. Access

Question: I’m planning on using Visual Basic as a front end, but cannot decide on Access or FoxPro as the back end. Any big differences between the two? Answer: I