Click to See Complete Forum and Search --> : Stopping others using my dll


lloydy
January 31st, 2005, 05:09 PM
Hi,

If I release a program that has a number of dlls (written in VC++.Net), is it possible for other users to use the functions in the dlls in their own programs? I mean, could they import them into their own code and use them? If so is there a way to stop this?

Thanks

MrViggy
January 31st, 2005, 05:15 PM
Hi,

If I release a program that has a number of dlls (written in VC++.Net), is it possible for other users to use the functions in the dlls in their own programs? I mean, could they import them into their own code and use them? If so is there a way to stop this?

Thanks
Sure, why not? As long as they pass in the proper parameters.

I suppose you could create a DLL that needs to be "initialized" with some kind of license key. Then, check for the license every time an exported function is called.

Viggy

lloydy
February 1st, 2005, 04:56 PM
So if I don't export the function, only projects with the source code of the dll will be able to use them. Is that correct?

MrViggy
February 1st, 2005, 05:09 PM
If you don't export the functions, nobody can use them. If you give/sell the source code, then there's no need for a DLL (one can just compile the source into their own apps statically).

Viggy

Andy Tacker
February 2nd, 2005, 03:09 AM
Well, that's not the real issue...
if he wont import the functions, he wont be able to use the dll functions...

one way is to use Obfusctors to avoid that.

no other way... :)