If I do something like this:
Err NetPalm7Init (UInt16 *WirelessPort, MemHandle *WirelessData)
{
Char config[15]=".CTPDefault";
UInt16 configindex;
UInt32 param;
Err err;
UInt32 set;
err = SysLibFind("INet.lib", WirelessPort);
if (err) {
*WirelessPort = 0;
}
else {
INetLibConfigIndexFromName(*WirelessPort,(INetConfigNamePtr)config,
&configindex);
INetLibOpen(*WirelessPort, configindex, 0, NULL, 0,WirelessData);
}
return (err);
}
WirelessData doesn't get initilized right (compared to sample apps I've
used). I can see no differnce between what I'm doing and what they're
doing, but for instance, if I look at WirelessData in the CW debugger, I
see:
WirelessData - 0x0001A87E
- *WirelessData - 0x800015C0
- **WirelessData - 0
However, in other apps, the **WirelessData becomes a value...
I can use the INetLib mostly correctly after this, but the emulator yells
at me about direct memory accesses on sockets later on and it's causing
some real device problems.
What am I doing wrong????
--
For information on using the ACCESS Developer Forums, or to unsubscribe, please
see http://www.access-company.com/developers/forums/