CPB Mailing List
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Error #1?
I am not familiar with error#1 but your use of strcpy() is not correct.
strcpy(dest,source) does not know anything about Ansistrings and you are
attempting to copy one to to Label1 which is a cstring and again to
Label2.
You use an Entvar and an Entval and in one place you reference a Caption
and in another place you reference Text, Is this correct?
If you want to copy the AnsiString to a cstring then you must use the
c_str() method.
strcpy(Label1,MathEntry->EntVar->Caption.c_str());
Mike
- References:
- Error #1?
- From: "Chris Strickland" <cstrick@iu.net>
W Komornicki's Home Page |
Main Index |
Thread Index