I have a dll that I want to consume, developed in C #, and I want to load this dLL in VB6. How can I do this? What steps should I follow?
Inside the VB6 code below you already have a call to this dll:
Dim mail As New MamMail
Body = Replace(Body, vbCrLf, "</BR>")
mail.SendMail smtpServer, smtpPort, smtpSsl, userName, Password, fromAddress, toAddress, cc, Subject, Body
Set mail = Nothing
Exit Sub
But when compiling no vb6 I get: compile error.User defined type not defined
.