-
c++ to VB
Hi, I am designing a program which will require data retrieval using c++ in real time. The c++ code is open source and does its job. The c++ program cannot be converted to VB because of the baud rate that VB can handle. This is a I/O interfaced program.
The thing is, I need to design the interface and most of the program in VB. Is there a way to make a memory buffer or something? What is the best way to take the raw data being pulled in from the c++ program and send it to the VB program?
Thanks.
-
You NEED to? Why?
Anyway, you can put the C++ code into a DLL and use it from VB. You can allocate a buffer from VB using the HeapAlloc API, the trouble is accessing it from VB.
You can also make a COM DLL from the C++ code and use SAFEARRAYs, but then data transfer should be kept to a minimum, they're quite slow (it's the native representation of VB's arrays).