Click here to Skip to main content
16,010,351 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
That's what I thought Confused | :confused: . I can only get it to pass on my system if I do:

CString strTemp = _T("hello world");
CString strTest = new CString(strTemp).GetBuffer(0);
ASSERT(strTest.Replace(_T("world"), _T("universe")) > 0)
ASSERT(strTest.Find(_T("world")) == -1)


And I don't know if that's a very good way of doing it.

And the problem only occurs in the current usuage (i.e. it works elsewhere in the project). But i've stepped backwards and forwards for hours and nothing else looks wrong, and nothing is there to indicate it is.

How very odd Frown | :(

Cheers

James Millson

p.s. Oh, and yes, I made up the actual text in the example above, but other than that it is the same. In both cases the equivalent of "world" should not be present in the string.
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 
AnswerRe: CCheckListBox?? Pin
Ben Burnett13-Jul-01 10:00
Ben Burnett13-Jul-01 10:00 
GeneralRe: CCheckListBox?? Pin
SAV14-Jul-01 0:25
SAV14-Jul-01 0:25 
GeneralRe: CCheckListBox?? Pin
Ben Burnett14-Jul-01 6:54
Ben Burnett14-Jul-01 6:54 
GeneralRe: CCheckListBox?? Pin
SAV14-Jul-01 9:41
SAV14-Jul-01 9:41 

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.