I'm calling a c++ project from c# , the process is like this , i enter some numbers in a textbox and when i push a button it calls a c++.exe program and run it with the numbers i've inserted in texbox ,after this return the result in another textbox.
The problem is that i don't know how to modify in cpp I/O code to read from textbox,that's all i need .
AbaianitCristian 0 Newbie Poster
Recommended Answers
Jump to PostI don't know C#, probably should stop right there but would this work better?
const string exePath = "test-min.exe";
instead:
string exePath = "test-min.exe "+textBox1.text; or "test-min.exe "+formatnums(textBox1.text);
pinfo = procressStartInfo(exePath);
I'm assuming youre running it on the command like as such:">test-min.exe 1 2 3
Jump to PostProcessStartInfo probably can't find the executable. I would suggest that you put the full path name to the executable in your exePath variable.
const string exePath = "test-min.exe";
All 8 Replies
deceptikon 1,790 Code Sniper Team Colleague Featured Poster
AbaianitCristian 0 Newbie Poster
deceptikon 1,790 Code Sniper Team Colleague Featured Poster
AbaianitCristian 0 Newbie Poster
deceptikon 1,790 Code Sniper Team Colleague Featured Poster
AbaianitCristian 0 Newbie Poster
dancks 4 Light Poster
BobS0327 24 Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.