Re: Unicode setting question

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



But it can't be too literal:

#include _T("myheader.h")
MYPROC p = (MYPROC)GetProcAddress(dll, _T("MyFunction"));
CStringA printercommand(_T("\33D07"));

would all be erroneous auto-completions.
joe
On Thu, 29 May 2008 10:01:56 -0700, "David Ching" <dc@xxxxxxxxxxxxxxxxxxxxxx> wrote:

"Mihai N." <nmihai_year_2000@xxxxxxxxx> wrote in message
news:Xns9AAD60C604468MihaiN@xxxxxxxxxxxxxxxx
Jokes aside, it is very easy to write a macro that takes the current
selection and adds _T() around it, and assign it the shortcut you want.


But selecting the string you just typed is as much trouble as manually
typing _T("") in the first place. What you really want is the IDE to look
for literal strings that when the terminating double-quote is typed, it
surrounds the entire string with the _T().

-- David

Joseph M. Newcomer [MVP]
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.



Relevant Pages

  • Re: BrowseForFolder
    ... WinXp and a for root file selection in Win2k. ... present on all installations and is exposed through the comdlg32.ocx file. ... UserOpenDlg.initialDir= string ...
    (microsoft.public.scripting.vbscript)
  • Re: Exporting excel to text file
    ... filenumber is just a new local variable which is going to hold the system ... >> Thank you so much for your help, the While statement and empty is ... The selection may very large as compared to what is ... >> 'Walk down each row and include it in the string if the cell is not ...
    (microsoft.public.excel.misc)
  • Re: Query using 3 listboxes
    ... Dim MyDB As DAO.Database ... Dim strWhere As String ... Dim varItem As Variant ... MsgBox "Please make a selection from each list",, "Selection ...
    (microsoft.public.access.formscoding)
  • Boolean value stored in a combobox!
    ... I use the stored values in tblStorage to set some kind of default value next ... cboMemberCard instead of an empty string. ... selection. ... Dim db As Database, rst As Recordset ...
    (microsoft.public.access.formscoding)
  • Re: Exporting excel to text file
    ... >> Thank you so much for your help, the While statement and empty is ... The selection may very large as compared to what is ... >> Open Filename For Output As #filenumber ... >> 'Walk down each row and include it in the string if the cell is not ...
    (microsoft.public.excel.misc)