Search:

Type: Posts; User: elfjuice

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Awesome. That helps. Thanks

    Awesome. That helps.

    Thanks
  2. It is u_int64_t as defined in sys/types.h (unix)....

    It is u_int64_t as defined in sys/types.h (unix).

    Thanks for the help. But if my shift method works correctly then I will leave it how it is.

    Thanks again.
  3. I've never heard of unions in C. How would that...

    I've never heard of unions in C. How would that work in this context?

    Also.. How could I print a u_int64_t to stdout? %lld doesn't seem to work.
  4. Converting two 32-bit ints to a u_int64_t...

    I have a function that retrieves the high and low order bits of the CPUs cycle-counter (Using GCC asm):



    void access_counter(unsigned *hi, unsigned *lo) {
    asm("rdtsc; movl %%edx,%0;...
  5. Replies
    7
    Views
    1,657

    Awesome. You guys got me on the right track. ...

    Awesome. You guys got me on the right track. Now I can work on some less trivial homework.

    Is it just me or are pointers different in C than C++? I always though that if you pass a pointer into...
  6. Replies
    7
    Views
    1,657

    This is a homework assignment for cs-200. And...

    This is a homework assignment for cs-200. And the function you posted is the exact function I need to rewrite without recursion.
  7. Replies
    7
    Views
    1,657

    Thanks for the reply. Yes, that is how I'm...

    Thanks for the reply. Yes, that is how I'm calling addword(). Except root starts out as NULL. so for the first call the function is just:



    struct node*
    addword2(struct node* p, char *w)
    {...
  8. Replies
    7
    Views
    1,657

    Trouble with pointers..

    I'm sure this is a very common problem. No matter how many times I've delt with pointers, they always end up confusing me. Especially in c.

    I'm trying to pass a pointer to the root of a binary...
  9. Ah... Thanks, that was, infact, the problem. For...

    Ah... Thanks, that was, infact, the problem. For some reason I never caught that.

    Thanks :)
  10. Problem with my NULL-terminated string class

    I was writting a null terminated string class, and it was going pretty smoothly, but my pushBack function seems to not work, here is some of the code:



    ///////////////// STRING.H...
  11. Replies
    1
    Views
    1,373

    Winsock question

    How would I make a client program that tries to connect to a server, and if it failed, tries to connect again, until it successfuly connects?
  12. Replies
    8
    Views
    7,335

    Nevermind about the binary question, I answered...

    Nevermind about the binary question, I answered it myself in oen of my own posts, lol... thanks a lot man!!
  13. Replies
    8
    Views
    7,335

    Thank you so much! it works great! One question,...

    Thank you so much! it works great! One question, how can i transfer binary files?
  14. Replies
    8
    Views
    7,335

    wow... thanks for the great reply! I got it...

    wow... thanks for the great reply!

    I got it working, with just one bug...



    void sendFileSize(char *filename, SOCKET socket) {
    char buffer2[256];
    sprintf(buffer2, "%i",...
  15. Replies
    8
    Views
    7,335

    int sendFile(char *filename, SOCKET socket) {...

    int sendFile(char *filename, SOCKET socket) {
    long size = getFileSize(filename);

    if(size == -1 || size == 0) {
    //sendCommand(socket, "111");
    return -1;
    }

    FILE *file =...
  16. Replies
    8
    Views
    7,335

    File transfer through winsock

    Here is what I got so far:



    int sendFile(char *filename, SOCKET socket) {
    long size = getFileSize(filename);

    FILE *file = fopen(filename, "r");

    char* tmp;
  17. Replies
    1
    Views
    1,432

    Getting directory information.

    How can I get directory information?

    I have a client/server program and I want the server to be able to browse the client's file system, and eventualy transfer files.

    But how can this be done?
  18. Replies
    3
    Views
    3,909

    Text-to-speech in C++

    I've searched the forums and found a couple topics.. but none of them contained answers... one contained borken links to msdn, and i tried to navigate to it manually in msdn but found nothing...
    ...
  19. Replies
    4
    Views
    1,095

    Thank you! You fixed my problem

    Thank you! You fixed my problem
  20. Replies
    4
    Views
    1,095

    Problem With Vc++7 And Dialog Boxes...

    I'm writing a win32 app in Win API, using VC++ 7.0.

    So I made my dialog box in the resource editor... and put this code in my main.cpp



    BOOL CALLBACK MainDlgProc(HWND hwnd, UINT Message,...
  21. Replies
    1
    Views
    1,446

    I figured it out myself... if anyone else runs...

    I figured it out myself... if anyone else runs into this from the search function or whatever, the way I did it was.



    SetForegroundWindow(GetConsoleWindow());

    HANDLE hOut;...
  22. Replies
    2
    Views
    1,253

    disabling ALL keys?

    I searched for disabling keys, and i found some stuff about hooks. But I never figured out how to catch keys. And I heard somewhere that ctrl+alt+delete can't be stopped with hooks...

    I thought...
  23. Replies
    1
    Views
    1,446

    Forcing a window as selected

    ShowWindow(hWnd, SW_SHOW);
    SetForegroundWindow(GetConsoleWindow());

    keybd_event(VK_MENU, 0x38, 0, 0);
    keybd_event(VK_RETURN, 0x1c,0,0);...
  24. Thread: Winsock logic

    by elfjuice
    Replies
    1
    Views
    1,062

    Winsock logic

    Here is what I want the CLIENT to do.

    Check and see if the server is up, if not, keep trying until it is.
    If the server is up, then connect to it.
    If the server goes offline or quits. Go back...
  25. Replies
    2
    Views
    1,583

    Forcing buttons...

    Hey,

    How is it possible to force keyboard/mouse buttons down... not physicaly, obviously. But how (in Win32) can I force mouse/keyboard buttons down?

    Thanks
Results 1 to 25 of 100
Page 1 of 4 1 2 3 4