Home > other >  Interprocess communication between C and vb.net applications
Interprocess communication between C and vb.net applications

Time:05-13


I have a c + + console application, it has a variable, such as vardata, I want my vb.net application access vardata content, I think I can to save vardata to clipboard to achieve this, and vb.net should obtain the clipboard text, the problem is that the content of the vardata is changing 150 times per second, and when the vb.net application attempts to access the clipboard text, I missed a lot of change, is there any ready-made functions can be used for the data stored in the memory space (c + + side), and from my vb.net application (vb.net) to access it,
In this first thank






CodePudding user response:


You should change the VB application to the library and loaded into your c + + programs, there are a variety of ways to transfer data; The simplest possible is to use c + +/CLI (using c + +) or create a COM object (VB),

CodePudding user response:


Very dissatisfied with the Numbers, the Shared memory can't solve it, your VB.NET application is easy to lose the CPU access time 35 milliseconds or longer, the lack of updates, and you really don't want to try to keep up with the combustion cycle, voting is very afflictive,
Another option is to use the socket or named pipes, you won't lose any data, also won't burn down cycle, a special case is if your VB.NET application no response, your c + + program may be troubled,
Please keep in mind that the human eye cannot perceive updates occur faster than about 30 times per second, if this is a graphical user interface requirements, so 150 times a second update will waste energy, could actually lead to freeze your GUI,

CodePudding user response:

The socket communication should be ok
  • Related