from the previous post, msdn got the way to get the WAB (window address book)
http://msdn.microsoft.com/workshop/wab/overviews/wabovw.asp(however, I don't know how to convert the following code into vfp syntax)
____________________________________________________
Creating an Instance of WAB
To use WAB in your application, you must create and initialize the first instance of IWABObject. The following code sample demonstrates how to do this.
LPWABOPEN lpfnWABOpen = NULL; &&Defined in Wabapi.h.
HINSTANCE hinstWAB = NULL;
// Initialize
// of IWABObject.
HRESULT InitWAB (LPWABOBJECT *lppWABObject, LPADRBOOK
*lppAdrBook)
{
HRESULT hr = E_FAIL;
hinstWAB = LoadLibrary_WABDll();
{
if (hinstWAB)
{
lpfnWABOpen = (LPWABOPEN) GetProcAddress
(hinstWAB, "WABOpen");
if (lpfnWABOpen)
hr = lpfnWABOpen (lppAdrBook, lppWABObject,
NULL, 0);
}
}
return hr;
}