@
Mayion Shell("Console.exe /k" + textbox1.text) what is the argument type for the Shell() function,
what data type?
And in the C++ program, where it gets the arguments..
what data type is this?
If you don't know, maybe it's worth investigating.
If it was me, I'd add some code to the beginning of main() (ie. don't let your normal code run) in the C++ app and MessageBox() the first argument passed to it..at least then you'll know when the C++ side thinks it got an argument passed in. Then try things on the vb side which possibly send different strings (see my first 2 questions).
The function mentioned by Biesi should (...does) work, must be your console app.
Post code...pretty much always --> use [ s p o i l e r = zCode ] ... [ / s p o i l e r ] if you don't want it to take up a lot of space.
edit: change char to wChar on your C++ side because the vb-side is sending a utf16 string, and the console is expecting 1-byte ascii? Or maybe it's the opposite? I haven't used the Shell() function, but I promise the one mentioned by Biesi works.. I guess give us more details like OS,cpu_size/compiled as x86/x64, which version of V$. and POST CODE.
edit2: Biesi noticed --> OP, Did you mean to put a space after the "/k" or not? Maybe this is causing the C++ program to act like it didn't get the argument (which is why I mention the MsgBox() idea).