Results 1 to 2 of 2

Thread: Class Heirachies

  1. #1

    Thread Starter
    Fanatic Member sql_lall's Avatar
    Join Date
    Jul 2002
    Location
    Up Above (i.e. AUS)
    Posts
    571

    Talking Class Heirachies

    Hello
    I've run across a problem. In my code i am trying to use two classes, a 'decrypted' class and an 'encrypted' class.
    The problem is, i want to write a function in the 'decrypted' class that returns an 'encrypted' object,
    AND write a funciton in the 'encrypted' class that returns a 'decrypted' object.

    However, i'm not sure what order i need to put things, or what code is needed to get a funciton in a class of one type to return an object of a different class.

    Thanks.

    Example:
    Code:
    class encr{
    public:
       ...
       decr encr_to_decr(void);
       ...
    };
    
    class decr{
    public:
       ...
       encr decr_to_encr(void);
       ...
    };
    sql_lall

  2. #2
    PowerPoster sunburnt's Avatar
    Join Date
    Feb 2001
    Location
    Boulder, Colorado
    Posts
    1,403
    this post might be useful to you: http://www.vbforums.com/showthread.p...hreadid=247453
    Every passing hour brings the Solar System forty-three thousand miles closer to Globular Cluster M13 in Hercules -- and still there are some misfits who insist that there is no such thing as progress.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width