Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Window address book
Message
De
05/12/2006 21:36:20
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Window address book
Divers
Thread ID:
01175101
Message ID:
01175101
Vues:
67
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;
}
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform