Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Connecting to CE Device via RAPI API
Message
From
04/03/2014 13:25:02
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01595750
Message ID:
01595759
Views:
39
>My VFP 9 program connects to Pocket PC (device using Windows Mobile 6.5) via API functions in RAPI. The code works for all customers but one who just recently upgraded his computer to Windows 7. He installed Windows Mobile Center 6.1 (which is a replacement of ActiveSync used on XP). Btw, many other customers (and myself) use Windows Mobile Center 6.1 to connect the Pocket PC to the desktop. But this one customer has the following problem:
>He can go to the File Management of the Windows Mobile Center 6.1 and view all folders and files on the Pocket PC; no problem. But my VFP 9 program fails to see any folders on the Pocket PC and it fails to copy/write a test file to the Pocket PC. The RAPI function that copies a file to the Pocket PC gets handle -1 (failed) and the RAPI error (CeGetLastError()) always returns 0.
>
>If anybody has suggestions to what I may try or change, I would appreciate it. (I only wish that there were another way to connect the desktop to the Pocket PC rather than Windows Mobile 6.1).

Caveat: I haven't used WinCE or RAPI, speaking generally here.

Maybe Windows Firewall on the Win7 box is blocking traffic either to or from the CE device via RAPI. My guess is the installer for Windows Mobile Center 6.1 automatically opened ports and/or added entries to the allowed programs list, but those may not include permissions required for RAPI.

If you have another Win7 computer where things are working properly, you could compare the firewall configurations of the two computers.

I don't know if connecting a WinCE device causes Win7 to create a new network connection. If so, maybe the user got the dialog asking which type of network it is, and chose something restrictive like "Public" rather than "Work" or "Home".
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform