Maybe this is something I missed somewhere (rtfm?), but I am finding that a
DmWrite with a size of Byte (1) fails.
I've run into an SDK "feature" recently, and didn't know if this is a known
or not.
Here is my setup:
CW R6 (PC)
Palm OS 3.1 SDK
function DmWrite(...)
Called from a C++ class function.
Pseudo code:
{
...
Byte level = 100;
Long longLevel = 100;
DmWrite( src, offset, &level, sizeof(level) ); // Sets value to 0
regardless.
DmWrite( src, offset, &longLevel, sizeof(longlevel) ); // Works fine!
... // actually, level is a member variable of the class, but that
shouldn't matter.
}
So.. I have had to change all of my byte size values to use DmSet(src,
offset, 1, level), which works fine. The thing I don't like about doing that
is the chance of messing up if the type of "level" changes.
Is this a known "feature"?
Bryan Nystrom
Natara Software, Inc. http://www.natara.com
ICQ: 2526059 (630) 579-0958