beans4you
04-02-2003, 07:26 AM
I have started creating a DLL as illustrated in the Tutorial Create ActiveX Dll (http://www.visualbasicforum.com/showthread.php?threadid=7290&highlight=%2Adll+tutorial), by JDT. I did exactly as he instructed. However, once I declared my variable as the DLL, I could not set it to a new instance of the DLL.
Example:
' CSomeDll is in the auto drop-down menu
dim pMyDLL as CSomeDll
' There is no instance of CSomeDll in the auto drop-down menu
set pMyDLL = New CSomeDll
I have also tried this:
' SomeDll.CSomeDll is in the auto drop-down menu
dim pMyDLL as SomeDll.CSomeDll
' There is no instance of CSomeDll or SomeDll in the auto drop-down menu
set pMyDLL = New CSomeDll
Anyone have any clues to what I might be doing wrong? If it helps I'm running VB6.0.
Thanks
- Eric
Example:
' CSomeDll is in the auto drop-down menu
dim pMyDLL as CSomeDll
' There is no instance of CSomeDll in the auto drop-down menu
set pMyDLL = New CSomeDll
I have also tried this:
' SomeDll.CSomeDll is in the auto drop-down menu
dim pMyDLL as SomeDll.CSomeDll
' There is no instance of CSomeDll or SomeDll in the auto drop-down menu
set pMyDLL = New CSomeDll
Anyone have any clues to what I might be doing wrong? If it helps I'm running VB6.0.
Thanks
- Eric