Solved

DLL procedure declaration in VB6

Posted on 1999-01-22
1
226 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 50 total points
Comment Utility
byref command as long

0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

743 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now