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 = "password" Then MsgBox("Correct Password") End If Return "Success" End Function The client wants to be able to call the webservice as: Dim Call10Input as New Call10Input Call10Input.User = "user" Call10Input.Password = "password" Call10.Process(Call10Input) I'm assuming I would have to create Call10Input as a class and then accept Call10Input into the …

Member Avatar
Member Avatar
+0 forum 2

Hi there, In my program i have given the user the possibillity to add new buttons to the form I then serialize the form to a xml file so it is saved. Any data that is edited while the program is running will be saved (for example user edits the buttons text) for next time the program runs, and it does successfully. However when they add a new button, it get serialized to the xml file but when i run the program again and read from the xml file, that new button does not exist. Code for serializing the forms …

Member Avatar
Member Avatar
+0 forum 2

[code="C++"] class item { string name; string identifier; public: item( string name,string id):{this->name=name;this->identifier=id;} friend ostream& operator<<(ostream&, const item&); friend istream& operator>>(istream&, item&); }; ostream& operator<<(ostream& out, const item& temp) { out<<item.name<<" "<<item.identifier<<endl; return out; } istream& operator>>(istream& in, Cmessage& temp) { getline(in,item.name);//in case sring has space char getline(in,item.identifier); return in; }[/code] [code="C++"] class CGuser { bool online; int score; string name; string password; string IP; vector<item> messages; vector<string> v_friends; vector<string> groups; public: CGuser(string name, string password) { this->name=name; this->password=password; this->score=0;} friend ostream& operator<<(ostream&, const CGuser&); friend istream& operator>>(istream&, CGuser&); ostream& operator<<(ostream& out, const CGuser& temp) { int size; out<<temp.online<<endl; out<<temp.score<<endl; …

Member Avatar
Member Avatar
+0 forum 8

The End.