The Latest

DevX - Software Development Resource

Printing from Browser

Question: Is there a way to print an HTML page (perhaps using VBScript or JavaScript) without the user clicking on the print button? Answer: Ah, printing! You would think that,

DevX - Software Development Resource

Setting z-index

Question: I am having problems setting a lower z-index for a layer that contains a combo box. All of the elements in that layer are covered by a higher z-index

DevX - Software Development Resource

Running Out-of-Process Components

To run executables and objects from Word and Excel from Active Server Pages, you need to change the value of an IIS4 Metabase property called AspAllowOutOfProcComponents to True. The easiest

DevX - Software Development Resource

Limit Your Cookie Size

There are a number of important limitations on the use of cookies by Web site developers. This is because cookies are intended to be used only for infrequent storage of

DevX - Software Development Resource

Visual InterDev: Data Sources Names

For Visual InterDev to work properly, you need to duplicate the data source names (DSNs). The trouble is that, in Visual InterDev 1.0 (VID), the workstation and the Web server

DevX - Software Development Resource

Same Layer Over Different Frames

Question: Is there a way to place and/or move a layer over different frames? I have a menu-frame on the left and a main-frame on the right. Now I’m trying

DevX - Software Development Resource

Percentage of whole, upon a group

Question: Is it possible to display a grouped column as a percentage of the whole? Say I have a table that has two fields: ACCESS_TYP CHRG————————- 10 1.00 10 2.00

DevX - Software Development Resource

Programming

Question: What is the best path to follow if I wanted to learn to program? (VB, then assembly, then …)I need to know what to start with so I can

DevX - Software Development Resource

Overloading + operator

Question: I’ve been working on the + operator in my string class. I came across an interesting dilemma: the following code doesn’t call any of my + operators.For example: String

DevX - Software Development Resource

Menus

Question: A book I have purchased on C++ programming describes how to make menus. It says to use the Resource Workshop that came with my Borland 4.0 compiler. However, whenever

DevX - Software Development Resource

Error, stack overflow

Question: I work in Borland C++. My program compiles very well, but it exits it with the “stack overflow” error even before executing the first command. Answer: It won’t be

DevX - Software Development Resource

C++ origins

Question: Who invented C++, and why is it so popular? Answer: C++ was created as an extension to C by AT&T researcher Bjarne Stroustrup, who built the first version of

DevX - Software Development Resource

Direct Linked Librarys

Question: I do a lot of programming in Visual Basic 5. I develop my own components and DLLs. Most of the components I develop are for use with PC data

DevX - Software Development Resource

Switches

Question: I’m attempting to write a command line program which has switch functionality (such as the DOS switches). I’m not sure how to code the program to accept the switches

DevX - Software Development Resource

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

DevX - Software Development Resource

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

DevX - Software Development Resource

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

DevX - Software Development Resource

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

DevX - Software Development Resource

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

DevX - Software Development Resource

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

DevX - Software Development Resource

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

DevX - Software Development Resource

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

DevX - Software Development Resource

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” _

DevX - Software Development Resource

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

DevX - Software Development Resource

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

DevX - Software Development Resource

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