Click here to Skip to main content
15,890,527 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalwhere did I do wrong? (myString class) Please help! I have to turn in tomorrow Pin
foxele21-May-04 18:45
foxele21-May-04 18:45 
GeneralRe: where did I do wrong? (myString class) Please help! I have to turn in tomorrow Pin
Maxwell Chen21-May-04 21:39
Maxwell Chen21-May-04 21:39 
GeneralRe: where did I do wrong? (myString class) Please help! I have to turn in tomorrow Pin
foxele21-May-04 22:00
foxele21-May-04 22:00 
GeneralRe: where did I do wrong? (myString class) Please help! I have to turn in tomorrow Pin
foxele21-May-04 22:05
foxele21-May-04 22:05 
GeneralRe: where did I do wrong? (myString class) Please help! I have to turn in tomorrow Pin
Maxwell Chen21-May-04 22:11
Maxwell Chen21-May-04 22:11 
GeneralRe: where did I do wrong? (myString class) Please help! I have to turn in tomorrow Pin
Maxwell Chen21-May-04 22:07
Maxwell Chen21-May-04 22:07 
GeneralRe: where did I do wrong? (myString class) Please help! I have to turn in tomorrow Pin
foxele22-May-04 17:21
foxele22-May-04 17:21 
GeneralRe: where did I do wrong? (myString class) Please help! I have to turn in tomorrow Pin
Maxwell Chen22-May-04 22:18
Maxwell Chen22-May-04 22:18 
foxele wrote:
Maxwell, did you test the myString class with your c++ compiler?

I still got the same four errors about my destructor and operator<< and constructor. If it works fine in your computer, then it is the problem of my compiler.

Please let me know .


Yes, with Visual C++ 6.0, I built it, and ran it. The code compiled without any error or warning. And the output was correct ("Happy"... something).

Are you sure that you've downloaded the correct code? Or you just made a mistake that you copied the original code included in the text part of the reply? Or you didn't replace the code in the project with new one?

Check the comments in the cpp file. I have moved some comments from the end of function bodies to the beginning of function bodies. If it is such kind, then it's a new one. For example:

// Conventional constructor <br />
myString::myString()<br />
{<br />
  // ...<br />
}


To isolate the problem from your making a mistake replacing files or your compiler's got problem, this time I will send you the whole project in ZIP form.

Please visit WinZip[^] to get a zip tool. Thanks.




Maxwell Chen
Generalcreating an application that runs in the background Pin
shals16921-May-04 18:36
shals16921-May-04 18:36 
GeneralRe: creating an application that runs in the background Pin
Dominik Reichl22-May-04 0:53
Dominik Reichl22-May-04 0:53 
Generalbinary contents in a CString Pin
(Steven Hicks)n+121-May-04 17:54
(Steven Hicks)n+121-May-04 17:54 
GeneralRe: binary contents in a CString Pin
Andrew Quinn AUS21-May-04 22:57
Andrew Quinn AUS21-May-04 22:57 
GeneralRe: binary contents in a CString Pin
Prakash Nadar22-May-04 2:10
Prakash Nadar22-May-04 2:10 
GeneralRe: binary contents in a CString Pin
Gary R. Wheeler23-May-04 12:35
Gary R. Wheeler23-May-04 12:35 
GeneralRe: binary contents in a CString Pin
(Steven Hicks)n+123-May-04 13:06
(Steven Hicks)n+123-May-04 13:06 
General32 bpp images w/ controls Pin
alex.barylski21-May-04 16:39
alex.barylski21-May-04 16:39 
GeneralRe: 32 bpp images w/ controls Pin
Prakash Nadar21-May-04 16:43
Prakash Nadar21-May-04 16:43 
GeneralRe: 32 bpp images w/ controls Pin
John R. Shaw22-May-04 17:14
John R. Shaw22-May-04 17:14 
GeneralExecute program QU Pin
DNFSB21-May-04 15:47
DNFSB21-May-04 15:47 
GeneralRe: Execute program QU Pin
Prakash Nadar21-May-04 16:41
Prakash Nadar21-May-04 16:41 
GeneralRe: Execute program QU Pin
DNFSB22-May-04 14:26
DNFSB22-May-04 14:26 
GeneralUser created menu, using New Selection. Pin
Eversman21-May-04 14:19
Eversman21-May-04 14:19 
QuestionCapturing keyboard input from inside a background WMP9 COM plugin? Pin
IGx8921-May-04 13:47
IGx8921-May-04 13:47 
AnswerRe: Capturing keyboard input from inside a background WMP9 COM plugin? Pin
Michael Dunn21-May-04 14:06
sitebuilderMichael Dunn21-May-04 14:06 
GeneralRe: Capturing keyboard input from inside a background WMP9 COM plugin? Pin
IGx8921-May-04 15:45
IGx8921-May-04 15:45 

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.