devxlogo

Tip Bank

DevX - Software Development Resource

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

DevX - Software Development Resource

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

DevX - Software Development Resource

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

DevX - Software Development Resource

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

DevX - Software Development Resource

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

DevX - Software Development Resource

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

DevX - Software Development Resource

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

DevX - Software Development Resource

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

DevX - Software Development Resource

Exporting dw to Excel using OLE using PB5

Question: I’m trying to export a report to Excel with OLE automation. I’m using PB 5.0.2 and Excel 97. I’ve seen countless examples on how to do this (in fact,