Declaring a VC API in VB--handling UDTs 
Author Message
 Declaring a VC API in VB--handling UDTs

I wrote a dll and gave the declaration for a function to be called in my VB
code. This function has a pointer to a user defined type as one of the
parameters. How should i pass it? The structure is enclosed below:
typedef struct tag_criteria
{
// WCHAR szFieldName[MAX_NAME_LEN]; // the name of the field.
 TCHAR szFieldName[MAX_NAME_LEN]; // the name of the field. // akhilesh
 UWORD dataSize;   // the size of data if required.
 PTR  dataPtr;   // the data value.
 UWORD dataOperator;  // the data comparision operator.
Quote:
}CRITERIA;

I tried by creating a class in VB with the following structure but when i
called the dll function it didn't return the parameter. Whereas if i declare
it as a long in VB then it returns the pointer value correctly but at a
later point in time my Vb application crashes.I am unable to find a way out.
Does anyone ahve any idea


Fri, 07 Mar 2003 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. How can I declare and use pointers in VB as it is possible in VC

2. Need help passing a DC handle from vb to a vc++ dll

3. Help: Error handling for VB component in VC

4. from VB file number to VC file handle

5. VC-COM from VB/VC/Script

6. Thread API in VB using VC Debugger

7. Thread API in VB using VC Debugger

8. Copying an array of UDTs with CopyMemory API

9. Passing a NULL value to API parameters that take UDTs

10. WIN32 C Prototype to VB API Declare

11. WININET API Declares for VB

12. Problem:Declaring WinInet API in VB

 

 
Powered by phpBB® Forum Software