boost::format
std::string portKeyString= (boost::format("Vid_%04x&Pid_%04x&Mi_00\\%s_00\\Device Parameters\\") % vid % pid % ser).str();
A place to collect the random tidbits of information about the technology I use, buy, and make.
#get the current revision number of the subversion repository
RepositoryRev=`svn info . | awk '/Revision:/ {print $2}'`
# count the number of modified files from the subversion repository
modifiedFileCount=`svn status .. | awk '/^M/ {numModified++} END {print numModified}'`
Labels: unix
Labels: svn
IDI_ICON1 ICON DISCARDABLE "yourApp.ico"
/////////////////////////////////////////////////////////////////////////////
//
// Version
//
#include "winver.h"
VS_VERSION_INFO VERSIONINFO
FILEVERSION 1,0,0,1
PRODUCTVERSION 1,0,0,1
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
#else
FILEFLAGS 0x0L
#endif
FILEOS 0x4L
FILETYPE 0x1L
FILESUBTYPE 0x0L
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904b0"
BEGIN
VALUE "Comments", "Sample Application\0"
VALUE "CompanyName", "Microsoft Corp.\0"
VALUE "FileDescription", "MyProject MFC Application\0"
VALUE "FileVersion", "1, 0, 0, 1\0"
VALUE "InternalName", "MyProject\0"
VALUE "LegalCopyright", "Copyright (C) 1999\0"
VALUE "OriginalFilename", "MyProject.EXE\0"
VALUE "ProductName", "MyProject Application\0"
VALUE "ProductVersion", "1, 0, 0, 1\0"
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x409, 1200
END
END
std::auto_ptr p(new int(42)) //ok
std::auto_ptr q;
std::auto_ptr r;
q = std::auto_ptr(new int(23)); //ok
r = new int(23); //BAD BAD