Click here to Skip to main content
15,921,622 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralBreakpoint problem----howto use it in a loop Pin
Charles Liu28-Dec-01 6:58
Charles Liu28-Dec-01 6:58 
GeneralRe: Breakpoint problem----howto use it in a loop Pin
James R. Twine28-Dec-01 7:09
James R. Twine28-Dec-01 7:09 
GeneralRe: Breakpoint problem----howto use it in a loop Pin
Todd Smith28-Dec-01 13:34
Todd Smith28-Dec-01 13:34 
GeneralRe: Breakpoint problem----howto use it in a loop Pin
Nemanja Trifunovic28-Dec-01 7:15
Nemanja Trifunovic28-Dec-01 7:15 
GeneralGetDeviceCaps problems... Pin
Braulio Dez28-Dec-01 6:05
Braulio Dez28-Dec-01 6:05 
GeneralLoading a string from a binary file Pin
James Bird28-Dec-01 5:34
James Bird28-Dec-01 5:34 
GeneralRe: Loading a string from a binary file Pin
Nemanja Trifunovic28-Dec-01 5:44
Nemanja Trifunovic28-Dec-01 5:44 
GeneralRe: Loading a string from a binary file Pin
Daniel Lohmann28-Dec-01 5:53
Daniel Lohmann28-Dec-01 5:53 
No, your problem is a different one. It't the difference between "equal" and "same" you are falling over. The Statement

if (szTest == "BLABLABLA")



compares two character pointer if they are equal. Or in other words: The statement returns true, iff both string references refer to the same object (same address in memory). However, what you want to know is if the two strings are equal, which means that boths string buffers contain the same value. For this you need the strcmp() CRT call:

if( strcmp( szTest, "BLABLABLA" ) == 0 )




Daniel

--

Daniel Lohmann

http://www.losoft.de
GeneralRe: Loading a string from a binary file Pin
James R. Twine28-Dec-01 7:06
James R. Twine28-Dec-01 7:06 
GeneralTrying to get the size of A3... Pin
Braulio Dez28-Dec-01 4:35
Braulio Dez28-Dec-01 4:35 
GeneralRotating shapes Pin
bhat_adarsh28-Dec-01 4:24
bhat_adarsh28-Dec-01 4:24 
GeneralRe: Rotating shapes Pin
567890123430-Dec-01 1:08
567890123430-Dec-01 1:08 
GeneralMigrating from Win9x to Linux - PLEASE HELP! Pin
Sergei Yevseyev28-Dec-01 4:16
Sergei Yevseyev28-Dec-01 4:16 
GeneralRe: Migrating from Win9x to Linux - PLEASE HELP! Pin
Matt Newman28-Dec-01 4:31
Matt Newman28-Dec-01 4:31 
GeneralRe: Migrating from Win9x to Linux - PLEASE HELP! Pin
Nemanja Trifunovic28-Dec-01 5:25
Nemanja Trifunovic28-Dec-01 5:25 
GeneralRe: Migrating from Win9x to Linux - PLEASE HELP! Pin
Fazlul Kabir28-Dec-01 5:30
Fazlul Kabir28-Dec-01 5:30 
GeneralRe: Migrating from Win9x to Linux - PLEASE HELP! Pin
Ravi Bhavnani28-Dec-01 5:31
professionalRavi Bhavnani28-Dec-01 5:31 
GeneralRe: Migrating from Win9x to Linux - PLEASE HELP! Pin
Tomasso7-Jan-02 7:10
Tomasso7-Jan-02 7:10 
Generalaccess CRecordSet from another class Pin
jafrazee28-Dec-01 2:43
jafrazee28-Dec-01 2:43 
GeneralRe: access CRecordSet from another class Pin
Carlos Antollini28-Dec-01 3:05
Carlos Antollini28-Dec-01 3:05 
GeneralRe: access CRecordSet from another class Pin
jafrazee28-Dec-01 3:46
jafrazee28-Dec-01 3:46 
GeneralRe: access CRecordSet from another class Pin
Carlos Antollini28-Dec-01 5:07
Carlos Antollini28-Dec-01 5:07 
Questionhow can i DRAW in CVIEW:OnInitialUpdate() function? Pin
AnonymousBabe@usa.net28-Dec-01 2:08
AnonymousBabe@usa.net28-Dec-01 2:08 
AnswerRe: how can i DRAW in CVIEW:OnInitialUpdate() function? Pin
AnonymousBabe@usa.net28-Dec-01 6:07
AnonymousBabe@usa.net28-Dec-01 6:07 
AnswerRe: how can i DRAW in CVIEW:OnInitialUpdate() function? Pin
Shog928-Dec-01 8:58
sitebuilderShog928-Dec-01 8:58 

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.