C# & mswinsock.ocx
-
Hi guys, This activex control has optionals parameters for GetData method: this.axWinsock1.GetData(ref object data,object type,object maxlen) i tried these: object rec= string.Empty; object type = 0; object maxlen = 0; this.winsock.GetData(ref rec, type, maxlen); or object rec= string.Empty; object type = string.Empty; object maxlen = string.Empty; this.winsock.GetData(ref rec, type, maxlen); but all i get is "Unsupported variant types" error message, do you know how to call this getdata method in c#? i know if you call it in vb.net you dont need to pas optional parameteres. Please help:confused:
-
Hi guys, This activex control has optionals parameters for GetData method: this.axWinsock1.GetData(ref object data,object type,object maxlen) i tried these: object rec= string.Empty; object type = 0; object maxlen = 0; this.winsock.GetData(ref rec, type, maxlen); or object rec= string.Empty; object type = string.Empty; object maxlen = string.Empty; this.winsock.GetData(ref rec, type, maxlen); but all i get is "Unsupported variant types" error message, do you know how to call this getdata method in c#? i know if you call it in vb.net you dont need to pas optional parameteres. Please help:confused:
You might be able to pass a
null
value as the optional parameter. Alternatively you might want to look at theSystem.Net.Sockets
class of the framework which does essentially the same thing except that it's more powerful and it's the proper .NET way of reading and writing data across Sockets.Sig cops got me...
-
You might be able to pass a
null
value as the optional parameter. Alternatively you might want to look at theSystem.Net.Sockets
class of the framework which does essentially the same thing except that it's more powerful and it's the proper .NET way of reading and writing data across Sockets.Sig cops got me...