Since CString is part of MFC I think this is the right forum.
I'm trying to compile the following and it doesn't work? How can I get the CString to intialize.
Code:
struct print
{
int x; //row
int y; //col
int fid;
CString *data;
char *format;
};
struct print form [] =
{
{ 30, 40, 1,"Name", "N/A" },
{ 30, 42, 1,"Address", "N/A" },
{ 30, 44, 1,"City State, Zipcode", "N/A" },
{ 30, 50, 1,"Vehicle", "N/A" },
};
the char *format is not a problem,
but compiler doesn't like CString *data;
tried CSting data and that also doesn't work,
typecasting didn't work either?
Any suggestions?