Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Connecting to CE Device via RAPI API
Message
 
 
To
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:
01595763
Views:
29
>>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".

I think WinCE device does create a network connection. So I will ask the customer to turn the Windows 7 firewall off and see if it resolves the issue. Thank you.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Reply
Map
View

Click here to load this message in the networking platform