Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Ostrosoft POP2 component - adding a custom Type?

Status
Not open for further replies.

SeeThru

IS-IT--Management
May 2, 2002
585
GB
Hi All

I'm trying to set up an POP3 downloader in Access 97.

Ostrosoft have a rather handly dll. I have got this related and basically connecting, but one of the subs does not want to compile.

Code:
Private Sub oSession_StatusChanged(ByVal Status As String, ByVal StatusType As StatusTypeConstants)

The reason for not compiling is that 'StatusTypeConstants' is not a known type.

Anyone know how to add a custom type - the help is not terribly clear. The StatusTypeConstants just have simple integer values that represent current status of the connection.

SeeThru
Synergy Connections Ltd - Telemarketing Services
 
And did you add the registered dll in your VBAProject's references ?

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Yes to both - and i have found a workaround thruogh trial and error.

I have changed

ByVal StatusType As StatusTypeConstants

to

ByVal StatusType As Long

This seems to work....

Thanks for the suggestions.

SeeThru
Synergy Connections Ltd - Telemarketing Services
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top