Search:

Type: Posts; User: 99bobster99

Search: Search took 0.00 seconds.

  1. I am getting an error during the calculation of...

    I am getting an error during the calculation of "n"?? For the;




    n=(int*)Posn;

    and

    n=(int *)Posn;
  2. Thank you for the explanation Maz, I understand...

    Thank you for the explanation Maz, I understand it fully now!

    Is the same theory used for manipulating the individual bits?
  3. Can someone describe what is actually happening...

    Can someone describe what is actually happening at each of these instructions for data manipulation? I would also like to do this for manipulating (read/change) for the individual bits of the data.
  4. Is there a way to do the same data "manipulation"...

    Is there a way to do the same data "manipulation" for the individual bits of a value?
  5. That worked perfectly, thank you!

    That worked perfectly, thank you!
  6. That worked, thanks oogabooga! How do I then...

    That worked, thanks oogabooga!

    How do I then convert my long integer back to a decimal? In this case my n is now equal to "-12525", which is good. I get the value "-125.000", in g, when I do this;...
  7. I have an array of individual hex values, which...

    I have an array of individual hex values, which when concatenated, are the actual value. Like this;

    Posn[0] = "0x13"
    Posn[1] = "0xcf"
    Posn[2] = "0xff"
    Posn[3] = "0xff"

    The actual value of I...
  8. Converting Hex to Decimal (strtol) not working?

    Hello,

    I know I am missing something here, can someone tell me how to fix the code below to convert the hex values to a decimal value? At the moment lint1 always equals "0", which is an error;

    ...
  9. I want to stay in the C programming realm. I will...

    I want to stay in the C programming realm. I will change the commands around. Thank you for pointing that out!

    for interest sake, you guys showed me how to get the "Long" into (4) hex values...
  10. Claudiu, thank you for pointing this out! This...

    Claudiu, thank you for pointing this out! This will come in handy since I need to eventually convert this code to Linux (Fedora 13.0). I was told that as long as I keep everything in "C", it should...
  11. Thank you Cynic and iMalc, you guys are awesome!...

    Thank you Cynic and iMalc, you guys are awesome! This worked perfectly! I see the lameness in my last question, since inverting the order of the "shift_counter" array to 0, 8, 16 and 24, reversed the...
  12. Thank you for the lesson folks, very informative!...

    Thank you for the lesson folks, very informative! How about the shuffling of the bytes from front to back, is there an easier way to accomplish this?
  13. I can see what the mask is doing, but what does...

    I can see what the mask is doing, but what does the " >> 24" and " >> 16" do? Is there an easy way to do the mask shifting in a loop? What happens if you have multiple array positions to fill?
  14. Help, newbie question. Copy Long into an unsigned char array issue

    Hello,

    I am a C programming newbie. This is my first program and I have made it through quite well, researching tutorials on the web etc. I have a hurdle I just cannot figure out;



    int...
Results 1 to 14 of 14