Another Way To Debug ActiveX EXE Components
An easy way to debug ActiveX EXE Components is to run ActiveX EXE project in the IDE VB environment and then run your client application or client project. But before
An easy way to debug ActiveX EXE Components is to run ActiveX EXE project in the IDE VB environment and then run your client application or client project. But before
You can use #ifdef & #endif to comment out a block of code that already has multi-line comments.For example: #ifdef COMMENTThis #ifdef removes all nested Code & Comments Code…/* Comments…*/
A linked list is a dynamically created area where data can be stored. It contains certain algorithms for collecting data (alphabetically, numerically, etc.). This is like an array but an
You can do this while testing a true/false condition that has a set third variable as shown in following loop: if ( x < y) z = true; else z
You can declare the counter of even the most deeply nested loop as a ‘register’ variable. For example: for (int i = 0; i < 100; ++i){ for (register int
If you are using MS Visual C++ to develop your application or DLL, then this may help. MS Visual C++ 6.0 introduces new linker optimization options: /OPT:WIN98, which is set
Global inline functions, consts and typedefs have internal linkage.That means that the declarations in these two files do not interfere with each other: //File1.c typedef int T; const int a
This tips explains how to list members in an initialization list in the order in which they are declared. Take a class Array: class Array {private: int *m_piData; // ptr
rue to its word, on June 18, Microsoft released Visual Studio.NET Beta 2 to the eagerly awaiting attendees of Tech?Ed 2001 in Atlanta. The availability of this second (and last?)
s the first new commercial language Microsoft has introduced since Visual Basic 1.0 in 1991 (FoxPro was acquired in June 1992), C# is quickly garnering heavy attention from interested spectators
Enum mbOfficeAppConstants mbWord = 0 mbAccess = 1 mbExcel = 2 mbPowerpoint = 3 mbOutlook = 4End Enum’ Check whether the specified Office application is present’ Note: require GetRegistryValue” Example:’
Unlike most other software on this site, this is NOT a utility for developers. Instead, it is the classic memory cards game, but with Simpsons and Disney’s characters: the purpose
If you search the Web and the various articles in magazines and MSDN you can find a lot of documentation about the fastest way of reading an XML document. Speaking
Private Type MP3TagInfo tag As String * 3 title As String * 30 artist As String * 30 album As String * 30 year As String * 4 comment As
‘ Synchronize two directory subtrees” This routine compares source and dest directory trees and copies files’ from source that are newer than (or are missing in) the destination directory’ if
‘ Synchronize two directories” This routine compares source and dest directories and copies files’ from source that are newer than (or are missing in) the destination directory’ if TWOWAYSYNC is
Enum CompareDirectoryEnum cdeSourceDirOnly = -2 ‘ file is present only in the source directory cdeDestDirOnly = -1 ‘ file is present only in the dest directory cdeEqual = 0 ‘
Private Declare Function GetFileSecurity Lib “advapi32.dll” Alias _ “GetFileSecurityA” (ByVal lpFileName As String, ByVal RequestedInformation _ As Long, pSecurityDescriptor As Byte, ByVal nLength As Long, _ lpnLengthNeeded As Long) As
Private Const MAX_PATH = 260Private Type SHFILEINFO hIcon As Long iIcon As Long dwAttributes As Long szDisplayName As String * MAX_PATH szTypeName As String * 80End TypePrivate Declare Function SHGetFileInfo
Universal Data link files are handy for select data sources but there isn’t a way to create/edit this files. This little class shows how to read/write a UDL file. ‘———————–‘
‘ve been listening with interest to the reactions that VB programmers have had to the new VB.NET environment and have been surprised to hear so many complain that VB.NET is
The Regular Expression Tester Add-in is a VB6 add-in that lets you test a VBScript regular expression without having to create a quick-and-dirty VB test program just for that. You
When parsing a text file that contains quoted strings – such as a VB source file – you might want to quickly locate and extract all the quoted strings. Thanks
Regular expressions offer an extremely powerful way to search and replace text inside a string using sophisticated search criteria, far behind the capabilities of VB’s InStr and Replace functions. For
A Visual Basic function that counts the number of words in a sentence or text file can become quickly very complex, and usually doesn’t execute fast enough for most purposes.
The following routine extracts all the words from a source string and returns a collection. Optionally, the result contains only unique words.This code is remarkably simpler than an equivalent “pure”
By changing the WS_CHILD style bit of a window, you can make it appear as if it is disabled, even if the form is fully active and functional. These are
Suppose you have an aggregate, i.e., a struct or a union that contain another struct as a member: struct A{ int x; int y;};union B{ A var1; float var2;}; Can
The std::auto_ptr class template handles only a pointer to a single object. This is because it uses scalar delete, never delete[], to destroy the owned object. Therefore, binding auto_ptr to
The Standard Library defines several template adaptors for function pointers. The std::pointer_to_unary_function class template encapsulates a pointer to a single argument function. std::pointer_to_unary_function overloads the () operators so that you