The Latest

DevX

GetOsqlPath – Get the path of the SQL Server’s OSQL.exe utility

‘ Get the path of the SQL Server’s OSQL.exe utilityFunction GetOsqlPath() As String Dim regKey As Microsoft.Win32.RegistryKey = _ Microsoft.Win32.Registry.LocalMachine.OpenSubKey( _ “SOFTWAREMicrosoftMicrosoft SQL Server80ToolsClientSetup”) If regKey Is Nothing Then Return

DevX

RegisterEnterpriseService – Register an Enterprise Service in the COM+ Catalog

‘ Register an Enterprise Service in the COM+ Catalog’ Note: requires a reference to the System.EnterpriseServices.dll assembly’ This version identify the enterprise service with its path’ Example: RegisterEnterpriseService(“C:TempTestService.dll”)Sub RegisterEnterpriseService(ByVal servicePath

DevX

GetSqlPlusPath – Get the path of the Oracle’s SqlPlus.exe utility

‘ Get the path of the Oracle’s SqlPlus.exe utilityFunction GetSqlPlusPath() As String Dim regKey As Microsoft.Win32.RegistryKey = _ Microsoft.Win32.Registry.LocalMachine.OpenSubKey(“SOFTWAREORACLE”) If regKey Is Nothing Then Return “” End If Dim sqlplusPath

DevX

How to Find 10 Million Developers

n the software industry, developers of smaller-scale workgroup applications haven’t exactly been tres chic. It’s true that Microsoft has taken very good care of this enormous universe of developers for

DevX

How to Build Custom Sink Providers for .NET Remoting

he remoting framework in .NET contains a feature set designed to support intra-process communications and application integration functions; however, for many applications the default remoting behaviors may not deliver all

DevX

Book Excerpt: Active Directory, 2nd Edition

ctive Directory is a common repository for information about objects that reside on the network, such as users and groups, computers and printers, and applications and files. The default Active

DevX

Timeline: Java in Retrospect

hen we first set out to document the full history of Java’s emergence and development, we knew we’d have an interesting and enjoyable time of it. From its conception in

DevX

Scaling Out With Object-Relational Mapping on .NET

long with the proliferation of the Internet and large-scale intranets, the requirements of enterprise applications have evolved. Launching a service in an expanding enterprise could put an ever-increasing load on

DevX

ChangeDriveIcon – Changing the icon of a drive

‘ Change the icon of a drive’ Example: ChangeDriveIcon(“d”, “c:myicon.ico”)Sub ChangeDriveIcon(ByVal driveLetter As String, ByVal icoPath As String) ‘ create the parent key Dim regKey As Microsoft.Win32.RegistryKey = _ Microsoft.Win32.Registry.LocalMachine.CreateSubKey(

DevX

Ask a Yes/no question and return a Boolean

‘ Ask a Yes/no question’ returns True if the user replies “Yes”‘ Example: MessageBox.Show(AskYesOrNo(“Do you like me?”, “ME”, True))Function AskYesOrNo(ByVal text As String, ByVal title As String, _ ByVal defaultAnswer

DevX

Print3D – Drawing a text with 3D effect

‘ Display a text with 3D effect” g: a Graphics object’ text: the text to be displayed’ coords: the Point with the X and Y coordinates’ col: the text color’

DevX

SemiCRC – A fast CRC-like algorithm

‘ Evaluate the 16-bit Checksum of an array of bytesFunction SemiCRC(ByVal source() As Byte) As Integer Dim crc, temp As Integer, i As Long Const divisor As Integer = 32768

DevX

Execute a SQL Server DTS Package Remotely

You can easily execute a SQL Server 7.0 Data Transformation Services (DTS) package from VB remotely: Create a DTS package. It can be an import from Excel into SQL Server.

DevX

Add Nonkeyboard Characters to Your Project

When creating a project or Web page, you sometimes need to use characters not included on your keyboardfor example, Related Posts How Can You Improve App Performance for a Better

DevX

Embed Quotation Marks

You use quotation marks in VB to define strings, but how do you include them in your output? Use whichever of these methods works the best for you: Dim strUseChr

DevX

Add Multicharacter Search Capability to Listboxes

Users often complain that listboxes don’t have the same multiple keypress search capabilities as treeviews and other objects. But you can simulate this behavior by adding code to a form

DevX

Moving Transaction Logs to a Different Drive

You can move a transaction log using SQL Server stored procedures. Simply detach the database, move the log file, then reattach the database. For example, to move the pubs database

DevX

Add Controls to a Project Quickly

VB’s Add File dialog supports only a single selection of code modules or OCXs, so you must painstakingly select each individual file and control one at a time. One of

DevX

String.valueOf or Integer.toString()?

Converting an integer to a string is a very common programming task. The most popular method for doing this are to use either String.valueOf(int) or Integer.toString(). Which one is better

DevX

Declaring Variables in C++

Say you want to store data for temporary use in a program. You will have to declare variables to input the data. Luckily, declaring variables in C++ is very easy.

DevX

Accessing DevX RSS Feeds

Frequently Asked Questions Selected News Readers Selected News Aggregators More RSS Resources Take me directly to the feeds! 1. Frequently Asked Questions What are DevX feeds? DevX offers access to

DevX

Read a Complete Text File in One Pass

Typically, you read and process a text file by using a loop and VB’s Line Input statement: Do While Not Eof(1) Line Input #1, myStringVar$ ‘ process the line hereLoop

DevX

Make Applications Stand the Test of Time

xperience suggests the working life of applications is enhanced if developers acknowledge the inherent requirements of standards-based development. For instance, if an application is based on emerging or evolving technology,