I have a dll written in C.

When I use one of the functions I get the following error:

ByRef argument Type Mismatch

and it highlights a variable that I'm passing.

The variable is of a User Type that I declare before using.

Any ideas??

thanks,