I am trying to use the function CeDeleteFile in the Win CE / ActiveSync RAPI.DLL without success.
I declare the functions with:
declare integer CeRapiInit in rapi.dll
declare integer CeDeletefile in rapi.dll string filename
I first initialize the RAPI with:
result = CeRapiInit()
The value of zero is returned.
I then try to delete the file with:
result = CeDeleteFile("\My Documents\mydatabase.cdb")
Again, the value of zero is returned. According to the documentation, success will return a value greater than zero.
I then call CeRapiGetError() to get the error code. It returns -2147014795 I do not have access to or know how to get the description of this error.
Any suggestions?
Thanks.
I declare the functions with:
declare integer CeRapiInit in rapi.dll
declare integer CeDeletefile in rapi.dll string filename
I first initialize the RAPI with:
result = CeRapiInit()
The value of zero is returned.
I then try to delete the file with:
result = CeDeleteFile("\My Documents\mydatabase.cdb")
Again, the value of zero is returned. According to the documentation, success will return a value greater than zero.
I then call CeRapiGetError() to get the error code. It returns -2147014795 I do not have access to or know how to get the description of this error.
Any suggestions?
Thanks.