The Latest

DevX - Software Development Resource

DPB and DCOM with Active Server Pages

Question: What threading model does DPB use? Apartment? I’d like to use PB to create MTS components for an Active Server Pages project. Do you foresee any problems? Any advice?

DevX - Software Development Resource

Application Start Directory

Question: My application is started by clicking an icon with a TARGET of “\itgcssd1sgrsv3.0132sgrs.exe” and a START IN directory of “c:winnt”. Is there any way to determine the TARGET location

DevX - Software Development Resource

Context-sensitive help

Question: When a user wants to find help on a column that has focus, I want that user to be able to hit F1, and help to be displayed based

DevX - Software Development Resource

PB 16-bit or 32-bit under PB4

Question: I have PB 4.0 installed under Windows NT. How do I tell if it is 16-bit or 32-bit PB? Answer: You can check the environment object for an ostype

DevX - Software Development Resource

To have or to hold?

Ownership in its OO sense relates to the responsibility for the creation and the destruction of an object. An object (in its broader sense) is an owner of some other

DevX - Software Development Resource

The do’s and don’ts of typedefs

Typedefs can be used to enhance portability by hiding the underlying type of an more abstract entity. For instance, when maximal precision of a floating point is required, one type

DevX - Software Development Resource

New cast operators

C++ still supports C-style type casting in the form of ‘(T) e’ as in: int i = (int) 7.333; Nonetheless, this casting notation is not recommended. What is amiss with

DevX - Software Development Resource

Exception handlers hierarchy

It’s handy to catch potential exceptions in a bottom-down hierarchy: specific exceptions are handled first, then groups of exceptions and finally, a catch-all handler: #include //std::except is the base class

DevX - Software Development Resource

Dynamic Crystal Groups

Often, when adding Crystal reports to your system, you’ll find that userswant the same basic report grouped different ways, like sales reports bycustomer state or salesman or region, and so

DevX - Software Development Resource

SQL Database setup

Question: I am writing a CGI program to query an SQL database for a client’s information. I will then create a Microsoft Access database from this querry to pass to

DevX - Software Development Resource

Arithmetic functions in SQL

Question: How do you create or access arithmetic functions like INT, MOD, or SQRT for use in Microsoft SQL Server? Answer: SQL Server supports math functions including SQRT, CEIL, FLOOR,

DevX - Software Development Resource

Descending index on SQL

Question: How can I create an index in descending order? How can I order data in descending order with “Order By”? I’m using MS SQL Server 6.5. Answer: When you

DevX - Software Development Resource

Select

Question: I have a table with three columns. The first, an integer type, is the primary key that is automatically increased by one every time a new row is inserted.

DevX - Software Development Resource

Windows NT 4.0 and Oracle Light

Question: Is the following notification error an NT or an Oracle problem? nt.stp(633): permission_denied while copying key softwareoracleoracle_homes How how can I fix it? Answer: This sounds like a NT

DevX - Software Development Resource

Windows 95/NT

Question: How does Windows know the default browser settings? Answer: I can think of two possible answers to the question. If you are asking how IE knows whether or not

DevX - Software Development Resource

NT API

Question: I am trying to use the CreateProcessAsUser API function. If I put the declaration found in the win32api.txt, the program responds, “Can’t found DLL entry point” (Lib kernel32 function

DevX - Software Development Resource

FPNW

Question: I have 130 users on my Novell side and I want them to be able to use all of the printer on my NT side. How can I authenticate

DevX - Software Development Resource

Error message

Question: I have two hard drives. I have 95 on C and want to install NT on E. I have 1.99 gig on D and E Free. I would like

DevX - Software Development Resource

NT Server Local Groups

Question: I would like to be able to gain access to NT server local groups for enum, member enum, add member, delete member. We have a lot of servers as

DevX - Software Development Resource

IS Administrator

Question: Can I check if the user running the application has either local machine or domain administrative privileges? I have a piece of code which does this in C++ ,

DevX - Software Development Resource

File System

Question: Is there a fixed limit on the number of files or folders that an NTFS or FAT directory may contain? Is there a practical limit on the number of

DevX - Software Development Resource

How do I delete the _vti_ directory?

Question: Hi, I set up a web project using Microsoft Personal Web Server using InterDev 1.0 on my Windows 95 computer and now I can not delete the Websharedirectory! When

DevX - Software Development Resource

Visual InterDev and the server

Question: I was wondering how Visual InterDev communicates with the server to publish the information there. I’m pretty sure it uses some form of TCP/IP, but was wondering what protocol

DevX - Software Development Resource

Project-Wide Configuration Management

Configuration management tools (for example, PVCS, Visual SourceSafe) are not just for source code. Use your configuration management tool for storing design documents, prototypes, incremental builds, test scripts, and important

DevX - Software Development Resource

The C++ Keywords

The Standard C++ keywords are: asm auto bool break case catch char class const const_cast continue default delete do double dynamic_cast else enum explicit export extern false float for friend

DevX - Software Development Resource

A Using Declaration and a Using Directive

A namespace is a scope in which declarations and definitions are grouped together. In order to refer to any of these from another scope, a full qualified name is required.

DevX - Software Development Resource

What’s in a “deprecated feature”?

C++ has been around for more than 15 years. During that long period it has been significantly extended, improved, and standardized. One of the consequences of any standardization process is

DevX - Software Development Resource

Built-in types have a constructor

In standard C++ built-in types such as char, int and float can be initialized like any ordinary user-defined type: char *pc = new char(‘a’); int pi= new int(10); float pf