I usually use functions instead, like declare the .dll as a function and pass the parameters that way, for example, this would load and declare Shell32.dll for use in loading file extensions with their set applications:
Private Declare Function ShellExecute Lib _
"shell32.dll" Alias "ShellExecuteA" _
(ByVal hWnd As Long, _
ByVal lpOperation As String, _
ByVal lpFile As String, _
ByVal lpParameters As String, _
ByVal lpDirectory As String, _
ByVal nShowCmd As Long) As Long
This would be at the very start of your code, then to call it I would use:
runin = ShellExecute(Me.hWnd, _
vbNullString, FILE, _
vbNullString, _
"", _
SW_SHOWNORMAL)
The runin variable would store the application ID.
Van-B
My cats breath smells of cat food.