Search:

Type: Posts; User: TheDeveloper

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    6,774

    So the above one gives ARGB values in ARGB8888...

    So the above one gives ARGB values in ARGB8888 format, where TempColor is in APRG1555 ?
  2. Replies
    3
    Views
    6,774

    Color Conversion

    I use the following to convert from ARGB1555 to ARGB8888


    TempColor = ((pColor->Value.argb.B & 0xF8) << 7) |
    ((pColor->Value.argb.G & 0xF8) << 2) |
    ...
  3. Replies
    7
    Views
    2,100

    so this one works fine ? cant i do it without...

    so this one works fine ?
    cant i do it without sprintf ?


    function(R, G, B)
    {
    char a[10];
    u_int32 color;

    sprintf(a, "FF%02x%02x%02x", R, G, B);
  4. Replies
    7
    Views
    2,100

    Yes sprintf works if I need to store the...

    Yes sprintf works if I need to store the formatted text in char. But my requirement is all about to store the hex values in int32. can anyone tell me how to do it ?


    char color[10];
    ...
  5. Replies
    7
    Views
    2,100

    thanks for your reply OK, how to get the final...

    thanks for your reply

    OK, how to get the final value into variable


    Say Input is

    a = {255, 0, 0. 0} which is in the format a ={a, r, g, b}

    printf("%02x%02x%02x\n", r, g, b);
  6. Replies
    7
    Views
    2,100

    array to hexadecimal variable

    Please anyone tell me how to convert array to hexadecimal variable


    Input:
    a = {255, 0, 0, 0 }

    I need output as

    a = FF000000
  7. Replies
    2
    Views
    1,124

    Thanks for your quick response. Yes there may be...

    Thanks for your quick response.
    Yes there may be different ways for checking CRC but all those ways should produce unique results right ?
  8. Replies
    2
    Views
    1,124

    CRC32 related question

    I am working with CRC and finding two different solution for it, where I am getting different values for two different solutions.

    Please anyone explain me the differences.

    First set of values:...
  9. Yes it works, thanks a lot.

    Yes it works, thanks a lot.
  10. Thanks a lot for your reply but my case is...

    Thanks a lot for your reply but my case is different here

    I will have " and " in the start and end of the string.

    for example :
    Input : "Word"
    Output : Word

    I need to remove these " and "...
  11. Function for removing character from a word

    Is there any function in C to remove a character from a word ?
  12. Replies
    2
    Views
    1,043

    Buffer to File

    can you anyone explain me how to convert buffer data to an file ?
  13. Replies
    6
    Views
    1,583

    Source code for C games

    I need source code for few C games.
    Please tell me where can I get the code from ?
    Direct links are appreciated.

    Thanks
  14. Replies
    9
    Views
    2,203

    Please debug this program

    main()
    {
    printf("%d",i);
    sum();
    printf("%d",i);
    }

    static int i;

    sum(void);
  15. Replies
    15
    Views
    3,462

    thanks for your answer #include...

    thanks for your answer


    #include<stdio.h>
    #include<conio.h>
    void main()
    {
    unsigned max,min;
    min = 0;
    clrscr();
  16. Replies
    15
    Views
    3,462

    can someone explain what exactly this code does?

    can someone explain what exactly this code does?
  17. Replies
    15
    Views
    3,462

    Any luck that the values can be displayed using...

    Any luck that the values can be displayed using bitwise operator?

    thanks in advance
  18. Replies
    15
    Views
    3,462

    can you please explain me with sample code to...

    can you please explain me with sample code to retrieve that data from limits.h ?

    thanks in advance
  19. Replies
    15
    Views
    3,462

    thanks for the quick answer If there any way...

    thanks for the quick answer

    If there any way to find print minimum and maximum value accupied by different data types ?

    say for example

    "int" ranges between "-32,768 -> +32,767"
  20. Replies
    15
    Views
    3,462

    Memory related question in C

    I want to write a c program to display list of data types and their corresponsing memory allocation size

    There is any keyword in C which prints that "int" occupies "16" bits or such a kind of code...
Results 1 to 20 of 20