Passing pointer to a pointer or pointer to a char to a dll 
Author Message
 Passing pointer to a pointer or pointer to a char to a dll

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



Sat, 11 Jan 2003 03:00:00 GMT  
 Passing pointer to a pointer or pointer to a char to a dll
Do you happen to have the exact C/C++ declare?

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


Quote:
> 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



Sat, 11 Jan 2003 03:00:00 GMT  
 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



Sat, 11 Jan 2003 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. how to pass a pointer to a pointer in a dll

2. Passing pointer to pointer to C struct from VB into a DLL

3. How to use pointer and the pointer of pointedness pointer in vb

4. How to use pointer and the pointer of pointedness pointer in vb

5. How to use pointer and the pointer of pointedness pointer in vb

6. How to use pointer and the pointer of pointedness pointer in vb

7. How to use pointer and the pointer of pointedness pointer in vb

8. Passing pointer to pointer to a structure to a WINAPI function

9. VB calling a C DLL function that takes a double CHAR pointer as argument

10. Pointer to pointer

11. Pointer to Pointer

12. Pointer to Pointer to buffer?

 

 
Powered by phpBB® Forum Software