I have a dll and I would like to declare a function in it to be used in my VB app. I have a problem because I won't know the path to the dll unless i can do a search on the user's system to see where the components are installed.

Actually, I need to access the dll on a cd-rom and i need to be able to determine what drive letter that is.

This is a web based activeX control that i'm working on.

is there a way to check the registry? I know that you can't have any "end sub" or "end function" before a declare statement.

Any thoughts?

Thanks.