>> When I catch sysAppLaunchCmdExgReceiveData I need to open my database to
>> store the incoming data. Chances are it's open already - at the moment I'm
>> testing using loopback so it's guaranteed to be open already.
>>
>> But I need to get a reference to it, so I call DmOpenDatabaseByTypeCreator,
>> passing it dmModeReadWrite as the mode to open it in.
>>
>> For some reason it's failing - returning a NULL DmOpenRef. Calling
>> DmGetLastErr reports 0x216, which seems to correspond to
>> dmErrAlreadyOpenForWrites (dmErrorClass | 22). The same function is
used to
>> open the database each time (ie during "normal" execution and when handling
>> Exchange codes...
>
>Essentially you must determine if you launch code indicates that the app is
already
>present and globals are ok to use. If globals are present then use them to
obtain
>the DmOpenRef already in use.
Hiya - I'm checking the launch flags, it's a sub call all right, the
CodeWarior debugger shows my globals as being NULL pointers, so I can't use
them to obtain the DmOpenRef already in use.
Hence I call my open database routine, and it fails with
dmErrAlreadyOpenForWrites as mentioned above.
Sorry for all the questions :(
Paul.