473,386 Members | 1,810 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Prevent code reuse

Hi,

I'm evaluating Visual Studio and the .NET concept for his company, which
is currently using Borland C++ Builder.

Now I tried to create components/controls etc. in .NET and I can reuse
it very easily by adding the control to the toolbox. This is great and
more 'safe' to do than in Borland.

But... although I'm nice, I'm not so nice that I am willing to give away
hours/days of coding by letting others reuse components I wrote for my
application.

So, is there a way to prevent that, or would I need to write my own
solution?

Patrick Vollebregt.
Jul 21 '05 #1
6 1982
Patrick,

Two isues,

With Net programs you normally create one DLL not a lot. And than comes
direct the next problem what is almost full written in this newgroup, it is
intermidiate code which is more easy to decompile than Win32 code.

For that are obfuscators.
When you search only this newsgroup on that you find endless discussions.

By the way before you create all your own controls and components, there
are a lot of them which people share for free on the internet and in this
newsgroups, even very nice ones.

I hope this helps?

Cor
"patrick t music-images dt nl" <"patrick t music-images dt nl">
Hi,

I'm evaluating Visual Studio and the .NET concept for his company, which
is currently using Borland C++ Builder.

Now I tried to create components/controls etc. in .NET and I can reuse it
very easily by adding the control to the toolbox. This is great and more
'safe' to do than in Borland.

But... although I'm nice, I'm not so nice that I am willing to give away
hours/days of coding by letting others reuse components I wrote for my
application.

So, is there a way to prevent that, or would I need to write my own
solution?

Patrick Vollebregt.

Jul 21 '05 #2
As told to us by a member of the CLR team at Microsoft, If your code
runs on the customers computer where he has administrative privileges,
there is no way to prevent them from using it. Licensing is really your
only protection.

This was disconcerting to us also.
Leon Lambert

patrick t music-images dt nl wrote:
Hi,

I'm evaluating Visual Studio and the .NET concept for his company, which
is currently using Borland C++ Builder.

Now I tried to create components/controls etc. in .NET and I can reuse
it very easily by adding the control to the toolbox. This is great and
more 'safe' to do than in Borland.

But... although I'm nice, I'm not so nice that I am willing to give away
hours/days of coding by letting others reuse components I wrote for my
application.

So, is there a way to prevent that, or would I need to write my own
solution?

Patrick Vollebregt.

Jul 21 '05 #3
Hi Cor,

thanks for your reply.

I'm not afraid of decompiled code, but I'm afraid for reuse.

Let's say I made a nice control which does things different (better?)
and is rather new. It would be great for me if I could sell my product
before someone else takes my dll and puts my components in his toolbox.

So, what I want is to disable the possibility to reuse my dll in Visual
Studio .NET. Even if I put my compontent in my .exe it would be possible
to load it's compontents in a Visual Studio .NET toolbox.

That feature I want to disable so there is a minimal barrier that might
prevent people to reuse my components.

If that is't possible I have to make a check in the constructor of every
control that validates if the calling program is signed by my private
key, which will throw an exception if it failes, or something like that.

People now have to dissassemble that dll to remove the protection, and
that can be called cracking.

If there would be no protection they would be simply be `reusing.' How
else would they know they were not allowed to use my dll in their own
application?

Patrick.

Patrick,

Two isues,

With Net programs you normally create one DLL not a lot. And than comes
direct the next problem what is almost full written in this newgroup, it is
intermidiate code which is more easy to decompile than Win32 code.

For that are obfuscators.
When you search only this newsgroup on that you find endless discussions.

By the way before you create all your own controls and components, there
are a lot of them which people share for free on the internet and in this
newsgroups, even very nice ones.

I hope this helps?

Cor
"patrick t music-images dt nl" <"patrick t music-images dt nl">
Hi,

I'm evaluating Visual Studio and the .NET concept for his company, which
is currently using Borland C++ Builder.

Now I tried to create components/controls etc. in .NET and I can reuse it
very easily by adding the control to the toolbox. This is great and more
'safe' to do than in Borland.

But... although I'm nice, I'm not so nice that I am willing to give away
hours/days of coding by letting others reuse components I wrote for my
application.

So, is there a way to prevent that, or would I need to write my own
solution?

Patrick Vollebregt.


Jul 21 '05 #4
I thinks this is what your after:

http://tinyurl.com/3ju9l

Willem van Rumpt
patrick t music-images dt nl wrote:
Hi Cor,

thanks for your reply.

I'm not afraid of decompiled code, but I'm afraid for reuse.

Let's say I made a nice control which does things different (better?)
and is rather new. It would be great for me if I could sell my product
before someone else takes my dll and puts my components in his toolbox.

So, what I want is to disable the possibility to reuse my dll in Visual
Studio .NET. Even if I put my compontent in my .exe it would be possible
to load it's compontents in a Visual Studio .NET toolbox.

That feature I want to disable so there is a minimal barrier that might
prevent people to reuse my components.

If that is't possible I have to make a check in the constructor of every
control that validates if the calling program is signed by my private
key, which will throw an exception if it failes, or something like that.

People now have to dissassemble that dll to remove the protection, and
that can be called cracking.

If there would be no protection they would be simply be `reusing.' How
else would they know they were not allowed to use my dll in their own
application?

Patrick.

Patrick,

Two isues,

With Net programs you normally create one DLL not a lot. And than
comes direct the next problem what is almost full written in this
newgroup, it is intermidiate code which is more easy to decompile than
Win32 code.

For that are obfuscators.
When you search only this newsgroup on that you find endless discussions.

By the way before you create all your own controls and components,
there are a lot of them which people share for free on the internet
and in this newsgroups, even very nice ones.

I hope this helps?

Cor
"patrick t music-images dt nl" <"patrick t music-images dt nl">
Hi,

I'm evaluating Visual Studio and the .NET concept for his company,
which is currently using Borland C++ Builder.

Now I tried to create components/controls etc. in .NET and I can
reuse it very easily by adding the control to the toolbox. This is
great and more 'safe' to do than in Borland.

But... although I'm nice, I'm not so nice that I am willing to give
away hours/days of coding by letting others reuse components I wrote
for my application.

So, is there a way to prevent that, or would I need to write my own
solution?

Patrick Vollebregt.


Jul 21 '05 #5
Hi,

Maybe you should look at Licensing.
http://msdn.microsoft.com/library/en...tscontrols.asp

HTH,
Rakesh Rajan

"patrick t music-images dt nl" <"patrick" wrote:
Hi Cor,

thanks for your reply.

I'm not afraid of decompiled code, but I'm afraid for reuse.

Let's say I made a nice control which does things different (better?)
and is rather new. It would be great for me if I could sell my product
before someone else takes my dll and puts my components in his toolbox.

So, what I want is to disable the possibility to reuse my dll in Visual
Studio .NET. Even if I put my compontent in my .exe it would be possible
to load it's compontents in a Visual Studio .NET toolbox.

That feature I want to disable so there is a minimal barrier that might
prevent people to reuse my components.

If that is't possible I have to make a check in the constructor of every
control that validates if the calling program is signed by my private
key, which will throw an exception if it failes, or something like that.

People now have to dissassemble that dll to remove the protection, and
that can be called cracking.

If there would be no protection they would be simply be `reusing.' How
else would they know they were not allowed to use my dll in their own
application?

Patrick.

Patrick,

Two isues,

With Net programs you normally create one DLL not a lot. And than comes
direct the next problem what is almost full written in this newgroup, it is
intermidiate code which is more easy to decompile than Win32 code.

For that are obfuscators.
When you search only this newsgroup on that you find endless discussions.

By the way before you create all your own controls and components, there
are a lot of them which people share for free on the internet and in this
newsgroups, even very nice ones.

I hope this helps?

Cor
"patrick t music-images dt nl" <"patrick t music-images dt nl">
Hi,

I'm evaluating Visual Studio and the .NET concept for his company, which
is currently using Borland C++ Builder.

Now I tried to create components/controls etc. in .NET and I can reuse it
very easily by adding the control to the toolbox. This is great and more
'safe' to do than in Borland.

But... although I'm nice, I'm not so nice that I am willing to give away
hours/days of coding by letting others reuse components I wrote for my
application.

So, is there a way to prevent that, or would I need to write my own
solution?

Patrick Vollebregt.


Jul 21 '05 #6
Thank you and Rakesh,

I think this is is what I am after. :)

Patrick.
I thinks this is what your after:

http://tinyurl.com/3ju9l

Willem van Rumpt
patrick t music-images dt nl wrote:
Hi Cor,

thanks for your reply.

I'm not afraid of decompiled code, but I'm afraid for reuse.

Let's say I made a nice control which does things different (better?)
and is rather new. It would be great for me if I could sell my product
before someone else takes my dll and puts my components in his toolbox.

So, what I want is to disable the possibility to reuse my dll in
Visual Studio .NET. Even if I put my compontent in my .exe it would be
possible to load it's compontents in a Visual Studio .NET toolbox.

That feature I want to disable so there is a minimal barrier that
might prevent people to reuse my components.

If that is't possible I have to make a check in the constructor of
every control that validates if the calling program is signed by my
private key, which will throw an exception if it failes, or something
like that.

People now have to dissassemble that dll to remove the protection, and
that can be called cracking.

If there would be no protection they would be simply be `reusing.' How
else would they know they were not allowed to use my dll in their own
application?

Patrick.

Patrick,

Two isues,

With Net programs you normally create one DLL not a lot. And than
comes direct the next problem what is almost full written in this
newgroup, it is intermidiate code which is more easy to decompile
than Win32 code.

For that are obfuscators.
When you search only this newsgroup on that you find endless
discussions.

By the way before you create all your own controls and components,
there are a lot of them which people share for free on the internet
and in this newsgroups, even very nice ones.

I hope this helps?

Cor
"patrick t music-images dt nl" <"patrick t music-images dt nl">

Hi,

I'm evaluating Visual Studio and the .NET concept for his company,
which is currently using Borland C++ Builder.

Now I tried to create components/controls etc. in .NET and I can
reuse it very easily by adding the control to the toolbox. This is
great and more 'safe' to do than in Borland.

But... although I'm nice, I'm not so nice that I am willing to give
away hours/days of coding by letting others reuse components I wrote
for my application.

So, is there a way to prevent that, or would I need to write my own
solution?

Patrick Vollebregt.


Jul 21 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

242
by: James Cameron | last post by:
Hi I'm developing a program and the client is worried about future reuse of the code. Say 5, 10, 15 years down the road. This will be a major factor in selecting the development language. Any...
3
by: DPfan | last post by:
What's exactly the meaning of "code reuse" in C++? Why such kind of reuse have more advantages over the counterpart in other language like in C? How is "code reuse" realized in C++? By...
11
by: Saumya | last post by:
Hi, I didn't know how else to express myself in the subject line, but what I want to know is this: <b>I have a class A, so what do I have to do to ensure that no one can derive from it?</b> ...
4
by: AJS | last post by:
I open a small window with no toolbars and position it in the corner of the screen. My problem is that when this window was the last window opened, Windows will use it to open any link that I...
3
by: Simon | last post by:
Hi all, I'm hoping that some of you clever chaps could offer me some advice on code reuse. You see, whenever I make applications, I typically only find very limited
15
by: CR | last post by:
I've noticed that the trend these days is to declare variables in the middle of code instead of at the top. What is the advantage of this? It seems like it makes it hard to reuse variables. Here...
6
by: patrick t music-images dt nl | last post by:
Hi, I'm evaluating Visual Studio and the .NET concept for his company, which is currently using Borland C++ Builder. Now I tried to create components/controls etc. in .NET and I can reuse it...
16
by: sailor.gu | last post by:
Hi all guys, As an embeded programmer with five year C experience, I did read many great books related with design, coding, test,debug,algorithms, compiler, design, os, pm and others. I...
2
by: Jeff Dege | last post by:
I'm working with a group that's been doing C++ coding for quite a long time, now, and in that environment we've pretty much worked out development practices that serve us well. We've been doing...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.