i'm writing an app that needs a calculation support (Fun project). However, is there a way to enter input data to the interactive console in BC from C#, and then read the data from the console with C#? I have tried to use dllexport in the c source, but the code is confusing me.
Asked
Active
Viewed 55 times
0
-
I have tried to make my own version of the main() function with dllexport, but the function is confusing me. (it calls yyparse, and it doesnt look like it loads any code or files). If i could get the C part to work, then i can do the C# part myself :) – Biohazard Jun 16 '12 at 12:35
-
Post the part which you do not understand. – Md Kamruzzaman Sarker Jun 16 '12 at 12:41
1 Answers
0
The usual way to interact with prewritten console applications in c# is to use Process.Start
and then redirect StandardInput
and StandardOutput
.

Albin Sunnanbo
- 46,430
- 8
- 69
- 108