
Passing pointer to a pointer or pointer to a char to a dll
Please read down
Quote:
> Do you happen to have the exact C/C++ declare?
Yes. For example:
NABError NAB_Open(NABConnectionID *id, UINT_16 *majorVerNumer, UINT_16
*minorVerNumber, const char *requestedProfileName, char *actualProfileName);
and
NABError NAB_GetAddressBookList(NABConnectionID id, UINT_32 *abookCount,
NABAddrBookDescType **aBooks[]);
Where NABError,NABConnectionID are integers and NABAddrBookDescType is a
structure (user defined type) as follows:
typedef struct NABAddrBookDescType
{
UINT_16 attributes;
char *description;
char *fileName;
Quote:
}
Now how would I translate this stuff to VB?
Quote:
> A pointer to a char is usually just a string - you would then pass your
> string as Call TestFunc(ByVal MyString...)
> If it's a pointer to a pointer that points to a string, it may be an array
> of strings. It's best to see the C declare though.
> -Dan
> > I am attempting to use Netscape's API from VB and I need to pass a
pointer
> > to a pointer or a pointer to a char (signifying a string) to a DLL
(which
> > should then modify it). Is there a way to do this?
> > Thanks,
> > Boris Zakharin