Click here to Skip to main content
16,011,170 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: !!!! Pin
Joaquín M López Muñoz19-Sep-02 10:22
Joaquín M López Muñoz19-Sep-02 10:22 
GeneralRe: !!!! Pin
Mazdak19-Sep-02 19:28
Mazdak19-Sep-02 19:28 
GeneralRefreshing a dialog Pin
Brad Jennings19-Sep-02 10:00
Brad Jennings19-Sep-02 10:00 
GeneralRe: Refreshing a dialog Pin
Joaquín M López Muñoz19-Sep-02 10:20
Joaquín M López Muñoz19-Sep-02 10:20 
GeneralError when use IDiskQuotaUser interface. Pin
Anonymous19-Sep-02 9:56
Anonymous19-Sep-02 9:56 
GeneralRe: Error when use IDiskQuotaUser interface. Pin
Lakitu19-Sep-02 23:32
Lakitu19-Sep-02 23:32 
GeneralT2W Pin
ns19-Sep-02 9:29
ns19-Sep-02 9:29 
GeneralRe: T2W Pin
Joaquín M López Muñoz19-Sep-02 9:40
Joaquín M López Muñoz19-Sep-02 9:40 
T2W converts from TCHAR strings to Unicode strings. Next obvious question is, what are TCHARs? Well, TCHAR is a macro resolving either to char or wchar_t (Unicode character), depending on whether your app is being build in ANSI or Unicode mode. If in Unicode mode, T2W converts from Unicode to Unicode, i.e, it does nothing, but this apparent futility have some sense if you consider that this way the same source code can compile fine in either mode.
In your particular case, your source string is ANSI (char *), which has the following implications:
  1. This will only work in ANSI mode (in Unimode, T2W will accept only Unimode strings).
  2. Taking into account the former, you could have used A2W (ANSI to Unicode) instead
So, I'd label this as a small flaw in the code. You'de be better off using TCHAR * as the type of strFile if pursuing Unicode compatibility.

Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
GeneralRe: T2W Pin
ns19-Sep-02 9:59
ns19-Sep-02 9:59 
GeneralRe: T2W Pin
Joaquín M López Muñoz19-Sep-02 10:19
Joaquín M López Muñoz19-Sep-02 10:19 
GeneralRe: T2W Pin
ns19-Sep-02 10:25
ns19-Sep-02 10:25 
GeneralDbl Click in control - DateTimePicker Pin
john john mackey19-Sep-02 9:07
john john mackey19-Sep-02 9:07 
GeneralRe: Dbl Click in control - DateTimePicker Pin
john john mackey19-Sep-02 9:08
john john mackey19-Sep-02 9:08 
GeneralOnInitDialog question Pin
ns19-Sep-02 9:02
ns19-Sep-02 9:02 
GeneralRe: OnInitDialog question Pin
TyMatthews19-Sep-02 9:28
TyMatthews19-Sep-02 9:28 
GeneralRe: OnInitDialog question Pin
ns19-Sep-02 9:37
ns19-Sep-02 9:37 
GeneralRe: OnInitDialog question Pin
TyMatthews19-Sep-02 9:58
TyMatthews19-Sep-02 9:58 
GeneralRe: OnInitDialog question Pin
ns20-Sep-02 11:25
ns20-Sep-02 11:25 
GeneralRe: OnInitDialog question Pin
TyMatthews20-Sep-02 12:41
TyMatthews20-Sep-02 12:41 
GeneralWow! Thanks!!! Pin
ns20-Sep-02 12:53
ns20-Sep-02 12:53 
GeneralRe: Wow! Thanks!!! Pin
TyMatthews20-Sep-02 13:05
TyMatthews20-Sep-02 13:05 
GeneralRe: OnInitDialog question Pin
Joaquín M López Muñoz19-Sep-02 9:30
Joaquín M López Muñoz19-Sep-02 9:30 
Generalparent IShellFolder on windows 98 Pin
luc219-Sep-02 8:24
luc219-Sep-02 8:24 
GeneralRe: parent IShellFolder on windows 98 Pin
Joaquín M López Muñoz19-Sep-02 9:48
Joaquín M López Muñoz19-Sep-02 9:48 
GeneralRe: parent IShellFolder on windows 98 Pin
luc219-Sep-02 23:27
luc219-Sep-02 23:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.