Excuse he technical nature of this article, but today I solved an annoying programming problem and in the process was reminded of an important spiritual lesson.
I was using Microsoft ActiveSync to copy data from an access application to a PocketPC CE device. This is done using the external functions DESKTOPTODEVICE and DEVICETODESKTOP. On all computers around my workplace this works with no worries. However, on a client machine I was receiving the error "File not found c:\program files\microsoft activesync\adofltr.dll"
This seemed odd as the file did indeed exist. A search of the web revealed many people with the problem but few solutions. I tried some of the suggestions, most of which involved copying various DLLs from the activsync directory into the application directory of my program and re-registering them. This did not work. One suggestion did work however.
As it turns out, there are two solutions; one of which I have succesfully implemented, and another that I plan to investigate.
1) Add the ActiveSync install directory to your path.
I added c:\program files\microsoft activesync to my path environment variable.
Note you have to do this through the properties of My Computer. If you do it in a command prompt window, it will only apply during that command session.
2) The second solution is to use an API call to determine programatically, where the adofltr.dll file is located. I have not yet tried this but logic suggests it would work - without requiring clients to change their path.
(as I learn more ab out this I will post my findings with a link from this article)
I was reminded through this experience of the value of praying over our work as opposed to trying to solve difficult problems in our own strength.
Labels: active sync, prayer, programming, windows CE