How to protect my ActiveX written in C++ ?

Posted on 2011-10-12
Last Modified: 2012-05-12
 Hi experts!

I’m creating my first ActiveX control n C++ 2008. Till now I was created many ActiveX but with VB6. So I know that there is option to protect my ActiveX control – in VB6 there is options called Require License key which allow control to be used in Run time, but not in Design mode used in IDE it require this key. This prevents other programmer to get my ActiveX and to implement it in his software.

 How is called this feature in MS C++ 2008? Where I can read more about how to implement it in my code? Note that my MS C++ 2008 is unmanaged, so I can't use NET framework features.
Question by:dvplayltd
    LVL 32

    Expert Comment

    if you implement the active-x in C or C++, your implementation only is available as machine code (assembler) which cannot reversed to valid human readable code with reasonable efforts. only the interface is available from registered active-x.

    LVL 1

    Accepted Solution

    If you are creating a MFC activeX control, there is an option in the project creation wizard to enable run-time license (see screenshot). To read more about licensing an activeX control, visit:
     Run-time license option

    Author Comment

    To Sara and David

    Thanks both of you for your help. Sara - I know this very well,  the David answer is 100 % what I searching for. In fact I know it and I use it, but with VB6, the question was - what is iname in C++ and where to read about it. Thanks David!

    Author Closing Comment

    100 % correct answer, thank you!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Introduction While answering a recent question ( in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
    If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
    Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
    The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now