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. Visual Basic
  4. Serialize class module

Serialize class module

Scheduled Pinned Locked Moved Visual Basic
c++questioncom
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.
  • R Offline
    R Offline
    Red Sunday
    wrote on last edited by
    #1

    In visual c++, you override the << operator, IE if myInstance was of a type of instance that I created, I would override << to be able to do fileio << myInstance. How do I do this for Visual Basic 6.0 where I can do Write #1, myInstance and/or Input #1, myInstance?:confused: Thank you, ----------------- http://www.zachcalvert.com

    D 1 Reply Last reply
    0
    • R Red Sunday

      In visual c++, you override the << operator, IE if myInstance was of a type of instance that I created, I would override << to be able to do fileio << myInstance. How do I do this for Visual Basic 6.0 where I can do Write #1, myInstance and/or Input #1, myInstance?:confused: Thank you, ----------------- http://www.zachcalvert.com

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      Not support in VB6. There is no operator overloading what-so-ever. This isn't even a feature in Visual Basic.NET 2002 or 2003. This won't happen until the 2005 release. Also, the operator your overloading is a stream operator. There is no such operator in the 2005 release, AFAIK. You class will have to supply it's own support for converting itself to a string and returning that string. Then your parent code can use that to output to whatever stream you see fit. But, there is no operator that does this for you. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

      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