Click here to Skip to main content
15,920,896 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Golden Rule in Programming... Pin
Alexander M.,1-Apr-05 11:44
Alexander M.,1-Apr-05 11:44 
GeneralRe: Golden Rule in Programming... Pin
Anonymous1-Apr-05 17:05
Anonymous1-Apr-05 17:05 
GeneralRe: Golden Rule in Programming... Pin
Anonymous1-Apr-05 21:07
Anonymous1-Apr-05 21:07 
GeneralRe: Golden Rule in Programming... Pin
Tareq Ahmed Siraj1-Apr-05 23:04
Tareq Ahmed Siraj1-Apr-05 23:04 
GeneralDisable chime sound in MFC Pin
skonopa1-Apr-05 11:01
skonopa1-Apr-05 11:01 
GeneralRe: Disable chime sound in MFC Pin
Michael Dunn1-Apr-05 16:43
sitebuilderMichael Dunn1-Apr-05 16:43 
GeneralRe: Disable chime sound in MFC Pin
skonopa4-Apr-05 3:29
skonopa4-Apr-05 3:29 
GeneralSubstituting in an if statement Pin
Cpt Rick1-Apr-05 9:24
Cpt Rick1-Apr-05 9:24 
How does one substitute a string for a comparison in an if statement?

Example-Normally I would do this:

if( sTitle.Find(sStr) != -1 )

But it could be:

if( sPhone.Find(sStr) != -1 ) or maybe,
if( sTitle.Find(sStr) != -1 || sPhone.Find(sStr) != -1 )

I can easily build a string for the criteria, but I can't seem to figure out how to get that actual value put in the if statement.

If I do this:

CString myString = "sPhone.Find(sStr) != -1"

use if( *myString ), It doesn't work... Frown | :(

Probably because it's only the first char pointed to.

I think I've been looking at this far too long to make any objective sense out of it anymore, and my brain pointer is NULL!

Help...

GeneralRe: Substituting in an if statement Pin
Maximilien1-Apr-05 9:49
Maximilien1-Apr-05 9:49 
GeneralRe: Substituting in an if statement Pin
Cpt Rick1-Apr-05 10:07
Cpt Rick1-Apr-05 10:07 
GeneralRe: Substituting in an if statement Pin
Blake Miller1-Apr-05 12:05
Blake Miller1-Apr-05 12:05 
GeneralRe: Substituting in an if statement Pin
Michael Dunn1-Apr-05 16:46
sitebuilderMichael Dunn1-Apr-05 16:46 
GeneralMemory Leaks Pin
Grahamfff1-Apr-05 9:16
Grahamfff1-Apr-05 9:16 
GeneralRe: Memory Leaks Pin
Alexander M.,1-Apr-05 9:54
Alexander M.,1-Apr-05 9:54 
GeneralRe: Memory Leaks Pin
Maximilien1-Apr-05 9:55
Maximilien1-Apr-05 9:55 
GeneralRe: Memory Leaks Pin
David Crow1-Apr-05 9:56
David Crow1-Apr-05 9:56 
GeneralC++ Help Pin
BRIMID1-Apr-05 8:34
BRIMID1-Apr-05 8:34 
GeneralRe: C++ Help Pin
Alexander M.,1-Apr-05 9:56
Alexander M.,1-Apr-05 9:56 
GeneralRe: C++ Help Pin
NewbieStats1-Apr-05 10:51
NewbieStats1-Apr-05 10:51 
GeneralRe: C++ Help Pin
namaskaaram3-Apr-05 23:50
namaskaaram3-Apr-05 23:50 
GeneralRe: C++ Help Pin
FlyingTinman4-Apr-05 12:57
FlyingTinman4-Apr-05 12:57 
GeneralClass with CRect / CPoint Variable Pin
Anonymous1-Apr-05 5:13
Anonymous1-Apr-05 5:13 
GeneralRe: Class with CRect / CPoint Variable Pin
Anonymous1-Apr-05 5:24
Anonymous1-Apr-05 5:24 
GeneralRe: Class with CRect / CPoint Variable Pin
David Crow1-Apr-05 5:29
David Crow1-Apr-05 5:29 
GeneralRe: Class with CRect / CPoint Variable Pin
poiut1-Apr-05 6:03
poiut1-Apr-05 6:03 

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.