-
J/Direct
hi,
I want to show the AddressBook and get the selected id's in my VJ++
application using j/direct.
we have a function MAPIAddress in SDK
the function syntax is like this :
ULONG FAR PASCAL MAPIAddress(
LHANDLE lhSession,
ULONG ulUIParam,
LPTSTR lpszCaption,
ULONG nEditFields,
LPTSTR lpszLabels,
ULONG nRecips,
lpMapiRecipDesc lpRecips,
FLAGS flFlags,
ULONG ulReserved,
LPULONG lpnNewRecips,
lpMapiRecipDesc FAR * lppNewRecips
)
how can I use this funciton in my VJ++ application?
can i convert this funciton like this in my java file...........
/** @dll.import("Mapi32") */
public static native int MAPIAddress(int i, int j, String s, int k, String
s1, int l, int i1, int j1,
int k1, int l1, int ai[]);
and i have created a structure type class in java like this for Recieps :
/**@dll.struct() */
public class Win32MapiRecipDesc
{
Win32MapiRecipDesc()
{
}
int nReserved;
int recipClass;
int name;
int address;
int EIDSize;
int pEntryID;
}
now what values i have to pass to that function to invoke corresponding
native method?
especially for the "int lpRecips" ( 7th parameter).
int lpnNewRecips (10th parameter)
int[] lppNewRecips ( 11th parameter)
Could anyone please clarify my doubt.
regards
siva
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks