Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Window address book
Message
From
05/12/2006 21:36:20
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Window address book
Miscellaneous
Thread ID:
01175101
Message ID:
01175101
Views:
66
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;
}
Next
Reply
Map
View

Click here to load this message in the networking platform