|
What you want is something called an "obfuscator". Do NOT use the obfuscation crap that came with VS2008 (because it won't do what you need it to do). Buy a 3rd party tool. Get one that encrypts the strings and creates a native binary out of your assemblies. The problem is that he can look at your code with Defender and figure out what your assemblies are doing, and can therefore use your DLLs in his own code.
Now that you know how to fix your assemblies, you have to figure out a way to remove the "open" versions from the user's computer. Good luck with that (because now that they're out there, you're hosed).
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
You would need some sort of license scheme so the methods can validate that they were called by an allowable application. It would slow your application down, and probably isn't worth the trouble.
|
|
|
|
|
There is a problem using obfuscation and UI since one can iterate through all types and create instances of forms and controls. You can solve this by having all forms and controls inherit your own type (that inherits from UserControl or Form) and that type requires that some static flag was raised in the application or else...
This way radomly generating types will just raise exceptions. Adding this just adds another small barrier for people trying to look at your code and does not solve the problem.
Natza Mitzi
|
|
|
|
|
Hi,
I want to make a web service application in ASP.net which will consume RSS Feeds from different website. Can some one provide me some example application which already dose this or some idea how to do this.
Please give me some idea .......
Cheers..
|
|
|
|
|
hi all,
pls, how can i execute another web page without leaving the one i currently am?
i try it like this:
HttpApplication httpApp = new HttpApplication();<br />
httpApp.Server.Execute("addFriend.aspx");
but it doesn't work.
pls, how can i achieve this?
He who goes for revenge must first dig two graves.
|
|
|
|
|
Hello
I'm trying to merge a main menu strip and a childs menu strip but I can't get the expected result
1- I have a Main form mdiMain and a child fomr mdiChild
2- mdiMain contains mnuMain, mdiChild contains mnuChild
3- Both mnu have a File item : New; Open; and exit for main,, Save, Save As, Import for child
4- both mnu have allowmerge to true
5- I set the merge option of the Main file item to insert
6- I also set the merge option of the Child file item to insert
7 So I expect a result like
New
Open
Exit
Save
Save as
Import
BUT
I only get the Main File Menu
New
Open
Exit
Do someone knws how to do it
Thanks very much for any help
|
|
|
|
|
Does it help if you alter the MergeOption to Append ? Or could it be that the constructor isn't creating the mnuChild-component?
I are troll
modified on Sunday, April 5, 2009 12:07 PM
|
|
|
|
|
Thank you
No, it does not change anything
BUT I have the solution
It is necesary to set the head item (File in this case) to MatchOnly
Then set each items in the child menu to the needed value (Insert, append...)
A little bit tedious is the need to set the Exit item in the Main menu at the end
To do that it is necessary to sell all items in the child menu to Insert with the proper index
|
|
|
|
|
Hey All!
I've been readin' up on Regular Expressions alot lately because I need to Extract words inbetween HTML tags for example I need to extract the words 'extract this!':
<title>Extract this!</title>
and also:
<a href="http://www.ilikethissite.com/">Extract this URL</a>
I have followed many examples and read MSDN and I just can't get it to work. Can anyone please shed some light on this matter? Thanks in advance
Jay.
j.t.
|
|
|
|
|
Use regex grouping to match the bits you want to keep and build a new string, or to match the bits you want to remove, and then remove them.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
Yay! Thanks lots Christian Graus.
j.t.
|
|
|
|
|
jay_t55 wrote: need to extract the words 'extract this!':
<title>Extract this!
Here you go..
string str = "<title>Extract this!</title>";
Regex RE = new Regex(@"(<title> )(\w|\S|\s )+(</title> )");
MatchCollection MC = RE.Matches(str);
if (MC.Count == 0) MessageBox.Show("No match");
foreach (Match M in MC)
{
string trimStr = "</title>";
MessageBox.Show(M.ToString().Trim(trimStr.ToCharArray()));
}
8.Kelvin()
{
while (!(the machine can program itself))
Wont_stop_coding = true;
}
|
|
|
|
|
Wow! Thank you so much 8Kelvin, very much appreciated!!
Jay.
j.t.
|
|
|
|
|
What you want is an HTML parser (google is your friend). Don't mess around with regex because you'll spend a lot of time trying to figure it out. Believe me - downloading a parser will be much faster.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Hear hear! This is a wheel best not reinvented.
|
|
|
|
|
Hey guys
I need to get the size of a string in bytes, how do i do that
Harvey Saayman - South Africa
Software Developer
.Net, C#, SQL
you.suck = (you.Passion != Programming & you.Occupation == jobTitles.Programmer)
1000100 1101111 1100101 1110011 100000 1110100 1101000 1101001 1110011 100000 1101101 1100101 1100001 1101110 100000 1101001 1101101 100000 1100001 100000 1100111 1100101 1100101 1101011 111111
|
|
|
|
|
Harvey Saayman wrote: the size of a string in bytes
what size? what is your purpose?
Luc Pattyn [Forum Guidelines] [My Articles]
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets
|
|
|
|
|
Im trying to send a request to a IM(MXit) server, to protocol documentation states that the length of the request must be pre-pended to the request...
Harvey Saayman - South Africa
Software Developer
.Net, C#, SQL
you.suck = (you.Passion != Programming & you.Occupation == jobTitles.Programmer)
1000100 1101111 1100101 1110011 100000 1110100 1101000 1101001 1110011 100000 1101101 1100101 1100001 1101110 100000 1101001 1101101 100000 1100001 100000 1100111 1100101 1100101 1101011 111111
|
|
|
|
|
Hi,
if the API you are using expects a Unicode string, then I would expect the length is the number of characters, not bytes.
in the more likely case the API expects a byte array, you would need an Encoding (maybe Encoding.ASCII, Encoding.UTF8, or new Encoding(1252)) and use its GetBytes() method. In such case the length would be the length of the byte[].
Luc Pattyn [Forum Guidelines] [My Articles]
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets
|
|
|
|
|
You mean the size of the string in a specific encoding? for example,
Encoding.UTF8.GetByteCount(theString);
Or the size of a string object in memory? which depends on implementing platform[^]
Eslam Afifi
|
|
|
|
|
If i have a string, lets say the string is "System.Float".
Is there anyway i can get the type from that string? (ie a float).
And do something like this:
Float f = new GetMagicTypes<"System.Float">();
|
|
|
|
|
Huh?
You can get the type using: Type.GetType("System.Single"), etc, but you can't use that as a template argument.
And your example is going to create a GetMagicTypes object, not a float.
GetMagicTypes<float> f = new GetMagicTypes<float>();
What are you trying to accomplish?
- S
50 cups of coffee and you know it's on!
A post a day, keeps the white coats away!
|
|
|
|
|
What im doing is that im parsing the object type from xml, so i need a way to allocate an object of the type in the string.
Something like this then maybe:
Float f = new<type.gettype("system.float")>();
Ofcourse i could do this:
if("System.Float" == type)
Float f = new System.Float;
elseif("System.Boolean" == type)
Boolean b = new System.Boolean;
But that is an unnessecary thing if c# has support for string<->type conversion
|
|
|
|
|
Well...you can't know at compile time what you're going to get at runtime, so you can't strongly type it.
If you want the xml value to be a float, then you'll have to coerce it.
float f;
float.TryParse(your xml value, out f);
Same with all the other types, int, bool, etc.
- S
50 cups of coffee and you know it's on!
A post a day, keeps the white coats away!
|
|
|
|
|
Hi,
have a look at the Activator class and its CreateInstance method.
Luc Pattyn [Forum Guidelines] [My Articles]
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets
|
|
|
|