Click here to Skip to main content
15,900,973 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralGet a string from char pointer Pin
CodingLover12-Feb-08 19:10
CodingLover12-Feb-08 19:10 
GeneralRe: Get a string from char pointer Pin
ShilpiP12-Feb-08 19:42
ShilpiP12-Feb-08 19:42 
GeneralRe: Get a string from char pointer Pin
CodingLover12-Feb-08 19:47
CodingLover12-Feb-08 19:47 
GeneralRe: Get a string from char pointer Pin
ShilpiP12-Feb-08 20:09
ShilpiP12-Feb-08 20:09 
GeneralRe: Get a string from char pointer Pin
CodingLover12-Feb-08 20:44
CodingLover12-Feb-08 20:44 
GeneralRe: Get a string from char pointer Pin
flip12-Feb-08 19:42
flip12-Feb-08 19:42 
GeneralRe: Get a string from char pointer Pin
CodingLover12-Feb-08 19:56
CodingLover12-Feb-08 19:56 
GeneralRe: Get a string from char pointer Pin
David Crow13-Feb-08 3:28
David Crow13-Feb-08 3:28 
Eranga Thennakoon wrote:
But still it gives only the first letter.


That's because you are confused between Unicode and ANSI strings. All of the letters are there, but you are using the Watch window incorrectly. Try appending ,su to the variable.

"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman

"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne


GeneralRe: Get a string from char pointer Pin
CodingLover13-Feb-08 15:20
CodingLover13-Feb-08 15:20 
GeneralRe: Get a string from char pointer Pin
Iain Clarke, Warrior Programmer13-Feb-08 0:38
Iain Clarke, Warrior Programmer13-Feb-08 0:38 
GeneralRe: Get a string from char pointer Pin
CodingLover13-Feb-08 15:22
CodingLover13-Feb-08 15:22 
GeneralRe: Get a string from char pointer Pin
Iain Clarke, Warrior Programmer14-Feb-08 0:07
Iain Clarke, Warrior Programmer14-Feb-08 0:07 
GeneralNew to DLL Pin
Chandrasekharan P12-Feb-08 18:59
Chandrasekharan P12-Feb-08 18:59 
GeneralRe: New to DLL Pin
ShilpiP12-Feb-08 19:13
ShilpiP12-Feb-08 19:13 
GeneralRe: New to DLL Pin
Chandrasekharan P12-Feb-08 19:38
Chandrasekharan P12-Feb-08 19:38 
GeneralCreating stellar GUI Pin
act_x12-Feb-08 18:21
act_x12-Feb-08 18:21 
GeneralRe: Creating stellar GUI Pin
Iain Clarke, Warrior Programmer13-Feb-08 0:44
Iain Clarke, Warrior Programmer13-Feb-08 0:44 
QuestionHow Can repaint the views? [modified] Pin
Le@rner12-Feb-08 17:25
Le@rner12-Feb-08 17:25 
AnswerRe: How Can repaint the views? Pin
Swathee12-Feb-08 20:14
Swathee12-Feb-08 20:14 
GeneralRe: How Can repaint the views? Pin
Le@rner12-Feb-08 22:02
Le@rner12-Feb-08 22:02 
QuestionGET_X_LPARAM gives incorrect results inside WM_NOTIFY Pin
flip12-Feb-08 15:50
flip12-Feb-08 15:50 
GeneralRe: GET_X_LPARAM gives incorrect results inside WM_NOTIFY Pin
Iain Clarke, Warrior Programmer13-Feb-08 4:15
Iain Clarke, Warrior Programmer13-Feb-08 4:15 
GeneralRe: GET_X_LPARAM gives incorrect results inside WM_NOTIFY Pin
flip13-Feb-08 12:28
flip13-Feb-08 12:28 
GeneralRe: GET_X_LPARAM gives incorrect results inside WM_NOTIFY Pin
Iain Clarke, Warrior Programmer14-Feb-08 0:19
Iain Clarke, Warrior Programmer14-Feb-08 0:19 
GeneralRe: GET_X_LPARAM gives incorrect results inside WM_NOTIFY Pin
flip14-Feb-08 16:18
flip14-Feb-08 16:18 

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.