Click here to Skip to main content
15,887,485 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionSelection of lengthy path in the open save dialog box, retunr truncated string Pin
Sandeep. Vaidya24-Apr-06 5:37
Sandeep. Vaidya24-Apr-06 5:37 
AnswerRe: Selection of lengthy path in the open save dialog box, retunr truncated string Pin
Nibu babu thomas24-Apr-06 17:17
Nibu babu thomas24-Apr-06 17:17 
GeneralRe: Selection of lengthy path in the open save dialog box, retunr truncated string Pin
Sandeep. Vaidya24-Apr-06 20:25
Sandeep. Vaidya24-Apr-06 20:25 
GeneralRe: Selection of lengthy path in the open save dialog box, retunr truncated string Pin
Sandeep. Vaidya25-Apr-06 0:06
Sandeep. Vaidya25-Apr-06 0:06 
GeneralRe: Selection of lengthy path in the open save dialog box, retunr truncated string Pin
Nibu babu thomas25-Apr-06 1:49
Nibu babu thomas25-Apr-06 1:49 
Questionoverride operator + Pin
ehh24-Apr-06 5:06
ehh24-Apr-06 5:06 
AnswerRe: override operator + Pin
Chris Losinger24-Apr-06 5:16
professionalChris Losinger24-Apr-06 5:16 
GeneralRe: override operator + Pin
ehh24-Apr-06 7:55
ehh24-Apr-06 7:55 
Here's the code for operator +:
Overloader
Overloader::operator+ (
    const Overloader&   addend) const
{
    Overloader          result;
    long                v;
    short*              resultVoxels;
    short*              addendVoxels;

    /* Allocate result array.                                               */
    if (!result.Allocate()) {
        /* Caller must check for NULL array to ensure results of this       */
        /* method are valid.                                                */
        return result;
    }

    for (v = 0; v < iNShorts; ++v) {
        result.mArray[v] = mArray[v] + addend.mArray[v];
    }

    return result;
}


I think I've found the problem: I didn't have a copy constructor. I just implemented
one, performing a "deep" copy of the mArray instance variable, and now it seems
to work....
Thanks for any advice,
ed
Questionneed help - certificates Pin
Machma24-Apr-06 5:05
Machma24-Apr-06 5:05 
QuestionMulticast Pin
Smith#24-Apr-06 4:48
Smith#24-Apr-06 4:48 
AnswerRe: Multicast Pin
Ryan Binns24-Apr-06 5:00
Ryan Binns24-Apr-06 5:00 
QuestionYour thoughts on multi-threaded client run on the same machine. Pin
deltaseq024-Apr-06 4:10
deltaseq024-Apr-06 4:10 
AnswerRe: Your thoughts on multi-threaded client run on the same machine. Pin
Moak27-Apr-06 6:53
Moak27-Apr-06 6:53 
GeneralRe: Your thoughts on multi-threaded client run on the same machine. Pin
deltaseq027-Apr-06 10:14
deltaseq027-Apr-06 10:14 
QuestionActiveX Control Pin
stassi124-Apr-06 4:09
stassi124-Apr-06 4:09 
QuestionProperty Sheets Pin
si_6924-Apr-06 4:04
si_6924-Apr-06 4:04 
QuestionRe: Property Sheets Pin
David Crow24-Apr-06 4:13
David Crow24-Apr-06 4:13 
AnswerRe: Property Sheets Pin
si_6924-Apr-06 4:19
si_6924-Apr-06 4:19 
GeneralRe: Property Sheets Pin
David Crow24-Apr-06 4:27
David Crow24-Apr-06 4:27 
GeneralRe: Property Sheets Pin
si_6924-Apr-06 4:30
si_6924-Apr-06 4:30 
GeneralRe: Property Sheets Pin
David Crow24-Apr-06 5:05
David Crow24-Apr-06 5:05 
GeneralRe: Property Sheets Pin
si_6924-Apr-06 5:07
si_6924-Apr-06 5:07 
GeneralRe: Property Sheets Pin
David Crow24-Apr-06 6:13
David Crow24-Apr-06 6:13 
QuestionViews In MDI Pin
BlitzPackage24-Apr-06 3:49
BlitzPackage24-Apr-06 3:49 
AnswerRe: Views In MDI Pin
YaronNir24-Apr-06 4:50
YaronNir24-Apr-06 4:50 

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.