[AccessD] VB6 DLL Help Required

Ken Ismert KIsmert at TexasSystems.com
Fri Apr 23 13:23:17 CDT 2004


> This is the code I used for my DLL
<snip>

OK, that looks good. But, how are you using your DLL on the client side? You
can either use a Declare statement to define your SendMail call, or you can
register your DLL as a COM component and use it as an object.

For the latter to work, you will need to do one of two things:

 A. Define a callback interface to pass to your SendMail function. This
would require a PublicNotCreatable class in your DLL that defines the
'events' you want to send back to the caller.

 B. Convert your SendMail function to a class with its own events. Your
SendMail class would trap the vbSendMail events and re-raise them to your
client. The client would create, use and destroy your SendMail object just
like any other.

Do either of these options appeal to you?

-Ken




More information about the AccessD mailing list