At 09:50 PM 7/21/99 -0400, you wrote:
>Running on POSE 2.0b3, PalmOS 3.0... using CW/Palm R5 for Win...
>I have the following bit of code:
>
>    void foo(DmOpenRef dbRef, UInt index)
>    {
>        UInt    insertAt = index;
>        MyType  data;
>
>        hRec = DmNewRecord(dbRef, &insertAt, sizeof(data));
>
>        /* fill data, DmWrite to hRec */
>    }
>
>
>So, obviously, my question is what possible reasons might I not be able to
>attach a record to a newly created, valid, empty database?  Is there a
>minimum for sizeof(data)?
>

Sorry, I probably don't have a solution - I just wanted to mention that I
seem to remember using sizeof() on a variable of a user defined type and it
was returning 0 ... so I replaced it with the type name instead & it worked
fine.  Might be a work-around for you, even if it could be an OS/Metrowerks
bug.

Reply via email to