Solved

DLL procedure declaration in VB6

Posted on 1999-01-22
1
235 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
ID: 1470088
byref command as long

0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

679 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