Search:

Type: Posts; User: majoub

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    8
    Views
    4,231

    i already tried a while loop.. the program wont...

    i already tried a while loop..
    the program wont catch user events..it will get stuck in that infinite loop..
  2. Replies
    8
    Views
    4,231

    well actually i'm trying to create my own message...

    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...
  3. Replies
    8
    Views
    4,231

    suspend execution of a program

    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...
  4. Replies
    9
    Views
    3,182

    that's right! I can't believe I forgot to do...

    that's right!
    I can't believe I forgot to do this!!
    thanks a lot
  5. Replies
    9
    Views
    3,182

    i'm sure that the code is OK but I keep on...

    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....
  6. Replies
    9
    Views
    3,182

    ok here's one part of my code... int...

    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;
  7. Replies
    9
    Views
    3,182

    another question... something really wierd is...

    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...
  8. Replies
    9
    Views
    3,182

    Problems with UDP sockets

    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()...
  9. Replies
    1
    Views
    1,619

    running exe file

    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?
  10. Replies
    2
    Views
    1,381

    well i use viusal C++ 6.0

    well i use viusal C++ 6.0
  11. Replies
    2
    Views
    1,381

    how to compile on the command line

    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..
  12. Replies
    5
    Views
    8,626

    hum are you sure about this function? this will...

    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..
  13. Replies
    5
    Views
    8,626

    how to print bits?

    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...
  14. Replies
    3
    Views
    1,059

    looking for some functions in C

    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?
  15. Replies
    9
    Views
    1,550

    the file should not be opened? i thought it was...

    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,...
  16. Replies
    9
    Views
    1,550

    the file i'm accessing is fopened yes

    the file i'm accessing is fopened yes
  17. Replies
    9
    Views
    1,550

    its okay i think i found the error...i'm sending...

    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...
  18. Replies
    9
    Views
    1,550

    ok I got in fact a negative value but why? I...

    ok I got in fact a negative value but why? I opened the file in "wb" mode...
  19. Replies
    9
    Views
    1,550

    changing file names

    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...
  20. Replies
    4
    Views
    1,692

    no the size of the buffer is not the issue...

    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...
  21. Replies
    4
    Views
    1,692

    I solved my pcking problems but it seems that...

    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...
  22. Replies
    16
    Views
    41,106

    hi maththeorylvr I'm just learning about bit...

    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] =...
  23. Replies
    4
    Views
    1,692

    packing a message

    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...
  24. Thread: ERROR messages

    by majoub
    Replies
    2
    Views
    1,209

    i see thanks

    i see
    thanks
  25. Thread: ERROR messages

    by majoub
    Replies
    2
    Views
    1,209

    ERROR messages

    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...
Results 1 to 25 of 30
Page 1 of 2 1 2