Click here to Skip to main content
15,903,362 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralChild windows title Pin
14-Jul-01 2:43
suss14-Jul-01 2:43 
Questionhow do i get my EXE file path??? Pin
14-Jul-01 2:38
suss14-Jul-01 2:38 
AnswerRe: how do i get my EXE file path??? Pin
Brad Bruce14-Jul-01 2:58
Brad Bruce14-Jul-01 2:58 
GeneralMysterious dot Pin
14-Jul-01 2:36
suss14-Jul-01 2:36 
GeneralVisual C++ environment ... Pin
Hadi Rezaee14-Jul-01 1:38
Hadi Rezaee14-Jul-01 1:38 
GeneralRe: Visual C++ environment ... Pin
Anders Molin14-Jul-01 1:43
professionalAnders Molin14-Jul-01 1:43 
GeneralMP3 Streaming Pin
Matt Newman13-Jul-01 17:06
Matt Newman13-Jul-01 17:06 
GeneralCString::Replace hell Pin
James Millson13-Jul-01 16:55
James Millson13-Jul-01 16:55 
I am having a rather anoying problem with my CString's. Consider the following code:

CString strTest = _T("hello world");

ASSERT(strTest.Replace(_T("world"), _T("universe")) > 0)

ASSERT(strTest.Find(_T("world")) == -1)


Now, that the last ASSERT will always fail (indicating that "world" is present in the string). This can be verified by sticking an AfxMessageBox call in there too.

Why (or rather how) can this happen when the replace call always succeeds with one replacement. Confused | :confused:

Cheers,

James Millson
GeneralRe: CString::Replace hell Pin
Ben Burnett13-Jul-01 17:08
Ben Burnett13-Jul-01 17:08 
GeneralRe: CString::Replace hell Pin
Steve T13-Jul-01 18:56
Steve T13-Jul-01 18:56 
GeneralRe: CString::Replace hell Pin
Ben Burnett13-Jul-01 19:29
Ben Burnett13-Jul-01 19:29 
GeneralRe: CString::Replace hell Pin
James Millson13-Jul-01 21:40
James Millson13-Jul-01 21:40 
GeneralPassing ADO Connection from VB object to an VC Object Pin
13-Jul-01 16:20
suss13-Jul-01 16:20 
GeneralA little conversion... Pin
Kyle13-Jul-01 14:49
Kyle13-Jul-01 14:49 
GeneralRe: A little conversion... Pin
Ben Burnett14-Jul-01 7:00
Ben Burnett14-Jul-01 7:00 
GeneralCarriage Return vs. New Line Pin
John Uhlenbrock13-Jul-01 11:53
John Uhlenbrock13-Jul-01 11:53 
GeneralRe: Carriage Return vs. New Line Pin
stephen.hazel13-Jul-01 12:15
stephen.hazel13-Jul-01 12:15 
GeneralDao Database Creation Pin
otvac13-Jul-01 10:52
otvac13-Jul-01 10:52 
GeneralRe: Dao Database Creation Pin
Carlos Antollini13-Jul-01 11:07
Carlos Antollini13-Jul-01 11:07 
GeneralStreamOut / In Pin
Frank Deo13-Jul-01 10:29
Frank Deo13-Jul-01 10:29 
GeneralRe: StreamOut / In Pin
Tim Deveaux13-Jul-01 11:23
Tim Deveaux13-Jul-01 11:23 
GeneralRe: StreamOut / In Pin
Frank Deo13-Jul-01 11:28
Frank Deo13-Jul-01 11:28 
GeneralRe: StreamOut / In Pin
Tim Deveaux13-Jul-01 11:40
Tim Deveaux13-Jul-01 11:40 
GeneralRe: StreamOut / In Pin
Frank Deo13-Jul-01 11:52
Frank Deo13-Jul-01 11:52 
QuestionCCheckListBox?? Pin
SAV13-Jul-01 9:33
SAV13-Jul-01 9:33 

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.