Follow these steps to implement basic desktop synchronization:
Unlike the device DLL, the desktop DLL needs to implement a true COM component. This means that a class factory and standard COM-exported functions are required. The DLL can be written from the ground up (as is done with the sample application presented in this chapter), or you can choose to use MFC or ATL to simplify the task. The Windows CE DLL will obviously be implemented using Unicode (wide) strings. The desktop PC DLL is best implemented to use ANSI (multi-byte) characters, since the structures passed from the ActiveSync service contain ANSI strings. The data transferred between the Windows CE and desktop PC DLLs can be either Unicode or ANSI it is your choice. However, you will need to convert the strings from Unicode to ANSI (for data being transferred from the Windows CE device to the desktop PC) or from ANSI to Unicode (for data being transferred from the desktop PC to the Windows CE device). You can perform this conversion either on the CE device or on the desktop PC.
|