Results 1 to 6 of 6

Thread: ehe ehe ehe, how can I save my class?

  1. #1

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428

    Unhappy ehe ehe ehe, how can I save my class?

    eeh I'm making a program that creates vector-based graphics. Now my problem is that I dont know how to save everything in a single file. For example, I have a class that contains Bitmaps, textureBrushes, strings,....
    Is there a way to do this via serialization? I don't know anything about it
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    Here is a serialization example for both binary and xml.

    http://www.vbforums.com/showthread.p...ight=Serialize

    Hey RealNickyDude if you need a serialization example for your code book there you go.

  3. #3

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    Originally posted by Edneeis
    Here is a serialization example for both binary and xml.

    http://www.vbforums.com/showthread.p...ight=Serialize

    Hey RealNickyDude if you need a serialization example for your code book there you go.
    dont tell me I have to pass all the variables to the constructor? plz!
    I have about 10 properties, and like 25 private variables. And I have 4 classes that are all like this

    would your example work if I have a bitmap too? you said binary... just double checking.
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  4. #4
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    No that is not required I just did that to fill the props quick. Although if you use XML then you should have a default (no parameter) constructor or else it gets a bit funky. Yes you can do Binary. Just make sure all the child properties are serializable as well.

  5. #5

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    Originally posted by Edneeis
    No that is not required I just did that to fill the props quick. Although if you use XML then you should have a default (no parameter) constructor or else it gets a bit funky. Yes you can do Binary. Just make sure all the child properties are serializable as well.
    I'm quite confused, thanks for the help....
    I'll get back to this thread later
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  6. #6
    Hyperactive Member RealNickyDude's Avatar
    Join Date
    Nov 2002
    Location
    Watching you through the hidden camera :o
    Posts
    435
    Originally posted by Edneeis
    Here is a serialization example for both binary and xml.

    http://www.vbforums.com/showthread.p...ight=Serialize

    Hey RealNickyDude if you need a serialization example for your code book there you go.
    Duly noted
    [vbcode]
    On Error GoTo Hell
    [/vbcode]:¬) Nicky : Why not try VBCodebook.NET.

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