Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 437 results for
serializing
- Page 1
Serializing problem (server and client in separate projects)
Programming
Software Development
13 Years Ago
by JosetoChile
… think the problem is related with the class I'm
serializing
/ deserializing. The client has the same class, but as it…
serializing data to a xml file, and deserializing when reloading
Programming
Software Development
11 Years Ago
by LateNightCoder
… xml file, that new button does not exist. Code for
serializing
the forms data to the xml, saving any info about…
serializing a vector attribute of an object in c++
Programming
Software Development
9 Years Ago
by Pyler
Is there are an easier way of
serializing
a vector attribute of an object in c++ using sqlite3?
Serializing an object with no attributes
Programming
Software Development
9 Years Ago
by Pyler
…<FLOUR>grocery); }; #endif How would I go about
serializing
attributes defined in the FLOUR.h class if incase I…
Re: Serializing in Visual C++
Programming
Software Development
16 Years Ago
by noraantonia
… drawing. can it be done? i've only read about
serializing
variables, like in a database application, but not a rotating…
Re: Serializing a struct to send over a socket and then deserializing
Programming
Software Development
13 Years Ago
by aiosarem
I should also mention that I'm not tied to the way I'm
serializing
the struct. My ultimate goal is to take those five pieces of data (the two ints, the two doubles, and the char array) and send them all over the socket with one send statement. If there's a better way to do it, by all means, let me know!
Problems in serializing listView&treeView items in Visual C++ 2005 Express Edition
Programming
Software Development
16 Years Ago
by chrisliando
Hi..I have a problem with
serializing
listView and treeView items using VISUAL C++ 2005 EXPRESS EDITION. …
C# Binary Serializing a Hybrid Dictionary
Programming
Software Development
16 Years Ago
by Shalvin
Serialization is the process of saving the state of an object into persistant medium. BinaryFormatter class is used for
serializing
and deserializing an object. HybridDictionary is optimized for key-based item retrieval from both small and large collections.
Re: Serializing problem (server and client in separate projects)
Programming
Software Development
13 Years Ago
by kvprajapati
Use [B][URL="http://msdn.microsoft.com/en-us/library/system.runtime.serialization.iserializable.aspx"]Custom Serialization[/URL][/B]. With [b]basic serialization[/b], the versioning of objects may create problem.
Re: serializing data to a xml file, and deserializing when reloading
Programming
Software Development
11 Years Ago
by skatamatic
You are not instantiating a new button into memory. Try using Button newBtn = new Button(); //Set attributes from XML here myForm.Controls.Add(newBtn);
Re: serializing data to a xml file, and deserializing when reloading
Programming
Software Development
11 Years Ago
by LateNightCoder
Skatamatic, ive updated the code and it looks like below. However this doesn't do anything either. I've madde the user be able to edit the buttons text but that now doesn't save. Any suggestions? Form newFrm = new Form(); Button newBtn =new Button(); newBtn.Name = controlName; newBtn.Text = n["Text"].InnerText;…
Re: Serializing an object with no attributes
Programming
Software Development
9 Years Ago
by Moschops
There's no data there to store. Every BREAD object is identical to every other BREAD object. There's nothing to serialise.
Re: Serializing an object with no attributes
Programming
Software Development
9 Years Ago
by mike_2000_17
Like Moschops said, if there is nothing to store, there is nothing to store. Of course, depending on your serialization method, you might have to store some header information even if the "body" is empty (e.g., in my serialization formats, I usually store a version number (for forward and backward compatibility), a class GUID number, an …
Re: serializing a vector attribute of an object in c++
Programming
Software Development
9 Years Ago
by Pyler
In my method, I used ostringstream to store the contents of my vector and returned the string.
Re: serializing a vector attribute of an object in c++
Programming
Software Development
9 Years Ago
by deceptikon
Define "easier" for your needs. With a vector, I'd probably do the same thing you've done, but there are serialization libraries ([Boost](http://www.boost.org/doc/libs/1_57_0/libs/serialization/doc/index.html) comes to mind), but they can be non-trivial to use.
Re: Example of serializing object
Programming
Software Development
14 Years Ago
by TobbeK
No errors, even if it's binary I can only find one post (row) in the txt file. I am missing something when trying to serialize all of the posts (rows) in listview. The code is for my own training purpose, and later I want to deserialize back to the listview. And I also need to create a similar control for xml
serializing
.
Serializing in Visual C++
Programming
Software Development
16 Years Ago
by noraantonia
hello i am building an application in Visual c++ 6 and i want to save some variable values. i tried in all ways, until i try just to save a value that i declared right in the "Serialize" function of my CDocument class : [code=cplusplus] void CDiplomaDoc::Serialize(CArchive& ar) { r=3; if (ar.IsStoring()) { // …
Re: Serializing in Visual C++
Programming
Software Development
16 Years Ago
by Ancient Dragon
That saves it as binary data, so you can not view it with Notepad. If you want it saved as text then convert with CString [code] CString s; s.Format("%d", r); ar << s; [/code]
Re: Serializing in Visual C++
Programming
Software Development
16 Years Ago
by Ancient Dragon
You can if you save all the points of the drawing. The [URL="http://msdn2.microsoft.com/en-us/library/aa716527.aspx"]Microsoft tutorial named Scribble[/URL] does exactly that. Also you might be able to save the drawing as a bitmap then save the bitmap. Another[URL="http://www.codeproject.com/KB/graphics/gditutorial.aspx"]…
Serializing JPanels
Programming
Software Development
14 Years Ago
by VernonDozier
OK, I haven't done much with Serialization. I have a simple program that creates four JPanels with different background colors and adds them to a larger JPanel using a 2 x 2 GridLayout. That larger JPanel is added to a JFrame. I've written my own serialization code to override the default. All I am storing is one integer for each of the four …
Re: Serializing JPanels
Programming
Software Development
14 Years Ago
by kvprajapati
Binary serialization not only store the state but it also preserve type fidelity. Classes - XMLEncoder, and XMLDecoder of package java.beans support xml serialization.
Re: Serializing JPanels
Programming
Software Development
14 Years Ago
by JamesCherrill
Serialization stores everything about your class instances, so if you don't want all that you have the override the appropriate methods. The portability issue is that Sun warn you that the details of how these things are serialised may change in future releases, so you cannot assume that an object serialised under 1.6.14 will de-serialise under 1.7…
Re: Serializing JPanels
Programming
Software Development
14 Years Ago
by VernonDozier
I thought I WAS overriding the appropriate methods when I wrote these functions? [code] private void readObject(ObjectInputStream ois) private void writeObject(ObjectOutputStream os) [/code]
Re: Serializing JPanels
Programming
Software Development
14 Years Ago
by JamesCherrill
Yes, sorry, I didn't mean to imply that you weren't!
Re: Serializing JPanels
Programming
Software Development
14 Years Ago
by VernonDozier
OK, so if I am successfully overriding the [ICODE]writeObject[/ICODE] function, here it is: [code] private void writeObject(ObjectOutputStream os) { try { os.writeInt (colorIndex); } catch (Exception e) { e.printStackTrace(); } } [/code] I'm …
Re: Serializing JPanels
Programming
Software Development
14 Years Ago
by JamesCherrill
I found this in Sun's serialisation spec: "Each subclass of a serializable object may define its own writeObject method. ... When implemented, the class is only responsible for having its own fields, not those of its supertypes or subtypes." Implies to me that the superclass's (JPanel's) fields will be serialised automatically?
Re: Serializing JPanels
Programming
Software Development
14 Years Ago
by VernonDozier
Implies that to me too. I found this option [code][COLOR="Red"]writeObjectOverride[/COLOR]: Method used by subclasses to override the default writeObject method. This method is called by trusted subclasses of ObjectInputStream that constructed ObjectInputStream using the protected no-arg constructor. The subclass is expected to …
Re: Serializing JPanels
Programming
Software Development
14 Years Ago
by JamesCherrill
writeObjectOverride: being protected shouldn't stop you overriding it. What errors do you get? Have you looked at Externalizable? [url]http://java.sun.com/j2se/1.3/docs/api/java/io/Externalizable.html[/url] looks like it may be what you are looking for? Finally - so the default serialization writes a k or two of extra data. Is this really a …
Re: Serializing JPanels
Programming
Software Development
14 Years Ago
by VernonDozier
Ha Ha. I guess I'm posting like a noob, talking about errors, but then not posting them. I'll run it again and report back in more detail. But I AM a noob as far as serialization goes and I don't know what's important and what isn't. Basically I want to be able to "save" a JPanel and then recreate it later. The JPanel will be more …
Re: Serializing JPanels
Programming
Software Development
14 Years Ago
by VernonDozier
Okay, code is here (almost exactly same as in post 1): [code=JAVA] import java.awt.*; import java.io.*; import javax.swing.*; public class APanel extends JPanel implements Serializable { static Color colors[] = {Color.RED, Color.BLACK, Color.MAGENTA, Color.BLUE, Color.CYAN}; int colorIndex; public APanel (int …
1
2
3
8
Next
Last
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Meet People
Forums
Top Members
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC