I don't know if you read my previous question because it strongly relates to this one. I have dynamically created a structure of type SiteStruecture using this time malloc instead of calloc.
struct SiteStructure
{
int numOfSect;
double easting;
double northing;
CString siteCodeStr;
CString prdPath[6];
CString prdNames[6];
double eIRP[6];
int angle[6];
SiteStructure * nextSite;
}
when I try to assign values to the siteCodeStr, which is a CString I get a memory access violation error, When I try to assing the doubles or ints, I have no problem. Does any one have a clue as to what is going on? Desparate, please help. Thanks in advance.
[sig][/sig]
struct SiteStructure
{
int numOfSect;
double easting;
double northing;
CString siteCodeStr;
CString prdPath[6];
CString prdNames[6];
double eIRP[6];
int angle[6];
SiteStructure * nextSite;
}
when I try to assign values to the siteCodeStr, which is a CString I get a memory access violation error, When I try to assing the doubles or ints, I have no problem. Does any one have a clue as to what is going on? Desparate, please help. Thanks in advance.
[sig][/sig]