Serializing problem.. (can't use >> operator)

This is a discussion on Serializing problem.. (can't use >> operator) within the Windows Programming forums, part of the Platform Specific Boards category; I'm using visual studio .net.. i'm programming in C++ anyway.. i'm trying to serialize stuff.. and you know.. you do ...

  1. #1
    Registered User
    Join Date
    Sep 2003
    Posts
    55

    Serializing problem.. (can't use >> operator)

    I'm using visual studio .net.. i'm programming in C++

    anyway.. i'm trying to serialize stuff.. and you know.. you do the usual

    Code:
    ar << variable;// to save
    
    and
    
    ar >> variable; //to loadl
    but for a variable of type LOGICAL..

    i get an error on compile.. it say's that

    the operator >> does not exist for this type of variable..


    it works with the << operator.. but the >> doesn't..

    so how do i get that to work??

    thanks

  2. #2
    Unregistered User
    Join Date
    Sep 2005
    Location
    Antarctica
    Posts
    341
    what is LOGICAL? Is it a data structure that you defined? If so, either write an operator overloader that will allow you to use it with CArchive, or just call the function of CArchive directly (I think it's Write()).

  3. #3
    Registered User
    Join Date
    Sep 2003
    Posts
    55
    sorry.. it is a structure/\.. i'm doing this project ina team.. sorry.. that is what one of my team members added..

    i'm not sure how to overload it??


    i know htat means i'm supposed to define >> to work right.. but.. i'm not sure how to dp that

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 10
    Last Post: 06-20-2006, 04:07 PM
  2. using fstream operator >>
    By Jaken Veina in forum C++ Programming
    Replies: 8
    Last Post: 07-11-2005, 04:57 PM
  3. Problem with Operator Overloading
    By bench386 in forum C++ Programming
    Replies: 1
    Last Post: 03-29-2004, 01:39 AM
  4. operator overloading and dynamic memory program
    By jlmac2001 in forum C++ Programming
    Replies: 3
    Last Post: 04-07-2003, 12:51 AM
  5. problem with new operator
    By codefx in forum C++ Programming
    Replies: 4
    Last Post: 10-16-2002, 06:04 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21