Search:

Type: Posts; User: cdave

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    8
    Views
    1,650

    Ha! Yeah! Go RTFM! All of them. Then search...

    Ha!

    Yeah! Go RTFM! All of them. Then search and search. Then, and only then, may
    you ask a simple question.

    :-)

    I wonder what words Predlude thinks should be searched.

    and Prelude's...
  2. Replies
    2
    Views
    3,389

    I found this: ...

    I found this:

    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winsock/winsock/ioctlsocket_2.asp


    //-------------------------
    // Set the socket I/O mode: In this case FIONBIO...
  3. Replies
    2
    Views
    3,389

    Create a blocked/unblocked socket?

    Hello,
    How does one create a blocked socket?
    How does one create an unblocked socket?
    Where is the Win API documentation for this?
    Thank you.

    Here is the standard generic code for creating a...
  4. Replies
    6
    Views
    1,722

    Thanks bithub.

    Thanks bithub.
  5. Replies
    6
    Views
    1,722

    Thanks for the help. I changed ILPDWORD to...

    Thanks for the help.

    I changed ILPDWORD to LPDWORD and still got an error.



    C:\gcc\Progs\examples>gcc e1.c -lws2_32 -o e1.exe
    e1.c: In function `main':
    e1.c:20: warning: assignment makes...
  6. Replies
    6
    Views
    1,722

    Can't compile simple WSAEnumProtocols()

    Hello,
    I cannot get a simple WSAEnumProtocols to compile.
    What's wrong?
    Thank you.

    The program e1.c:


    //gcc e1.c -lws2_32 -o e1.exe
    #include <windows.h>
  7. Replies
    7
    Views
    2,064

    Dave, thank you for trying, I appreciate it.

    Dave, thank you for trying, I appreciate it.
  8. Replies
    7
    Views
    2,064

    Dave, I have no idea what you are talking...

    Dave,

    I have no idea what you are talking about. You wrote a C program, which I understand.

    I want to execute a grep from a dos prompt.

    I am grepping the output of a C program (ctags). I...
  9. Replies
    7
    Views
    2,064

    Do you mean to hit the tab key instead of typing...

    Do you mean to hit the tab key instead of typing \t?

    (When I hit the tab key, doskey brings up file names)
  10. Replies
    7
    Views
    2,064

    simple grep problem

    In my WindowsXP/dos window, how do I grep for a tab?

    I try
    > grep "\t" file.txt
    which gives me every line with a "t" in it, not tab.

    Thank you
  11. Replies
    9
    Views
    2,290

    Salem, thank you. That is sort of what I am...

    Salem, thank you. That is sort of what I am looking for. It seems this must be an age old problem, and I'm hoping there is a good program laying around somewhere. I am trying to concentrate on C,...
  12. Replies
    9
    Views
    2,290

    How to eliminate irrelevant conditionals?

    Hello,

    I am trying to read source code for an editor (Vim, available at sourceforge.net) but I find the plethora of precompiler conditionals very confusing (see code below). Virtually all...
  13. Replies
    6
    Views
    2,301

    ...a hint?... #include #include...

    ...a hint?...


    #include <stdio.h>
    #include <ctype.h>

    int main(void) {
    int coords[7][24];
    char buffer[] = "0 3 3 3 0 0 0 7 7 7 0 0 0 11 11 11 0 0 0 15 15 15 15 0";
  14. Replies
    6
    Views
    3,448

    int sortCompare(const void *str1, const void...

    int sortCompare(const void *str1, const void *str2){
    const char *p1 = str1;
    const char *p2 = str2;
    if ( *p1 == '.' )
    P1++;
    if ( *p2 == '.' )
    p2++;
    return strcmp ( p1, p2 );
    }
  15. Replies
    5
    Views
    5,062

    For a child window, I answered my own question:...

    For a child window, I answered my own question:
    (left/right mouse clicks change the color of main or child windows)


    // basic window red, child window white; change background color on...
  16. Replies
    2
    Views
    5,085

    anonytmouse, thank you. I replaced...

    anonytmouse, thank you.
    I replaced WS_OVERLAPPED with WS_CAPTION and the program worked fine.
    Thanks very much for your help.
  17. Replies
    5
    Views
    5,062

    Good question, that I am also curious about. I...

    Good question, that I am also curious about.

    I can change the color of an edit box, but I don't know how to change the color of a regular child window. (A few weeks ago I posted code to change...
  18. Replies
    2
    Views
    5,085

    Simple AdjustWindowRect() problem

    I'm trying to make a window that is exactly 10 lines by 40 characters. (The below program is simplified)

    The program works fine if I use WS_POPUP|WS_CAPTION|WS_SYSMENU

    But if I use...
  19. Replies
    3
    Views
    3,624

    That worked! Thanks!

    That worked! Thanks!
  20. Replies
    3
    Views
    3,624

    wininet/gcc - how to?

    Hello, I'm trying to use wininet with gcc. This simple example program compiles but does not link ("undefined reference", see below).

    Thanks for all help.


    // compile/link:
    // gcc -c test.c...
  21. Thread: newb to winsock

    by cdave
    Replies
    3
    Views
    1,917

    If you are serious, I strongly recommend you...

    If you are serious, I strongly recommend you buying a book with simple examples.
    Having the book saves you a lot of time.

    Here is the network FAQ page
    ...
  22. Thread: Always On Top

    by cdave
    Replies
    4
    Views
    1,256

    MB_TOPMOST #include int...

    MB_TOPMOST


    #include <windows.h>

    int main() {
    MessageBox(HWND_DESKTOP,"Text","Title",MB_OK|MB_TOPMOST);
    }
  23. Replies
    5
    Views
    1,876

    I ran this code from this website, and it seems...

    I ran this code from this website, and it seems ok. It uses the system class "FullScreenWnd".

    "Shows how to create a top most full screen window."
    http://www.ragestorm.net/snippet?id=91

    I ran...
  24. Thread: Always On Top

    by cdave
    Replies
    4
    Views
    1,256

    Use this extended window style: WS_EX_TOPMOST

    Use this extended window style: WS_EX_TOPMOST
  25. Thread: Redrawing

    by cdave
    Replies
    6
    Views
    1,301

    This looks like a good (simple) tutorial,...

    This looks like a good (simple) tutorial, although I have not run the code.

    Tutorial - Keyboard Hook
    http://www.ragestorm.net/tutorial?id=10
Results 1 to 25 of 57
Page 1 of 3 1 2 3