thanks vlatko...

but this can be used if the DLL is created as a Library-Type DLL, right?
what if i want to create an ActiveX DLL? can i create an ActiveX DLL in VC++ and how do i do it?

and also, this can bed use only if the function is a general function, right? what if i want to use a function which is in a class? how should i do it? In VB, how can i declare an object of the class created in the DLL?

correct me if i'm wrong...