Click here to Skip to main content
15,926,281 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: error of using IID_IHTMLInputElement Pin
ThatsAlok12-Mar-07 0:34
ThatsAlok12-Mar-07 0:34 
Question[Message Deleted] Pin
devvvy11-Mar-07 17:38
devvvy11-Mar-07 17:38 
AnswerRe: CMap, CString and pointers... Pin
Steve Echols11-Mar-07 16:51
Steve Echols11-Mar-07 16:51 
AnswerRe: CMap, CString and pointers... Pin
John R. Shaw11-Mar-07 18:06
John R. Shaw11-Mar-07 18:06 
GeneralRe: CMap, CString and pointers... Pin
John R. Shaw11-Mar-07 19:30
John R. Shaw11-Mar-07 19:30 
GeneralRe: CMap, CString and pointers... Pin
John R. Shaw11-Mar-07 19:36
John R. Shaw11-Mar-07 19:36 
GeneralRe: CMap, CString and pointers... Pin
John R. Shaw11-Mar-07 22:40
John R. Shaw11-Mar-07 22:40 
GeneralRe: CMap, CString and pointers... Pin
John R. Shaw11-Mar-07 23:04
John R. Shaw11-Mar-07 23:04 
Norm,

The piece of code you are showing me shows how it is used after ‘p_strToken’ is assigned to point to a variable of type CString. If you are not assigning it, making it point to a variable of that type, before you use it then the only thing that is saving you from a systems crash is because modern systems have the option of only crashing your application. This line of code 'CString * p_strToken = NULL' says that it points to nothing and this line of code '*p_strToken += ch;' says we assume that it is pointing to something. The question remains that you have not shown any code where you assign ‘p_strToken’ to point to anything but air, which means the line you highlighted will probably cause the compiler to give an error message. If it does not then something bad usually follows, other than the garbage output you mentioned.


INTP
"Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra

GeneralSTART HERE please. Pin
devvvy12-Mar-07 22:07
devvvy12-Mar-07 22:07 
QuestionRe: CMap, CString and pointers... Pin
prasad_som11-Mar-07 18:37
prasad_som11-Mar-07 18:37 
AnswerRe: CMap, CString and pointers... Pin
prasad_som11-Mar-07 18:49
prasad_som11-Mar-07 18:49 
QuestionHow to convert a html to bmp? Pin
yeahe8311-Mar-07 16:16
yeahe8311-Mar-07 16:16 
AnswerRe: How to convert a html to bmp? Pin
John R. Shaw11-Mar-07 17:05
John R. Shaw11-Mar-07 17:05 
QuestionRe: How to convert a html to bmp? Pin
Hamid_RT11-Mar-07 18:57
Hamid_RT11-Mar-07 18:57 
GeneralRe: How to convert a html to bmp? Pin
yeahe8311-Mar-07 19:34
yeahe8311-Mar-07 19:34 
GeneralRe: How to convert a html to bmp? Pin
John R. Shaw11-Mar-07 20:23
John R. Shaw11-Mar-07 20:23 
GeneralRe: How to convert a html to bmp? Pin
yeahe8311-Mar-07 21:38
yeahe8311-Mar-07 21:38 
GeneralRe: How to convert a html to bmp? Pin
John R. Shaw11-Mar-07 23:22
John R. Shaw11-Mar-07 23:22 
AnswerRe: How to convert a html to bmp? Pin
ThatsAlok11-Mar-07 22:18
ThatsAlok11-Mar-07 22:18 
GeneralRe: How to convert a html to bmp? Pin
yeahe8312-Mar-07 23:53
yeahe8312-Mar-07 23:53 
QuestionMFC problem Pin
Ali Tavakol11-Mar-07 15:07
Ali Tavakol11-Mar-07 15:07 
AnswerRe: MFC problem Pin
Stephen Hewitt11-Mar-07 16:04
Stephen Hewitt11-Mar-07 16:04 
GeneralRe: MFC problem Pin
John R. Shaw11-Mar-07 17:20
John R. Shaw11-Mar-07 17:20 
Questionchar* p and char *p ....Difference ? Pin
Software_Specialist11-Mar-07 14:00
Software_Specialist11-Mar-07 14:00 
AnswerRe: char* p and char *p ....Difference ? Pin
Mike_V11-Mar-07 14:10
Mike_V11-Mar-07 14:10 

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.