Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Print in VC6 ?

Print in VC6 ?

Scheduled Pinned Locked Moved C / C++ / MFC
questioncssdatabaseperformance
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • _ Offline
    _ Offline
    _skidrow_vn_
    wrote on last edited by
    #1

    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:

    L 1 Reply Last reply
    0
    • _ _skidrow_vn_

      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:

      L Offline
      L Offline
      l a u r e n
      wrote on last edited by
      #2

      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


      "there is no spoon"
      biz stuff   about me

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups