Click here to Skip to main content
15,892,575 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow Can I Get Text Under Mouse ? Pin
ngooduwcs17-Mar-07 15:37
ngooduwcs17-Mar-07 15:37 
AnswerRe: How Can I Get Text Under Mouse ? Pin
cp987617-Mar-07 16:23
cp987617-Mar-07 16:23 
GeneralRe: How Can I Get Text Under Mouse ? [modified] Pin
ngooduwcs17-Mar-07 17:12
ngooduwcs17-Mar-07 17:12 
QuestionRe: How Can I Get Text Under Mouse ? Pin
David Crow17-Mar-07 17:21
David Crow17-Mar-07 17:21 
AnswerRe: How Can I Get Text Under Mouse ? Pin
David Crow17-Mar-07 17:17
David Crow17-Mar-07 17:17 
AnswerRe: How Can I Get Text Under Mouse ? Pin
Michael Dunn17-Mar-07 18:35
sitebuilderMichael Dunn17-Mar-07 18:35 
QuestionHow can add a menu selection Pin
Member 378635617-Mar-07 14:59
Member 378635617-Mar-07 14:59 
Questionv. clear() ? Pin
Yonggoo17-Mar-07 8:25
Yonggoo17-Mar-07 8:25 
Hi all,

I am not sure of the following code.

vector<socket *="">::iterator it;
for(it = vecGuiInSockets.begin(); it != vecGuiInSockets.end(); ++it)
{
(*it)->cleanup_socket();
delete (*it);
it--;
}
vecGuiInSockets.clear();

First of all, what does the clear() clean?
Does it just clean the pointers to Socket,
or it cleans the object to which the pointer points?

Second, is the for() loop correctly done?

Thanks!


Yonggoo

AnswerRe: v. clear() ? Pin
toxcct17-Mar-07 8:53
toxcct17-Mar-07 8:53 
GeneralRe: v. clear() ? Pin
David Crow17-Mar-07 17:23
David Crow17-Mar-07 17:23 
GeneralRe: v. clear() ? Pin
toxcct17-Mar-07 22:00
toxcct17-Mar-07 22:00 
AnswerRe: v. clear() ? Pin
Stephen Hewitt18-Mar-07 0:23
Stephen Hewitt18-Mar-07 0:23 
QuestionChange the project font Pin
Joe Smith IX17-Mar-07 7:44
Joe Smith IX17-Mar-07 7:44 
AnswerRe: Change the project font Pin
PJ Arends17-Mar-07 10:53
professionalPJ Arends17-Mar-07 10:53 
GeneralRe: Change the project font Pin
Joe Smith IX17-Mar-07 18:19
Joe Smith IX17-Mar-07 18:19 
GeneralRe: Change the project font Pin
PJ Arends17-Mar-07 21:04
professionalPJ Arends17-Mar-07 21:04 
GeneralRe: Change the project font Pin
Joe Smith IX18-Mar-07 2:08
Joe Smith IX18-Mar-07 2:08 
QuestionRe: Change the project font Pin
David Crow17-Mar-07 17:25
David Crow17-Mar-07 17:25 
AnswerRe: Change the project font Pin
Joe Smith IX17-Mar-07 18:24
Joe Smith IX17-Mar-07 18:24 
GeneralRe: Change the project font Pin
David Crow18-Mar-07 16:25
David Crow18-Mar-07 16:25 
QuestionUNIX EOL on Visual Studio (VC++) 6.0 Pin
BengaluruTechie17-Mar-07 6:24
BengaluruTechie17-Mar-07 6:24 
AnswerRe: UNIX EOL on Visual Studio (VC++) 6.0 Pin
toxcct17-Mar-07 8:46
toxcct17-Mar-07 8:46 
QuestionException Handling... Pin
_808617-Mar-07 5:35
_808617-Mar-07 5:35 
AnswerRe: Exception Handling... Pin
Steve Echols17-Mar-07 6:32
Steve Echols17-Mar-07 6:32 
GeneralRe: Exception Handling... Pin
_808617-Mar-07 6:47
_808617-Mar-07 6:47 

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.