Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21970

Working with a class module

$
0
0
I have been trying for some time to create a routine that will provide for sending multiple email & attachments from within a Mail List program I have. I have settled on a modification of vbSendEmail which I have tailored to my requirements. The program has a single form and uses a class DLL named vbsendmail.dll . I have registered the DLL and have created a test program that uses it. It works just fine. The test program contains the statement Private WithEvents poSendMail As vbSendMail.clsSendMail" in the General Section and the statement " Set poSendMail = New clsSendMail" in the Form Load.

I am attempting to add the this form to the existing MailList program but when I try to run the program I get the error "User Defined type not defined" on the "Private WithEvents poSendMail As vbSendMail.clsSendMail
" statement.

I am at a loss to understand why it works in one program but not another. This is the first attempt to work with a class module so any thoughts as to what I should be looking for would be appreciated.

Viewing all articles
Browse latest Browse all 21970

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>