Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

DLL procedure declaration in VB6

Posted on 1999-01-22
1
Medium Priority
?
240 Views
Last Modified: 2012-05-04
In my program I have to use a DLL (abc.dll) that contains the following procedure
DWORD linkreceive(HANDLE link, DWORD *command, char *arg)

I declared this function in VB6 as
Declare Function Receive lib "abc.dll" alias "linkreceive"
(link as long, ????????, arg as string) as long

What type declaration should be placed on the question marks. So which type uses VB6 for a DWORD*  ? and should it be ByVal or ByRef ?

0
Comment
Question by:rdlhaye
1 Comment
 
LVL 13

Accepted Solution

by:
Mirkwood earned 150 total points
ID: 1470088
byref command as long

0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

972 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question