In brief, I have written a program in C++ that reads data from a text file, does 'stuff' with that data and then writes the results to a number of separate file. Separately I've written a simple GUI for this program using Visual Basic (allows the user to select the input file and choose where the output is saved). Now I want to link these together but google hasn't been much help :) I'm wondering is there anyway to call C++ code from within a windows forms application (my VB code), allowing me to pass the relevant filepaths between the two programs?
The is more than one way:
1-pass the source and distination as parametars to c++ when you run it and handle the args in c++
2-use sendmessage From Vb to c++ and handle the recieve message in c++
3-write the data to config file near the c++ exe and on run read it
that what i have in mind you can try any or find yours
Hi mazzica1, thanks for you're reply. I'm afraid I still don't know what the next step I should be taking is. Could you possibly suggest somewhere I might find further information on this. Google is just confusing me more and I'd be surprised if there isn't a reasonably straightforward way to do this.
PS At the moment I have both the VB GUI and the C++ program saved as two separate solutions in the same project file in Visual Studio
I Developed application in C# with crystal reports and created setup file in third party (Advance) Installer.When i installed my application on client system application is working but ...