Sending class over Socket

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hy!

I am trying to write a programm which can send "user defined" messages over
the network to a client and receive the messages.
The Message is a class I have written and I am using recv() and send() to
get and send the data.
Message class looks like:

class MsgEx

{

public:

MsgEx();

~MsgEx();



private:

string mSource;

string mDestination;

static unsigned long mMessageId;

MsgTimeEx mMsgTime;

MsgExType mMsgType;

string mData;

};



Now I am able to send char[] over my program but I can´t send my own class.

What do I have to do to send this kind of data?



Ronny




.



Relevant Pages

  • Re: Fehler bei Zugriff auf BE auf CD-ROM
    ... Interessant ist Folgendes: Das Programm läuft ... >> (ByVal hwnd As Long, ByVal lpoperation As String, ByVal ... >> schreibt auftretende Fehler in eine Protokolldatei im BE, ...
    (microsoft.public.de.access)
  • Re: Fehler bei Zugriff auf BE auf CD-ROM
    ... Interessant ist Folgendes: Das Programm läuft ... >(ByVal hwnd As Long, ByVal lpoperation As String, ByVal ... >On Error GoTo Fehler ...
    (microsoft.public.de.access)
  • Re: Try Catch / Mehrsprachigkeit
    ... Das Programm wird nur dann beendet, wenn Du den Fehler nicht behandelst, da der Compiler ja nicht weiß, was er sonst besseres machen soll. ... In jedem Form gibt es eine sub "TranslateMe", die dann die einzelnen String Controls übersetzt. ... Private Shared Function GetVariableValue(ByVal ThisVariable As String, ByVal DefaultValue As String) As String ... Dim retVal As String ...
    (microsoft.public.de.german.entwickler.dotnet.vb)
  • Re: Sending class over Socket
    ... I am trying to write a programm which can send "user defined" messages over ... the network to a client and receive the messages. ... string mDestination; ... Now I am able to send char[] over my program but I can´t send my own class. ...
    (microsoft.public.dotnet.languages.vc)
  • Re: Datum mit bestimmtem Format in Datenbank schreiben
    ... Bei jedem Bearbeitungszugriff auf eine Zeile in einer Datenbanktabelle ... Dieses Programm macht genau so was. ... Ein Datum wird in einer JetDatenbank als Wert vom Typ Date, ... formatierter String, der nicht unbedingt den gesamten in der DB ...
    (microsoft.public.de.german.entwickler.dotnet.vb)