Search Wiki:
Resource Page Description
A macro for Visual Studio, that decorates strings in C/C++ source code, to make them Unicode-aware, using _T() or TEXT() decoration.


This is a macro for Visual Studio, that allows decorating C/C++ string literals in source code, to make string literals Unicode-aware.
It is possible to decorate using _T() or TEXT().

See comments in the beginning of the source code for more details on macro usage.

(This macro also supports Undo.)

I developed this macro using Visual Studio 2008, but I think it should work also with previous versions of Visual Studio IDE (like Visual Studio 2005).

Suppose that you are in source code, and you have just finished typing a string literal:

"hello"<cursor>

if you assign that macro to a short-cut key (e.g. CTRL+<something>), if you type that short-cut key on the keyboard, the string gets decorated, e.g.

_T("hello")<cursor>


Giovanni Dicanio
Last edited May 30 2008 at 8:00 PM  by GiovanniD, version 4
Updating...
Page view tracker