Click here to Skip to main content
15,908,013 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionOverloading cast & assignment not enough for ==? Pin
dplong7-Sep-09 11:22
dplong7-Sep-09 11:22 
QuestionRe: Overloading cast & assignment not enough for ==? Pin
CPallini7-Sep-09 11:54
mveCPallini7-Sep-09 11:54 
AnswerRe: Overloading cast & assignment not enough for ==? Pin
dplong7-Sep-09 12:30
dplong7-Sep-09 12:30 
Oh, sorry:

"I get compilation errors for the conditional expressions within the assert()s. The error text in the comments is paraphrased from Visual 2008 C++ Express."

Basically, how do I get rid of those errors? I would like to be able to

1. compare two instances of my Name class for equality and

2. compare an instance of Name with an instance of its core type, string.

Like pointers, I only need to cast, assign, and compare for equality/inequality. For example, it doesn't make sense to add identifiers, like adding GUIDs.
AnswerRe: Overloading cast & assignment not enough for ==? Pin
Stuart Dootson7-Sep-09 14:41
professionalStuart Dootson7-Sep-09 14:41 
QuestionRe: Overloading cast & assignment not enough for ==? [modified] Pin
dplong7-Sep-09 18:39
dplong7-Sep-09 18:39 
QuestionWhy do functions in the C library have short names? Pin
0x3c07-Sep-09 10:58
0x3c07-Sep-09 10:58 
AnswerRe: Why do functions in the C library have short names? Pin
CPallini7-Sep-09 11:13
mveCPallini7-Sep-09 11:13 
AnswerRe: Why do functions in the C library have short names? Pin
dplong7-Sep-09 11:32
dplong7-Sep-09 11:32 
AnswerRe: Why do functions in the C library have short names? Pin
Richard MacCutchan7-Sep-09 11:33
mveRichard MacCutchan7-Sep-09 11:33 
AnswerRe: Why do functions in the C library have short names? Pin
Stuart Dootson7-Sep-09 14:45
professionalStuart Dootson7-Sep-09 14:45 
QuestionID_FILE_NEW causes application crashed [modified] Pin
transoft7-Sep-09 10:58
transoft7-Sep-09 10:58 
AnswerRe: ID_FILE_NEW causes application crashed Pin
Richard MacCutchan7-Sep-09 11:36
mveRichard MacCutchan7-Sep-09 11:36 
GeneralRe: ID_FILE_NEW causes application crashed Pin
transoft7-Sep-09 16:58
transoft7-Sep-09 16:58 
GeneralRe: ID_FILE_NEW causes application crashed Pin
Richard MacCutchan7-Sep-09 23:25
mveRichard MacCutchan7-Sep-09 23:25 
AnswerRe: ID_FILE_NEW causes application crashed Pin
SandipG 7-Sep-09 21:39
SandipG 7-Sep-09 21:39 
GeneralRe: ID_FILE_NEW causes application crashed Pin
transoft8-Sep-09 2:12
transoft8-Sep-09 2:12 
AnswerRe: ID_FILE_NEW causes application crashed Pin
David Crow8-Sep-09 3:31
David Crow8-Sep-09 3:31 
GeneralRe: ID_FILE_NEW causes application crashed Pin
transoft8-Sep-09 3:50
transoft8-Sep-09 3:50 
GeneralRe: ID_FILE_NEW causes application crashed Pin
David Crow8-Sep-09 3:55
David Crow8-Sep-09 3:55 
GeneralRe: ID_FILE_NEW causes application crashed Pin
transoft8-Sep-09 4:24
transoft8-Sep-09 4:24 
GeneralRe: ID_FILE_NEW causes application crashed Pin
David Crow8-Sep-09 4:35
David Crow8-Sep-09 4:35 
GeneralRe: ID_FILE_NEW causes application crashed [modified] Pin
transoft8-Sep-09 4:33
transoft8-Sep-09 4:33 
QuestionResize an image without a Window Pin
GeeBru7-Sep-09 10:48
GeeBru7-Sep-09 10:48 
AnswerRe: Resize an image without a Window Pin
Richard MacCutchan7-Sep-09 10:52
mveRichard MacCutchan7-Sep-09 10:52 
GeneralRe: Resize an image without a Window Pin
GeeBru7-Sep-09 10:58
GeeBru7-Sep-09 10: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.