i already tried a while loop..
the program wont catch user events..it will get stuck in that infinite loop..
Type: Posts; User: majoub
i already tried a while loop..
the program wont catch user events..it will get stuck in that infinite loop..
well actually i'm trying to create my own message boxes..
and i need a way to stop execution of my program after the message box pops up and wait for user events. then resume the execution after...
hi
I am searching for a way to suspend the execution of a C/C++ program.. I know there is the Sleep function but that only stops the program for a specified number of seconds...
what i need is...
that's right!
I can't believe I forgot to do this!!
thanks a lot
i'm sure that the code is OK but I keep on getting a negative descriptor here:
-> sock = socket(PF_INET, SOCK_DGRAM,0);
I'm using Windows visual C++... I made a link to wsock32.lb....
ok here's one part of my code...
int main(int argc, char **argv)
{
int sock;
int port, queryCode, length;
int clientSock;
char message[260];
struct sockaddr_in servSock_in;
another question...
something really wierd is happeneing to my UDP server...I just can't open a socket...the socket descriptor keeps getting a negative value...
the funny thing is that the...
hi,
It's the first time I use UDP socket so my questions might seem very basic...
I'm building a client server application using UDP protocols...
can anyone explain to me the recvfrom()...
hi,
one of the functionalities of my program is to open and run other exe files..
I think I should use the system function but I don't know what to write...
any thoughts?
well i use viusal C++ 6.0
I know it's a simple question...
so how can you compile and build (.exe) a C program on the windows command line? i used build but it didn't work..
hum are you sure about this function? this will work for numbers between 0 and 10...I guess I'll have to add a loop..
hi
I'm trying to print in binary the data stored in a string..
here's the string:
char test[20];
strcpy(test, "any data");
so how to print the bits?
is there an escape sequence that i can...
hi
I'm searching for a function defined in C that can recognize if a certain character is a digit or not... is there a "isDigit()" function in C?
the file should not be opened? i thought it was supposed to be opened before being renamed...
anyway here's a part of my code, just ignore the networking part..
if( (inputFile = fopen(file1,...
the file i'm accessing is fopened yes
its okay i think i found the error...i'm sending bytes from a client application to a server application and i made an indexing mistake when storing the bytes in a buffer...so basically i have wrong...
ok I got in fact a negative value but why? I opened the file in "wb" mode...
hi
I'm trying to change the names of some files (all kinds of files)...
I've been trying to use the rename() function...
I don't know why but the content of the file I am trying to manipulate...
no the size of the buffer is not the issue here...(my buffer is of size 65000)...
when the message is long you might loose some bytes while sending it...actualy you don't loose them, they are still...
I solved my pcking problems but it seems that when I'm trying to send a large number of bytes say 50KB I'm loosing part of the data...
hi maththeorylvr
I'm just learning about bit shifting...
since you're talking about bit shifting, can you explain bit shifting in this example:
int id = 256;
char buffer[4];
buffer[0] =...
hi
I've been reading some tutorials on packing a message before sending it to the server..and I haven't been doing very well..
I have here an example of a message being packed can someone...
i see
thanks
hi
I'm new to C programming and I have noticed that the C compiler do not help you a lot when it comes to run time errors. btw I use visual C++.... I've been trying some FILE I/O testing and I...