devxlogo

We are an award-winning tech entrepreneurship website where trusted experts can provide value globally.

Since 1998, DevX has helped people start businesses, build websites, and provide enterprise technology to people globally. Interviewing the likes of Microsoft’s co-founder, Steve Ballmer, the publication brings comprehensive, reliable, and accessible insights to the Internet.

devxlogo

Trusted for 26 years

Over 30K Articles

1M+ Readers

Expert-reviewed

10K+ Tech Terms

As seen in:

microsoft logo
business_insider_logo
wired_logo
berkley
arstechnica_logo
hackernoon

The Latest

Using the Exec…() function

Question: How do you use the Exec() function to run another executable program out of your C++ application? The help files have syntax on this, but I need someone to

Viewing referential constraint

Question: Is there any way to see/select/query referential constraints on tables? I have some constraints on a table that I did not create, and I want to see what rules

Process class

Question: Using VCafe 2.8 in a Win95 enviornment, I’m trying to spawn a local executable during the runtime of a Java application. I’ve tried using: Process p = Runtime.getRuntime().exec(strCmd); but

Function sscanf

Question: Could you tell me what the proper syntax is for the sscanf function, and what return/error codes exist. This was for a Sparc-compiled program. Answer: Though newer programmers seem

Avoid Deleting a Pointer More Than Once

The results of deleting an object more than once are undefined. However, if code modifications are impossible (when a third party code is used, for example), a temporary workaround to

Prefix Versus Postfix Operators

You can use both — and ++ as prefix and postfix operators. When applied to primitives such as int or char, they are indistinguishable in terms of efficiency. When applied

Enums Improve Readability

An enumerated type is simply a list of constants, each of which has a unique value. An Enum can improve the readability of your code by allowing you to declare

Maintain Username and Password

Due to a minor bug, the Internet Transfer Control cannot use the username and password properties if they are set before the URL property. Because of this, you should always

Move a Form Without a Title Bar

Enter this code in a BAS module to let users move a window without a title bar: Declare Function ReleaseCapture Lib “user32” () As LongDeclare Function SendMessage Lib “user32” _

Avoid Implicit int Declarations

The default type for missing declarations like the following is int: const k =0; //’int’ type deduced; deprecatedstatic j =5; //ditto Though still supported by the C++ standard, this convention

Creating Objects

Question: I am having problems creating one particular ActiveX object using ASP. Previously I used WinCGI, and could create the desired object without any trouble. Trying to create the same

Start Menu

Question: When I start my PC, the first thing on the screen (after the virus scan)is Internet Explorer. Then I get a navagation cancelled box. How do I stop IE

Configuring a CD-ROM

Question: I have formatted my machine, which does not have any operating system. I used DOS 6.22 to boot the system and was planning to install Win 95. But my

Passing Arrays

Question: Can you pass an array directly into a cookie file, or do you have to convert it to a string first? If you have to convert it to a

Copy to Clipboard

Question: I want to copy some text in an HTML page to the clipboard when a button is clicked. Is there a method to do this in an onClick event?

Network Protocols — NetBeui

Question: What would happen if I removed the basic NetBeui protocol on an NT network and enabled TCP/IP as the lone and default one? Is that advisable? Answer: As with

Logging in to WinNT4.0 Svr

Question: Some of my users cannot logon to a new WinNT 4.0 server with the standard account I have created for them. Some users get the logon dialog box that

Inserting Text at Cursor Position

Question: How can I insert text in a textarea at the current cursor position ? I am able to insert it at the end, for example: textarea.value = textarea.value +

Creating Directories

Question: Is there any way to create a directory from within a PowerBuilder application without using the RUN command? Or is there a way to get the RUN command to

NT 4.0 Resource Kit

Question: I have been told that the NT 4.0 Resource Kit has a tool to turn an executable, such as one created in VB5, into a service running on NT

Streaming Media Bitrates

Question: Do you know of any way to find out the connection speed of a site’s visitor and then stream videos at the appropriate bitrate? I’m thinking specifically of RealPlayer.

Set Printer Margins

You can use the Printer’s scale properties to set margins. Set the properties so the position (0, 0) is mapped to where you want the margins. This code makes the

Make a Form Stay on Top

You can make a form always remain above others, even when it does not have focus. Use this code in a BAS module: #If Win16 Then Declare Sub SetWindowPos Lib

Perform One-Time Initialization

You can use static variables to perform one-time initialization: Private Sub GetValue()Static initialized As Boolean If Not initialized Then ‘ Perform one-time initialization. : initialized = True End If ‘

Use Explicit Object Types for Speed

It is much faster to use explicit object data types instead of generic ones. In this test that simply sets an object’s public variable, the generic object takes more than