jobInfodata 是我自己定义的结构体.
typedef struct _JobInfo
{
CString PrinterName; //The name of printer
CString ComputerName;//The name of computer
CString PortName;//The string that identifies the port used to transmit data to the printer.
int pagesprinted;
}jobInfodata;
用CList <jobInfodata ,jobInfodata&> list;
用list.AddTail(
想给我自定义的结构体每个成员变量赋值怎么搞?
typedef struct _JobInfo
{
CString PrinterName; //The name of printer
CString ComputerName;//The name of computer
CString PortName;//The string that identifies the port used to transmit data to the printer.
int pagesprinted;
}jobInfodata;
用CList <jobInfodata ,jobInfodata&> list;
用list.AddTail(
想给我自定义的结构体每个成员变量赋值怎么搞?
pjobInfodata = new jobInfodata;
pjobInfodata->PrinterName = "aaaa";
........
list.AddTail(pjobInfodata);