I am a summer intern and I have a few questions on my summer project.
I have some VC++ code that I would like to be able to call in VB.NET. What I am attempting to do is while the VC++ code is running I would like to periodically extract some data to be plotted and viewed in a VB interface. I am not sure what that best means of approach is for this. People have given many suggestions, but as I have never interfaced VB and VC before I am getting a little confused and am not sure what advice to listen too.
It was suggested to me that I could create a DLL with the VC++ code that would be called in VB, but in my research and in all of the examples that I have seen it seems as though a DLL is used to call functions from different programs, is this true? Will I be able to have the VC++ code running and extract data if I create a DLL?
It was also suggested that I use the LoadLibrary function, but I am not sure exactly what that is used for or how to use it.
I appreciate any help that anyone can give me, to help steer me in the correction direction.
Thanks!
Delali Dzirasa
PS I don’t know if this is needed but I am running on W2K, and VC++ 6.0, where the current application is compiled as an EXE console application.
I have some VC++ code that I would like to be able to call in VB.NET. What I am attempting to do is while the VC++ code is running I would like to periodically extract some data to be plotted and viewed in a VB interface. I am not sure what that best means of approach is for this. People have given many suggestions, but as I have never interfaced VB and VC before I am getting a little confused and am not sure what advice to listen too.
It was suggested to me that I could create a DLL with the VC++ code that would be called in VB, but in my research and in all of the examples that I have seen it seems as though a DLL is used to call functions from different programs, is this true? Will I be able to have the VC++ code running and extract data if I create a DLL?
It was also suggested that I use the LoadLibrary function, but I am not sure exactly what that is used for or how to use it.
I appreciate any help that anyone can give me, to help steer me in the correction direction.
Thanks!
Delali Dzirasa
PS I don’t know if this is needed but I am running on W2K, and VC++ 6.0, where the current application is compiled as an EXE console application.