Browse by Tags

All Tags » Visual C++ in Short (RSS)
Sorry, but there are no more tags available to filter with.

Visual C++ in Short: Unblock downloaded applications

Raymond Chen published an article earlier this week about ShellExecute hooks and it reminded me of a shell hook of sorts that still exists in Windows Vista despite Raymond’s very good argument that shell hooks are often used for evil and certainly can...
Posted by KennyKerr | 12 comment(s)
Filed under:

Visual C++ in Short: Determining whether a path refers to a file system object

If you’ve been programming Windows for a while (prior to Windows 2000) you may well have come across a number of techniques to determine whether a path refers to a file system object such as a file or directory. One approach is to check the result of...
Posted by KennyKerr | 11 comment(s)
Filed under:

Visual C++ in Short: Converting between Unicode and UTF-8

The Windows SDK provides the WideCharToMultiByte function to convert a Unicode, or UTF-16, string ( WCHAR* ) to a character string ( CHAR* ) using a particular code page. Windows also provides the MultiByteToWideChar function to convert a character string...
Posted by KennyKerr | 2 comment(s)
Filed under:

Visual C++ in Short: Encoding and decoding with Base64

Base64 is a popular encoding to convert arbitrary data into a format that can be transmitted as an ASCII string. ATL provides a few functions that implement the Base64 specification. To encode with Base64, start by allocating a buffer large enough to...
Posted by KennyKerr | with no comments
Filed under:

Visual C++ in Short: Converting between numbers and strings

C++ developers have a number of options available to them for converting between numbers and strings, few of which are very appealing. Most developers are familiar with the likes of atoi and itoa from the C Run-Time Library. The main problem is that these...
Posted by KennyKerr | 4 comment(s)
Filed under:

Visual C++ in Short: Regular Expressions

ATL includes a lightweight regular expression implementation. Although originally part of Visual C++, it is now included with the ATL Server download. The CAtlRegExp class template implements the parser and matching engine. Its single template argument...
Posted by KennyKerr | 8 comment(s)
Filed under:
More Posts