Re: ActiveX DLL project question - WeOnlyDo Discussion board

Re: ActiveX DLL project question (General questions)

by Marco Lundgren, Friday, August 28, 2009, 23:25 (5565 days ago) @ wodSupport

Marco,

add reference to wodMailbox.dll to your project, and in your class add this code: [code]Dim mbox As wodMailboxCom


Private Sub Class_Initialize()
Set mbox = New wodMailboxCom
MsgBox mbox.Version
End Sub
[/code]

That should do it.
Regards,
Kreso

It compiled without error but no msgbox when run from the VB6 ide. That's not necessarily a problem but I need the dll I generate to display the msgbox. Here's how the dll will be used: in the registry I have a file type .mbz which is a mailbox file. In shell/open/command I have Open with Notepad which successfully opens .mbz files with Notepad. I want to add Display WodMailbox Version which displays MsgBox mbox.Version from my dll. What do I do? Thanks


Complete thread: