I use C on windows under VS
But the code that on this link is for cpp
can you please shoe me an example with try catch with c ?
Type: Posts; User: C progammer
I use C on windows under VS
But the code that on this link is for cpp
can you please shoe me an example with try catch with c ?
I dont understand you, do you say that it relate to sleep?
Even ehen I edit my c code to , drop out the sleep and put some loops that take time
Paste ofCode
(those loops take about 18 seconds) ,...
C code Paste ofCode
C# code Paste ofCode
I catch the start printf in c# code event only after 5 seconds
I have event handler ofcourse, but it called only when c program finish to run...even I printf line
I don't get you
when the c program finish I get all the printf to my c# in OutputDataReceived event.
What I want is get to c# event all the output from printf immediately when the c code print...
When I running my c code like prog.exe > results.txt I get all the printf to files.
In my c I do printf("test \n"); and then it continue to run ....
I tried to catch the printf with...
Are you sure that those function will catch printf?
That not working
That not so simple to handle each error that can happend, without any kind of "try catch"
In another lang. there is try catch so I can write the exception to log file , and fix that later.
How can I do it in c? so if I have an error I can see it , write it to log , and my process will...
I have c# app. that run c exe with Process.Start
I want that c exe will communicate with c# exe (not only via return value).
I think if is there any way that in c file I will print with printf...
Yes ,I want to convert this byte array to char* that I can see
aabb1277 when I use %s, not %x.
I dont have a problem to allocate bigger memory
I have byte array like aa,bb,12,77
I want to convert it to char* so when I do
Printf("%s",newCharPtr);
I will get aabb1277
How can I do it please?