Search:

Type: Posts; User: Chandana

Search: Search took 0.01 seconds.

  1. Replies
    9
    Views
    5,059

    Thanks for the reply. what should I do if I...

    Thanks for the reply.

    what should I do if I want to get "This is C code" as the output.
  2. Replies
    9
    Views
    5,059

    #ifdef _cplusplus

    Hi,

    I have the following code - FIRST.CPP, CALL.C and stdafx.h


    FIRST.CPP:


    #include "stdafx.h"
    extern "C" void callmethod();
  3. Replies
    1
    Views
    4,141

    GetLastError()

    I am asked to find out if 'GetLastError()' works on Windows and Linux. How can I do that?
    Can anyone tell me how to find this.

    Thanks,
    Chandana.
  4. Replies
    4
    Views
    8,919

    Thanks to all.

    Thanks to all.
  5. Replies
    4
    Views
    8,919

    GetCurrentThreadId()

    Hi,

    GetCurrentThreadId() works on a WIN32 machine. Can anyone tell me if GetCurrentThreadId() works on a linux machine. If it does work also let me know the header file to include.

    Thanks,...
  6. Thanks for the reply. Can you give me some...

    Thanks for the reply.
    Can you give me some sample code which uses this gethostname(). I am trying to call gethostname() from the main function, but I am getting "segmentation fault" error.
  7. how to get hostname and IP address of a machine

    Hi,

    I want to get the hostname and the ip address of the machine in C on both windows and linux environments. Are there any functions in C which will give me this information?

    Thanks,...
  8. Replies
    5
    Views
    3,991

    how to run a C executable on Windows/Linux

    Hi,

    I wrote a C program which works on both Windows and Linux. I did this using precompiler #if WIN32 and #if linux. When I compile and run on different machines, it is working. But what I want...
  9. Thread: Finding OS

    by Chandana
    Replies
    13
    Views
    2,564

    Thankyou

    Thanks to all. Your suggestions have helped me a lot.

    Chandana.
  10. Thread: Finding OS

    by Chandana
    Replies
    13
    Views
    2,564

    Finding OS

    Hi,

    I am trying to write a C program that outputs the OS of the system. Does C have any functions that outputs the system properties. I didnot find any function which does this for me. Can...
Results 1 to 10 of 10