Thanks for the reply.
what should I do if I want to get "This is C code" as the output.
Type: Posts; User: Chandana
Thanks for the reply.
what should I do if I want to get "This is C code" as the output.
Hi,
I have the following code - FIRST.CPP, CALL.C and stdafx.h
FIRST.CPP:
#include "stdafx.h"
extern "C" void callmethod();
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.
Thanks to all.
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,...
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.
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,...
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...
Thanks to all. Your suggestions have helped me a lot.
Chandana.
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...