Search:

Type: Posts; User: gmrobert

Search: Search took 0.01 seconds.

  1. Replies
    16
    Views
    3,182

    strcpy((pData + (i + offset) ), pSeparator); ...

    strcpy((pData + (i + offset) ), pSeparator);

    ----------------------------------

    pData[i + offset ] = pSeparator[0];
    pData[i + offset + 1] = pSeparator[1];
    pData[i + offset + 2] =...
  2. Replies
    16
    Views
    3,182

    static UInt16 doWriteNull(Char *pData, UInt16...

    static UInt16 doWriteNull(Char *pData, UInt16 offset, Char *pSeparator, UInt16 i)
    {
    pData[i + offset ] = pSeparator[0];
    pData[i + offset + 1] = pSeparator[1];
    pData[i + offset + 2] =...
  3. Replies
    16
    Views
    3,182

    I want pDataOffset to point to pData offset by...

    I want pDataOffset to point to pData offset by (i+offset)

    Can I do that?
  4. Replies
    16
    Views
    3,182

    I can cast pData in the function, but I still...

    I can cast pData in the function, but I still cannot compile.

    What I want to do is write the 3 character string in pSeparator to the data chunk pData at the point i+offset bytes from the start of...
  5. Replies
    16
    Views
    3,182

    Am I blind ... where is it missing?

    Am I blind ... where is it missing?
  6. Replies
    16
    Views
    3,182

    I tried that but my compiler doesn't like it, I...

    I tried that but my compiler doesn't like it, I get:

    Error : illegal implicit conversion from 'char' to 'char *'
    Compress.cpp line 74 pDataOffset = ((Char *)pData)[i+*offset];



    ...
  7. Replies
    16
    Views
    3,182

    Offsetting a pointer

    I would like to have the pointer pDataOffset point to the chunk of data pData but to the byte (offset + i) from the first byte in pData.



    static void doWriteNull(MemPtr dData, UInt16 *offset,...
  8. Replies
    2
    Views
    1,565

    Can you see my screen from there?

    Can you see my screen from there?
  9. Replies
    2
    Views
    1,565

    defines in do ... while

    My compiler (Code Warrior) is not liking when I use a define in my do...while:



    #define sepMatch 1;
    #define sepNoMatch 0;


    do{
    // stuff
  10. Mats, Thank you not only did you help me...

    Mats,

    Thank you not only did you help me understand pointers but I also learned more about modulus as well.

    Thanks

    Greg
  11. Replies
    5
    Views
    941

    Mats, You are correct about MemPtr. Thank...

    Mats,

    You are correct about MemPtr.

    Thank you for pointing me in the right direction. ;)


    MacGyver,

    Char is char, Palm OS uses different names for reasons unknown to me.
  12. Replies
    5
    Views
    941

    More help with pointers

    I would like to transfer the byte in the memory chunk pData that is i bytes from the start of pData to the memory chunk newData that is (i+offset) bytes from the start of newData:

    Is there a...
  13. doRandomByte() I am trying to point to the...

    doRandomByte()

    I am trying to point to the least significant byte in numRandom:


    pByteRandom = (Int8 *)&numRandom+1;

    make sure it is not NUL (or 0x00), and simply make it 1 if it is:
  14. Kind Soul Needed: Help with Pointer Code Cleanup

    I am self-taught so for me I always have issues with understanding pointers. I understand the basics but when I try and do something complicated, I can usually figure it out but it is not very clean...
Results 1 to 14 of 14