Neil Toulouse
Programmer
Hi folks!
I am trying to use Microsoft's ActiveSync to copy an MDB file from the desktop to a Pocket PC (with VFP) and get it to convert it to CDB during the process. I was pointed in the direction of the DEVICETODESKTOP function. As usual the example code is VB and I have no experience of using these API calls so I could be doing this all wrong anyway!!
Basically I have to declare two of the parameters as Boolean (SYNC and OVERWRITE) as I have indicated below (which I know won't work). I have changed them to INTEGER and sent 0 and 1 which was accepted but nothing happened.
So am I doing it correctly with declaring them as INTEGER and using 0 & 1 and my problem lies elsewhere, or am I doing it all wrong anyway?!!
#DEFINE DESKTOPLOCN "C:\DATA\MyTable.MDB"
#DEFINE TABLELIST "PDA_CN..PDA_ATT"
#DEFINE SYNC .F. (or 0)
#DEFINE OVERWRITE .T. (or 1)
#DEFINE DEVICELOCN ""
DECLARE INTEGER DEVICETODESKTOP IN [c:\program files\microsoft activesync\adofiltr.dll] ;
STRING, STRING, LOGICAL (or INTEGER), LOGICAL (or INTEGER), STRING
= DEVICETODESKTOP( DESKTOPLOCN, TABLELIST, SYNC, OVERWRITE, DEVICELOCN )
TIA
Neil
"I like work. It fascinates me. I can sit and look at it for hours..."
I am trying to use Microsoft's ActiveSync to copy an MDB file from the desktop to a Pocket PC (with VFP) and get it to convert it to CDB during the process. I was pointed in the direction of the DEVICETODESKTOP function. As usual the example code is VB and I have no experience of using these API calls so I could be doing this all wrong anyway!!
Basically I have to declare two of the parameters as Boolean (SYNC and OVERWRITE) as I have indicated below (which I know won't work). I have changed them to INTEGER and sent 0 and 1 which was accepted but nothing happened.
So am I doing it correctly with declaring them as INTEGER and using 0 & 1 and my problem lies elsewhere, or am I doing it all wrong anyway?!!
#DEFINE DESKTOPLOCN "C:\DATA\MyTable.MDB"
#DEFINE TABLELIST "PDA_CN..PDA_ATT"
#DEFINE SYNC .F. (or 0)
#DEFINE OVERWRITE .T. (or 1)
#DEFINE DEVICELOCN ""
DECLARE INTEGER DEVICETODESKTOP IN [c:\program files\microsoft activesync\adofiltr.dll] ;
STRING, STRING, LOGICAL (or INTEGER), LOGICAL (or INTEGER), STRING
= DEVICETODESKTOP( DESKTOPLOCN, TABLELIST, SYNC, OVERWRITE, DEVICELOCN )
TIA
Neil
"I like work. It fascinates me. I can sit and look at it for hours..."