devxlogo

Tip Bank

Registering Custom Interfaces

When the object exposes the custom interfaces via standard marshalling, the proxystub DLL is required for marshalling data across the threadprocessescomputer boundaries.The interfaces are specified in an IDL file that

Convert an Input String Into a Proper String

If you want to convert the input string into a proper string usingjavascript, this is a simple function that will perform the task: String.prototype.ProperCase = function() { return this.substr(0,1) .toUpperCase()

Basic Event Logging

Any production application should include event logging for troubleshooting and auditing purposes. This code can be placed in any module and called whenever you have an error or event that

Maximum Number of Columns Allowed

Question: What is the maximum number of columns allowed in an Informix table? Answer: For Informix 7.3X, the maximum number of columns in a table is 2,767.

NetUserGetInfo – API Call

Question: I am using “NetUserGetInfo” API call to get the NT user profile. I use: typedef struct _USER_INFO_3 How can I parse the “usri3_flags” member in detail? Answer: Use this:

GetPrimaryDCName

Question: I’m trying to get the PDC name for a domain on my network using the following code. It works fine within the VB IDE, but the moment I compile

Changing the Environment Inside a Program

Question: How do I change the environment inside a program (filename.4gl)? Example: setenv TBCONFIG $tbconfig.01 Answer: I don’t think you can do it. If you’re running a 4gl program, you