I need some help here with c#

I see I can only use send_data in c# instead of send_var , as i am new to whole network thing and stil new to c# , I first tried sending a simple string with send_data , it works fine .

now I wanted to try sending a structure with a string and a intptr in it , instead.

I tried marshalling the structure to intptr and sending it like that , then on the server/client event I tried marshalling the ptr back to a structure ,then reading the string and data from that .

However i cannot figure out where I went wrong because I get errors , so after a while I got rid of the code and now here I am asking for a bit of help in doing this correctly ,marshalling sending/receiving a struct and reconverting back with send_data , if you know how ?


Last edited by Wjbender; 06/11/15 20:33.

Compulsive compiler