I'm creating a VBA Library DLL using VB6, and need help in using the VB6 IDE to debug the code.
I have created a new project -- ActiveX DLL -- and entered the code into a class module.
I'm having two problems:
1. I have one class module that uses the WinAPI :
Public Declare Function GetOpenFileName Lib "comdlg32.dll" Alias _
"GetOpenFileNameA" (pOpenFileName As OPENFILENAME) As Boolean
and I'm getting the following error:
Constants, fixed-length strings, arrays, user-defined types, and Declare statements not allowed as Public members of an object module
I have 3 public Declare statements, and about 10 Public Const statements. This code worked fine in the Excel VBA environment.
How do I set it up in the VB DLL project?
2. How do I debug the DLL?
I created a test Sub to test my code, but when I press F5 the IDE acts as if it is running, but the code doesn't execute in the Sub.
Win 2000 Pro SP3