Click here to Skip to main content
15,891,431 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCString Stupidity Pin
carrie20-Aug-02 11:06
carrie20-Aug-02 11:06 
GeneralRe: CString Stupidity Pin
Mustafa Demirhan20-Aug-02 11:11
Mustafa Demirhan20-Aug-02 11:11 
GeneralRe: CString Stupidity Pin
carrie20-Aug-02 11:21
carrie20-Aug-02 11:21 
GeneralRe: CString Stupidity Pin
Mustafa Demirhan20-Aug-02 11:26
Mustafa Demirhan20-Aug-02 11:26 
GeneralRe: CString Stupidity Pin
Chris Losinger20-Aug-02 11:14
professionalChris Losinger20-Aug-02 11:14 
GeneralRe: CString Stupidity Pin
Ernest Laurentin20-Aug-02 11:17
Ernest Laurentin20-Aug-02 11:17 
GeneralRe: CString Stupidity Pin
PJ Arends20-Aug-02 13:21
professionalPJ Arends20-Aug-02 13:21 
GeneralRe: CString Stupidity Pin
Ernest Laurentin20-Aug-02 14:33
Ernest Laurentin20-Aug-02 14:33 
Hmmm... I was surprised by your comment since you are allocating twice memory than
necessary. sizeof(TCHAR)==1 for ASCII and 2 for _UNICODE build. I tried it with VS .NET and it works fine. It should work also with VS6. Confused | :confused: Confused | :confused:
BTW, I used lstrcpy in my example not strcpy!

VOTD: 23 "And this is his command: to believe in the name of his Son,
Jesus Christ, and to love one another as he commanded us."
- 1 John 3:23 (NIV)


GeneralRe: CString Stupidity Pin
Tim Smith20-Aug-02 15:12
Tim Smith20-Aug-02 15:12 
GeneralRe: CString Stupidity Pin
PJ Arends20-Aug-02 16:48
professionalPJ Arends20-Aug-02 16:48 
GeneralRe: CString Stupidity Pin
Daniel Turini20-Aug-02 11:19
Daniel Turini20-Aug-02 11:19 
GeneralRe: CString Stupidity Pin
carrie20-Aug-02 11:23
carrie20-Aug-02 11:23 
Generalget text of first item in Clistctrl without selecting it Pin
ns20-Aug-02 10:13
ns20-Aug-02 10:13 
GeneralRe: get text of first item in Clistctrl without selecting it Pin
dazinith20-Aug-02 10:24
dazinith20-Aug-02 10:24 
GeneralRe: get text of first item in Clistctrl without selecting it Pin
ns20-Aug-02 10:50
ns20-Aug-02 10:50 
GeneralFile Version Pin
act_x20-Aug-02 10:00
act_x20-Aug-02 10:00 
GeneralRe: File Version Pin
Dave Bryant20-Aug-02 10:26
Dave Bryant20-Aug-02 10:26 
GeneralCTreeCtrl and Selection Changed Event Pin
dazinith20-Aug-02 9:47
dazinith20-Aug-02 9:47 
GeneralRe: CTreeCtrl and Selection Changed Event Pin
Ernest Laurentin20-Aug-02 11:08
Ernest Laurentin20-Aug-02 11:08 
GeneralRe: CTreeCtrl and Selection Changed Event Pin
dazinith20-Aug-02 11:19
dazinith20-Aug-02 11:19 
GeneralRe: CTreeCtrl and Selection Changed Event Pin
Joel Lucsy21-Aug-02 12:38
Joel Lucsy21-Aug-02 12:38 
GeneralRe: CTreeCtrl and Selection Changed Event Pin
dazinith22-Aug-02 3:43
dazinith22-Aug-02 3:43 
GeneralHyperlink Question Pin
Onyme20-Aug-02 9:13
sussOnyme20-Aug-02 9:13 
GeneralRe: Hyperlink Question Pin
dazinith20-Aug-02 9:36
dazinith20-Aug-02 9:36 
GeneralRe: Hyperlink Question Pin
jmkhael20-Aug-02 9:45
jmkhael20-Aug-02 9:45 

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.