14 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Pyler
Member Avatar for Pyler

I can serialize an object if it's class definition has attributes. So if I have an object whose class does not have attributes, do I serialize the attributes importedi in it's class definition? For example; suppose I have the following class, #ifndef BREAD_H #define BREAD_H #include "EGGS.h"; #include "FLOUR.h"; class …

Member Avatar for mike_2000_17
0
274
Member Avatar for CoilFyzx

Hello good afternoon. I have successfully serialized data in the past, however it seems as if I don;t fully understand the process. I have a class called ProgramState which stores a variable (called lastCreated) with custom class LinesProject and an ArrayList variable(called recentProjects) of this custom class. The purpose of …

Member Avatar for CoilFyzx
0
373
Member Avatar for WildBamaBoy

I'm trying to send data back and forth between two computers using a Socket (TCP). The data is in the form of serialized Packet objects. At an early point in the application, it must send 25 or so Packets of the same type to the other side. See Case 1 …

Member Avatar for Ketsuekiame
0
525
Member Avatar for CPT

Currently I have something like this: class FileWritter{ ofstream file; public: FileWritter(string filename,A_Class a){//A_Class is class which has defined the >> and the << operators file.open(filename.c_str()); file<<a; } ~FileWritter(){ file.close(); } }; what I want is to have something like this: template <class AbstractClass> class FileWritter{ ofstream file; public: FileWritter(string …

Member Avatar for mike_2000_17
0
505
Member Avatar for danielgr

Hi, I have a webservice which needs to be serialized. At the moment I can call the webservice as: Call10.Process("field_a","field_b") and the function looks like this: Public Function Call10(ByVal User As String, ByVal Password As String) As String If User = "user" Then MsgBox("Correct User") End If If Password = …

Member Avatar for danielgr
0
182
Member Avatar for JamieC90

Hi all, I'm trying to write a program that holds student data in arraylists. I've managed to get all the adding, editing, deleting, displaying etc. working and now all I need to do is to make sure it saves on exit and loads on startup By following another tutorial, I …

Member Avatar for JamieC90
0
839
Member Avatar for micmo

Hi guys, I've been searching for hours now and haven't yet found a good source of C# information for what I need to do. The general gist is this: I have 1 Client app (a simple windows form which gathers data) and 1 Server console app (which holds the business …

Member Avatar for micmo
0
650
Member Avatar for Alex_

Hello. I'm trying to serialize a class that implements Serializable and a Runnable. My class has a transient Thread object as a field that is created and started after the restoration of my class(object). This is proven possibile by a tutorial from Oracle, [URL="http://java.sun.com/developer/technicalArticles/Programming/serialization/"]here[/URL]. But i fail to compile my …

Member Avatar for Alex_
0
2K
Member Avatar for nv136

Hello everyone, I am not a professional at vb.net so help me out. I have made a small program and a want to add a serial control to it.... here is my code.... Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If TextBox1.Text …

Member Avatar for nv136
0
494
Member Avatar for leiger

Basically I've got a text editor which revolves around a jTextArea. There are some settings (e.g. whether line wrap is enabled) that I'd like to save to a file when the application closes, and then load up again when it runs next. I've spent a few hours trying to get …

Member Avatar for leiger
0
194
Member Avatar for emilo35

So, a while ago I wrote a SerializableImage class in order to easily bundle several images together into a single file. The class worked fine, both serializing, file I/O and drawing. In another project I'm working on I successfully used a copy of this SerializableImage class, until recently. I had …

Member Avatar for emilo35
0
182
Member Avatar for zachattack05

Hi! I'm new to the site! I've been searching for help on Google for a while and keep getting results that point to this site, so I figured I should jump on. I'm new to C#. I've been programming in VBA in MS Access for a while now and have …

Member Avatar for drifai
1
854
Member Avatar for Diamonddrake

In my project I had been using a set of arrays to hold some data, realized it was a bad design, so then I decided to create an object that holds all the relevant data, and add them to an arraylist, this work great except all the data was information …

Member Avatar for Diamonddrake
0
190

The End.