Click here to Skip to main content
15,925,206 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Disallowing dll use from development environment? Pin
electronica80822-Oct-07 3:26
electronica80822-Oct-07 3:26 
GeneralRe: Disallowing dll use from development environment? Pin
Chris Losinger22-Oct-07 3:36
professionalChris Losinger22-Oct-07 3:36 
GeneralRe: Disallowing dll use from development environment? Pin
electronica80822-Oct-07 3:49
electronica80822-Oct-07 3:49 
GeneralRe: Disallowing dll use from development environment? Pin
Nelek22-Oct-07 4:23
protectorNelek22-Oct-07 4:23 
GeneralRe: Disallowing dll use from development environment? Pin
Chris Losinger22-Oct-07 4:28
professionalChris Losinger22-Oct-07 4:28 
GeneralRe: Disallowing dll use from development environment? Pin
Peter Weyzen22-Oct-07 19:39
Peter Weyzen22-Oct-07 19:39 
GeneralRe: Disallowing dll use from development environment? Pin
electronica80822-Oct-07 5:18
electronica80822-Oct-07 5:18 
GeneralRe: Disallowing dll use from development environment? Pin
DQNOK22-Oct-07 8:01
professionalDQNOK22-Oct-07 8:01 
electronica808 wrote:
I will suggest using an init key.


Would you mind giving a little more information about an "init key". I don't know anything about this.

On your original subject, you could make your dll freely available, but make it callable only thru an API that you license and sell. One way to do this would be to have your API scramble the function calls in such a way that the functions within the dll understand the call, but the call interface is not meaningful to anyone trying to use the naked dll. You protect the API with copyright.

Another way would be to have an init function within the dll that had to be called (to set some static data) before any of the functions would work correctly. The only (legal) way to call that init function would be via the API you provide. The init function takes some monstrously complex string that your API passes into it. Unless the passed string is correct, the dll functions just won't work correctly. Actually, to prevent rumors that your dll doesn't work (because people are trying to hack it), the init function should raise an exception if the string is incorrect.

Neither of these will circumvent a criminal programmer from distributing your API, but it would at least make your intellectual property "copyrighted".

David
GeneralRe: Disallowing dll use from development environment? Pin
David Crow22-Oct-07 8:42
David Crow22-Oct-07 8:42 
AnswerRe: Disallowing dll use from development environment? Pin
cmk22-Oct-07 19:51
cmk22-Oct-07 19:51 
QuestionVirtual inheritance Pin
George_George22-Oct-07 2:42
George_George22-Oct-07 2:42 
AnswerRe: Virtual inheritance Pin
Cedric Moonen22-Oct-07 2:50
Cedric Moonen22-Oct-07 2:50 
GeneralRe: Virtual inheritance Pin
George_George22-Oct-07 21:01
George_George22-Oct-07 21:01 
QuestionScrollWindowEx() does not show me dynamic created controls. Pin
chandu00422-Oct-07 1:47
chandu00422-Oct-07 1:47 
QuestionRe: ScrollWindowEx() does not show me dynamic created controls. Pin
Nelek22-Oct-07 2:12
protectorNelek22-Oct-07 2:12 
AnswerRe: ScrollWindowEx() does not show me dynamic created controls. Pin
chandu00422-Oct-07 2:30
chandu00422-Oct-07 2:30 
GeneralRe: ScrollWindowEx() does not show me dynamic created controls. Pin
Nelek22-Oct-07 2:36
protectorNelek22-Oct-07 2:36 
GeneralRe: ScrollWindowEx() does not show me dynamic created controls. Pin
chandu00422-Oct-07 3:30
chandu00422-Oct-07 3:30 
GeneralRe: ScrollWindowEx() does not show me dynamic created controls. Pin
Nelek22-Oct-07 3:48
protectorNelek22-Oct-07 3:48 
GeneralRe: ScrollWindowEx() does not show me dynamic created controls. Pin
chandu00422-Oct-07 23:56
chandu00422-Oct-07 23:56 
QuestionHow to know mouse has left the Tray Icon Pin
GauranG Shah22-Oct-07 1:23
GauranG Shah22-Oct-07 1:23 
QuestionRe: How to know mouse has left the Tray Icon Pin
David Crow22-Oct-07 3:41
David Crow22-Oct-07 3:41 
AnswerRe: How to know mouse has left the Tray Icon Pin
GauranG Shah22-Oct-07 4:01
GauranG Shah22-Oct-07 4:01 
QuestionList View bmp Pin
john563222-Oct-07 1:10
john563222-Oct-07 1:10 
AnswerRe: List View bmp Pin
Hamid_RT22-Oct-07 2:02
Hamid_RT22-Oct-07 2:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.