By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,406 Members | 888 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,406 IT Pros & Developers. It's quick & easy.

Creating Barriers to Reverse Engineering

P: n/a
Hi,

I'm trying to create a partially functional DLL written in C++. What
I would like to do is limit the number of certain method calls using a
static counter:

int someMethod() {
static numberOfCalls = 0;
numberOfCalls++;
if (numberOfCalls > 50)
//throw error or return default value
//do other stuff
}

I've been told that this sort of thing can be easy to reverse
engineer. How could I make it more difficult? By creating the check
as a macro and putting it in multiple places in the code? Are there
any other C++ specific language constructs I should use to make the
reverse engineering more difficult? If I do them, how difficult will
it be?

Thanks for any help,
cpp
Jul 22 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"cppaddict" <he***@hello.com> wrote in message
I'm trying to create a partially functional DLL written in C++. What
I would like to do is limit the number of certain method calls using a
static counter:


My answer is off-topic, but executable encryption software might help. For
example, check out Armadillo or SoftwarePassport at
http://siliconrealms.com/index.shtml
Jul 22 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.