Print in VC6 ?
-
Print in VC6 ? I used ODBC (CDatabase,CRecordset) to open "Product" table in my database file >> and I want to print this table >> Is there a way to print easily ? and a question these declarations are different ? 1) CMyClass o1,o2,o3; 2) CMyClass *p1,*p2,*p3; which decleration is flexibler (fast run and use less memory) when I should use a object like *p1 or o1 thank you very much:rose:
-
Print in VC6 ? I used ODBC (CDatabase,CRecordset) to open "Product" table in my database file >> and I want to print this table >> Is there a way to print easily ? and a question these declarations are different ? 1) CMyClass o1,o2,o3; 2) CMyClass *p1,*p2,*p3; which decleration is flexibler (fast run and use less memory) when I should use a object like *p1 or o1 thank you very much:rose:
second point first... 2) only declares pointers to objects ... not objects themselves (just in case u didnt realise that) ... pointers to objects take less memory than the objects themselves but since the objects have to exist to get a pointer to them u actually have the object size + pointer size if u store a pointer to the objects ... i guess it depends on what u need to do with the objects and how u want to do it printing in mfc (since ur using crecordset etc) is a tricky thing to get right ... there are lots of articles here on cp ... check out the 'printing' section