I
ivan mjartan via DotNetMonster.com
Hi
I am developing win32 application and I am calling function from extern DLL
for example something like this
1) import function
[DllImport("extern.dll")]
public static extern int translate(int num, string[] arr);
this function is written in C++
2) then I in button_on_click procedure I am calling
translate(8,arr);
and it works fine but problem is that sometimes extern function write
something into stdout (standart output stream) for examle error message
(I can see this message in debug window in VisualStudio). This is similar
problem if u in win ap write this System.Console.Write("some text");
And my question is How can I get access to this stream from win32 ap. and
write it into textbox for example ?
Thanks very much for your answer.
ivan
I am developing win32 application and I am calling function from extern DLL
for example something like this
1) import function
[DllImport("extern.dll")]
public static extern int translate(int num, string[] arr);
this function is written in C++
2) then I in button_on_click procedure I am calling
translate(8,arr);
and it works fine but problem is that sometimes extern function write
something into stdout (standart output stream) for examle error message
(I can see this message in debug window in VisualStudio). This is similar
problem if u in win ap write this System.Console.Write("some text");
And my question is How can I get access to this stream from win32 ap. and
write it into textbox for example ?
Thanks very much for your answer.
ivan