I have made AciveX DLL in vb6. My question is how to make DLL working only when my application instantiates it and not otherwise, in other words if the user browse and tries to make a reference to a my DLL in vb6 project it should be disallowed.
Printable View
I have made AciveX DLL in vb6. My question is how to make DLL working only when my application instantiates it and not otherwise, in other words if the user browse and tries to make a reference to a my DLL in vb6 project it should be disallowed.
Set the instancing of the the class module to no2 - PublicNotCreatable. In your project that's calling this dll, I think you need to add this class from the project window rather than compiling the dll and accessing it from your app - not 100% sure on that one though.