devxlogo

Tip Bank

Querying NT

Question: Is there a way to query NT 4.0 (programmatically or manually) to have it tell me whether it is NT workstation or NT server? Is the answer in the

MTS, ASPs, and State(less) objects

Question: When implementing the Microsoft DNA model, it is suggested to create objects with methods only (no properties) to maintain true stateless objects. If an object will only live for

Adding local groups to a NT Workstation

Question: I am trying to write an app that can add local groups to the NT security database on an NT workstation. When I use the netlocalgroupadd() function, I get

Parsing a comma-delimited text file

Question: Is there an easy way to load a datastore with a comma-delimited text file? Answer: Yes, just load the file into memory and do a global search and replace

GetWindowsDirectory API 16 bit to 32 bit

Question: I have migrated an application from 5.0.03 to 6.5 and continue to get this error when pressing the Run button: Error – 14 – Error opening DLL library kernel.exe

Adding DOS exe

Question: How do I add a DOS exe such as ping to a VB program? Answer: If starting another program is what you want, then use the Shell function. The

NT as Primary Domain Server

Question: I want to set up my NT Server as my primary domain server. How do I do it? Answer: Unfortunately, the only way I know to convert a current

CopyFile API fails with AT command

Question: I have a program that copies a file from Network Drive W: to Local Hard Drive E: using the CopyFile API Function. From the command line, the program works

16 bits vs 32 bits

Question: Can we transfer an application from 32 bits to16 bits (PowerBuilder 5.0) without problems ? Answer: The only thing you will have to check for is API calls. The