Click here to Skip to main content
16,011,383 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Array of Pointers to Surfaces Pin
Michael Dunn20-Jun-03 18:14
sitebuilderMichael Dunn20-Jun-03 18:14 
Questioncan i send a popup message by programming in windows 98? Pin
Hendy_So20-Jun-03 16:59
Hendy_So20-Jun-03 16:59 
AnswerRe: can i send a popup message by programming in windows 98? Pin
Ryan Binns21-Jun-03 1:01
Ryan Binns21-Jun-03 1:01 
GeneralRe: can i send a popup message by programming in windows 98? Pin
Hendy_So21-Jun-03 22:42
Hendy_So21-Jun-03 22:42 
GeneralRe: can i send a popup message by programming in windows 98? Pin
Ryan Binns21-Jun-03 22:46
Ryan Binns21-Jun-03 22:46 
QuestionHow to enable Unicode character support in CRichEdit control Pin
Saqib Razzaq20-Jun-03 14:34
Saqib Razzaq20-Jun-03 14:34 
QuestionHow to return NULL when return type is user defined Pin
Anonymous20-Jun-03 13:07
Anonymous20-Jun-03 13:07 
AnswerRe: How to return NULL when return type is user defined Pin
nfactorial20-Jun-03 13:24
nfactorial20-Jun-03 13:24 
Why are you returning a 'Point' anyway? Smile | :)
If it's found, they've already supplied the point in the first place, so the return result doesn't give them anything new except another point that matches the one they supplied.

Maybe a 'bool HasPoint( Point point )' method may suit your needs, or you could return an integer index into the array (and -1 if it doesn't exist)?

If you really do want to return a point for some reason then how about:

<br />
class Box<br />
{<br />
private:<br />
Point points[40];<br />
<br />
public:<br />
bool FindPoint( Point search, Point &result );<br />
};<br />


n!
GeneralRe: How to return NULL when return type is user defined Pin
Hashim Saleem20-Jun-03 13:37
Hashim Saleem20-Jun-03 13:37 
GeneralRe: How to return NULL when return type is user defined Pin
nfactorial20-Jun-03 13:47
nfactorial20-Jun-03 13:47 
GeneralRe: How to return NULL when return type is user defined Pin
Hashim Saleem20-Jun-03 14:13
Hashim Saleem20-Jun-03 14:13 
GeneralRe: How to return NULL when return type is user defined Pin
nfactorial20-Jun-03 14:37
nfactorial20-Jun-03 14:37 
GeneralRe: How to return NULL when return type is user defined Pin
Hashim Saleem20-Jun-03 15:06
Hashim Saleem20-Jun-03 15:06 
AnswerRe: How to return NULL when return type is user defined Pin
Neville Franks20-Jun-03 13:32
Neville Franks20-Jun-03 13:32 
Generaldrive information Pin
snipes20-Jun-03 12:48
snipes20-Jun-03 12:48 
GeneralRe: drive information Pin
kochhar20-Jun-03 18:45
kochhar20-Jun-03 18:45 
QuestionVisual C++ profiler? Pin
Marcus Spitzmiller20-Jun-03 11:44
Marcus Spitzmiller20-Jun-03 11:44 
AnswerRe: Visual C++ profiler? Pin
Saqib Razzaq20-Jun-03 12:28
Saqib Razzaq20-Jun-03 12:28 
GeneralRe: Visual C++ profiler? Pin
Marcus Spitzmiller20-Jun-03 15:43
Marcus Spitzmiller20-Jun-03 15:43 
QuestionHow to replace default keys behaivour in Edit control Pin
Saqib Razzaq20-Jun-03 10:42
Saqib Razzaq20-Jun-03 10:42 
AnswerRe: How to replace default keys behaivour in Edit control Pin
User 665820-Jun-03 10:48
User 665820-Jun-03 10:48 
GeneralRe: How to replace default keys behaivour in Edit control Pin
Saqib Razzaq20-Jun-03 11:12
Saqib Razzaq20-Jun-03 11:12 
GeneralRe: How to replace default keys behaivour in Edit control Pin
User 665820-Jun-03 11:23
User 665820-Jun-03 11:23 
GeneralSerialize Pin
Anthony988720-Jun-03 10:12
Anthony988720-Jun-03 10:12 
GeneralRe: Serialize Pin
Saqib Razzaq20-Jun-03 10:30
Saqib Razzaq20-Jun-03 10:30 

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.