Search:

Type: Posts; User: C progammer

Search: Search took 0.01 seconds.

  1. I use C on windows under VS But the code that...

    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 ?
  2. I dont understand you, do you say that it relate...

    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) ,...
  3. C code Paste ofCode...

    C code Paste ofCode
    C# code Paste ofCode

    I catch the start printf in c# code event only after 5 seconds
  4. I have event handler ofcourse, but it called only...

    I have event handler ofcourse, but it called only when c program finish to run...even I printf line
  5. I don't get you when the c program finish I get...

    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...
  6. When I running my c code like prog.exe >...

    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...
  7. Are you sure that those function will catch...

    Are you sure that those function will catch printf?

    That not working
  8. That not so simple to handle each error that can...

    That not so simple to handle each error that can happend, without any kind of "try catch"
  9. How to write all exception to log file?

    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...
  10. catch all printf of c process in c# application

    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...
  11. Replies
    6
    Views
    2,713

    Yes ,I want to convert this byte array to char*...

    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
  12. Replies
    6
    Views
    2,713

    Convert hex byte array to hex char*

    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?
Results 1 to 12 of 13