Results 1 to 2 of 2

Thread: No reference of DLL outside application

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2001
    Location
    *.*
    Posts
    111

    Thumbs up No reference of DLL outside application

    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.

  2. #2
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538
    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.

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width