For Programmers: Free Programming Magazines  


Home > Archive > Visual Basic > March 2004 > Calling DLL in VB6









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Calling DLL in VB6
NEK

2004-03-29, 9:31 pm

Dear all...

I have a question about calling a DLL (which should be developed by VC) in
VB6.


The function call from the DLL like this:

int WINAPI testReadData( const char *IpAddress, unsigned char Flag, const
unsigned char *StartRecord, unsigned int *NoOfRecord, unsigned char
*RecordData);


Then, I try to declare the function call in VB6 like the following, except,
I have no idea on those parameters.

Private Declare Function testReadData Lib "abc.dll" ( ???? ) As Long




Kindly please help!!!

Million thanks.



NEK

2004-03-30, 9:30 pm

I've tried to do so.
For the function declaration in VB, I can find them by using API Viewer.
Is there any tools to find out the original API parameter if VC is used?

I'd like to compare the parameter type between VC and VB.

Many thanks!


"Dick" <anonymous@discussions.microsoft.com> wrote in message
news:D08130AD-D8A3-4950-A16D-D7DB72EB0E92@microsoft.com...
> Practice with API viewer, which comes with vb 6. You'll see more

parameters...:)
>
> Rick.



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com