CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 1999
    Location
    Belgium
    Posts
    440

    Question Prevent dll usage by others

    I have an exe+dll and now want to prevent others from re-using/seeing my dll-code ! Because when I simply create a new project and add the dll as a reference, I can use its functionalities without restriction

    Anyone ?

  2. #2
    Join Date
    Mar 2008
    Location
    IRAN
    Posts
    811

    Re: Prevent dll usage by others

    the perpose of DLL is sharing code and reuse and exposing functionality to other programers other than the original one. if you want to restirct access you don't even need yo use DLL; simply hard-code the functionality in your exe file.
    Please rate my post if it was helpful for you.
    Java, C#, C++, PHP, ASP.NET
    SQL Server, MySQL
    DirectX
    MATH
    Touraj Ebrahimi
    [toraj_e] [at] [yahoo] [dot] [com]

  3. #3
    Join Date
    Jan 2006
    Location
    18° 32' N / 73° 52' E
    Posts
    416

    Re: Prevent dll usage by others

    One possible way would be setting up some security in your DLLs.

    For example, restricting users to use the methods if they have invalid password/serial number.
    Regards,
    MMH
    Rate my post if you find it usefull.

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

Featured