![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I'm trying to figure out how all of this is supposed to fit together. I've got a C/C++ application on a server, could be Unix, OpenVMS, or Windows - definitely unmanaged, in every sense of the term - and it's sending real-time data back to a desktop with a Visual BASIC .Net interface. On the server or remote computer, a data structure is created, a header attached to tell the client what type of message and how many bytes, and the entire contents of the data structure is sent in binary format out over a socket. How do I receive that in Visual Basic .Net? Structures in VB.Net, aren't structures, they're objects, and for some reason these structure objects can't contain arrays. (Although arrays in VB.Net aren't arrays, either -- they, too are objects, so to be technically correct, I should say that the Structure Object isn't allowed to contain an Array Object in VB.Net.) .... |
#3
| |||
| |||
|
|
I'm trying to figure out how all of this is supposed to fit together. I've got a C/C++ application on a server, could be Unix, OpenVMS, or Windows - definitely unmanaged, in every sense of the term - and it's sending real-time data back to a desktop with a Visual BASIC .Net interface. On the server or remote computer, a data structure is created, a header attached to tell the client what type of message and how many bytes, and the entire contents of the data structure is sent in binary format out over a socket. How do I receive that in Visual Basic .Net? Structures in VB.Net, aren't structures, they're objects, and for some reason these structure objects can't contain arrays. (Although arrays in VB.Net aren't arrays, either -- they, too are objects, so to be technically correct, I should say that the Structure Object isn't allowed to contain an Array Object in VB.Net.) I thought it was MS intent or vision to use a binary formatter object to suck in this data through a structure object by making the structure on the VB side serializable and then it would all line up nice and neat like it used to in VB6. What I'm reading on here is that .Net remoting, that is, using the binary formatter object, still won't understand the messages coming in from the server. Is this possible in .Net? Should I plan on abandoning .Net altogether and replatform the interface in unmanaged (MFC/API) code? (Yuck!) I've got to admit that I'd rather switch to another operating system if it came to that. I have some control over the server source code, but I can't just migrate it entirely into .Net because some of our customers insist we still support their existing systems which can be Windows, (L)Unix, and VAX/VMS. As far as I know, .Net framework only exists on Windows boxes, so the more I move the server into the .Net realm, the more complicated and expensive the server code is to maintain. I'd rather tame the VB.Net code, if that's possible. Any thoughts or suggestions would be appreciated! I'm really pulling my hair out on this. -rod |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |