Search:

Type: Posts; User: goldenrock

Search: Search took 0.00 seconds.

  1. Replies
    3
    Views
    3,412

    ok,thx. what's this below? another way of...

    ok,thx.

    what's this below? another way of capture keys? how to?
    #define SHIFT_R 0x0001
    #define SHIFT_L 0x0002
    #define CTRL 0x0004
    #define ALT 0x0008
    #define SCROLL_LOCK_ON 0x0010
    #define...
  2. Replies
    3
    Views
    3,412

    how to capture CTRL, SHIFT and ALT ?

    CTRL SHIFT and ALT ?
    They have no ascii or extended ascii, how to capture?
    -------------------

    what's this below? another way of capture keys? how to?
    #define SHIFT_R 0x0001
    #define SHIFT_L...
  3. Thread: Strcmp

    by goldenrock
    Replies
    11
    Views
    1,493

    str1 is a pointer, its value is a memory address,...

    str1 is a pointer, its value is a memory address,
    *str1 is a char which str1 point to.

    I don't understand your second sentence,sorry.
  4. Thread: Strcmp

    by goldenrock
    Replies
    11
    Views
    1,493

    I wrote one for you

    //if str1 is bigger return a positive number,
    //if str2 is bigger return a negative number,
    //equal reutrn 0
    int strcmp(char *str1,char *str2)
    {
    while(1)
    {
    if(*str1==*str2)
    ...
  5. Replies
    12
    Views
    2,583

    Salem, thank you for giving me such an...

    Salem,
    thank you for giving me such an inspirational hint.
    I think I get it.
    You mean 256 is necessary, right?
    then the code must go this way:


    int mygetch(void)
    {
    int ch=getch();
  6. Replies
    12
    Views
    2,583

    The Problem has been solved :) thanks to all...

    The Problem has been solved :)

    thanks to all of you,
    Special thanks to Salem and CodePlug.

    to CodePlug and Salem,
    I think plus 512 and 256 is not needed in the code anymore.

    The Final...
  7. Replies
    12
    Views
    2,583

    I am sorry to trouble you again, Salem Your...

    I am sorry to trouble you again, Salem

    Your method is working well for keys F1--F12,
    but the rest don't work.
    what's wrong?



    int mygetch ( void ) {
    int ch = getch();
  8. Replies
    12
    Views
    2,583

    thanks for all of you, to Salem, I know...

    thanks for all of you,

    to Salem,
    I know EXTENDED KEY needs two bytes,
    I also find a link full of these extended keys,as below:
    http://www.teletechnics.co.nz/reference/ascii_codes.html

    but,...
  9. Replies
    12
    Views
    2,583

    I think that can't capture the 'page down'

    I think that can't capture the 'page down',

    any other method?
  10. Replies
    12
    Views
    2,583

    capture key problem

    in c programming,
    how can I capture keys like "page down", "ctrl+?", etc. using standard library?
Results 1 to 10 of 10