Click here to Skip to main content
15,893,668 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to declare Global Variable Pin
Rajesh R Subramanian19-Nov-09 20:01
professionalRajesh R Subramanian19-Nov-09 20:01 
GeneralRe: How to declare Global Variable Pin
CPallini19-Nov-09 21:15
mveCPallini19-Nov-09 21:15 
GeneralRe: How to declare Global Variable Pin
Tim Craig20-Nov-09 9:38
Tim Craig20-Nov-09 9:38 
GeneralRe: How to declare Global Variable Pin
CPallini20-Nov-09 20:28
mveCPallini20-Nov-09 20:28 
GeneralRe: How to declare Global Variable Pin
Tim Craig20-Nov-09 21:44
Tim Craig20-Nov-09 21:44 
AnswerRe: How to declare Global Variable Pin
Rajesh R Subramanian19-Nov-09 16:43
professionalRajesh R Subramanian19-Nov-09 16:43 
QuestionDelete CLISTCONTROL Item Pin
Paulraj G18-Nov-09 17:29
Paulraj G18-Nov-09 17:29 
AnswerRe: Delete CLISTCONTROL Item Pin
Code-o-mat18-Nov-09 20:34
Code-o-mat18-Nov-09 20:34 
First of all, you never seem to give any value to your string variables. But i will asssume you do somewhere in your code and this is just a stripped version so we see what those are. Then, what is the point of setting the itemtexts and after you done that, checking if you set them to a certain string and if you did then deleting them? Why not check first and set the items only if needed? Then, as i see, none of your string variables ever change in that loop, so it will either try to delete everything or nothing. Then, if you delete items in a for loop you should rather go from back to front, meaning -based on your code sniplet- for (int i=9;i>=0;i--)... because if you go in an "increasing order" then you will most likely skip items since when you delete an item, the index of all the other items after it will change but your loop variable doesn't take that into account.

p.s: please the next time you submit code, put it between code block tags, that is, <pre> and </pre>, this makes it much more readable, thanks.

> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Sometimes you just have to hate coding to do it well. <

AnswerRe: Delete CLISTCONTROL Item Pin
David Crow19-Nov-09 3:20
David Crow19-Nov-09 3:20 
QuestionDIB built by extracting 3 channels as RGB from multiband tiff is drawn wiredly in view Pin
jianzhuhuai18-Nov-09 16:12
jianzhuhuai18-Nov-09 16:12 
AnswerRe: DIB built by extracting 3 channels as RGB from multiband tiff is drawn wiredly in view Pin
Chris Losinger18-Nov-09 17:11
professionalChris Losinger18-Nov-09 17:11 
QuestionHow to prevent same program can open twice in windows? Pin
DevelopmentNoob18-Nov-09 14:24
DevelopmentNoob18-Nov-09 14:24 
AnswerRe: How to prevent same program can open twice in windows? Pin
Randor 18-Nov-09 15:00
professional Randor 18-Nov-09 15:00 
GeneralRe: How to prevent same program can open twice in windows? Pin
DevelopmentNoob19-Nov-09 18:59
DevelopmentNoob19-Nov-09 18:59 
QuestionTrouble building a dynamic string array. Coming from C# Pin
Mark Randel18-Nov-09 10:38
Mark Randel18-Nov-09 10:38 
AnswerRe: Trouble building a dynamic string array. Coming from C# [modified] Pin
«_Superman_»18-Nov-09 10:47
professional«_Superman_»18-Nov-09 10:47 
GeneralRe: Trouble building a dynamic string array. Coming from C# Pin
Mark Randel19-Nov-09 9:32
Mark Randel19-Nov-09 9:32 
GeneralRe: Trouble building a dynamic string array. Coming from C# Pin
Mark Randel19-Nov-09 9:34
Mark Randel19-Nov-09 9:34 
GeneralRe: Trouble building a dynamic string array. Coming from C# Pin
«_Superman_»19-Nov-09 9:42
professional«_Superman_»19-Nov-09 9:42 
QuestionHow to launch an application a file on double click in MFC? Pin
Software200718-Nov-09 8:28
Software200718-Nov-09 8:28 
AnswerRe: How to launch an application a file on double click in MFC? Pin
«_Superman_»18-Nov-09 8:31
professional«_Superman_»18-Nov-09 8:31 
AnswerRe: How to launch an application a file on double click in MFC? Pin
Maximilien18-Nov-09 8:52
Maximilien18-Nov-09 8:52 
GeneralRe: How to launch an application a file on double click in MFC? Pin
Software200718-Nov-09 9:29
Software200718-Nov-09 9:29 
QuestionRe: How to launch an application a file on double click in MFC? Pin
«_Superman_»18-Nov-09 9:37
professional«_Superman_»18-Nov-09 9:37 
AnswerRe: How to launch an application a file on double click in MFC? Pin
Software200718-Nov-09 9:48
Software200718-Nov-09 9:48 

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.