|
There are many articles on codeproject that show how to implement keyboard hooks in c#. There is also one article targeting hotkeys.
|
|
|
|
|
i have developed a webproject(vs.net 2005) and we want to attach Trail version evaluation period for the project (say 30 days).
What are the best ways to implement so that no body can break?
we already tried of storing some porperties in registry but any body can break.
|
|
|
|
|
Member 1837661 wrote: What are the best ways to implement so that no body can break?
You're dreaming. Every protection scheme in use today, and for the forseeable future, no matter how elaborate, is breakable.
|
|
|
|
|
Dave Kreskowiak wrote: Every protection scheme in use today, and for the forseeable future, no matter how elaborate, is breakable.
You beat me to that.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
The beauty of a web app is, it's online. The internet is bound to get involved in any really secure protection. Of course, because your code is C#, it's trivial to use a reflection tool to access the source, so no protection is ever going to come close to being unbreakable.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Host it yourself for them. Charge them for the hosting and maybe a one time fee, that is the safest way I have found to do it, the only way I will do it.
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
Expert Coming wrote: Charge them for the hosting and maybe a one time fee
Do you have any idea what a reasonable fee would be? My guess is pretty much what ever you want the profit to be after your costs.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
Hi Member 1837661,
Member 1837661 wrote: What are the best ways to implement so that no body can break?
Impossible due to Untrusted Hardware and untrusted Operating System [1].
Jeff
[1] J. Giffin, M. Christodorescu, and L. Kruger, Strengthening Software Self-Checksumming via Self-Modifying Code, pp. 23-32, Proceedings of the 21st Annual Computer Security Applications Conference (ACSAC), 2005, ISBN 0-7695-2461-3.
|
|
|
|
|
|
Jeffrey Walton wrote: Does Microsoft offer any built in support for CAB file extraction yet?
In the .NET BCL?? Nope, not that I've found.
|
|
|
|
|
Hi David,
I see .Net 3.5 was released last week. Have you had an chance to kick its tires? Perhaps a CRC class has been added.
I don't jump as these opportunities - it is one more software package I have to support. (I'm a System Administrator by trade ).
Jeff
|
|
|
|
|
I haven't been through everything, but I see no reason for MS to add support for an outdated packaging technology. Looking into the System.Io namespaces, I don't see anything that jumps out as CAB support.
|
|
|
|
|
Guys,
is it possible to use both ClientOnCLick and OnClick on a button?
ClientOnClick will call a javascript function to validate, and if it returns true, then the Onclick delegate should be fired!
thanks
Estarta
|
|
|
|
|
Yes, that's exactly how it works, I believe.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
thanks for the reply,
just one thought, the server side delegate will never be fired if the validation part 'Client side validation' was false is that true?
Estarta
|
|
|
|
|
Correct, because postback will not occur.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hello,
I have a class with a property that allows the getting and setting of a field. However, once that field has been set, I don't want it to be set again. Is it reasonable to have a get/set property that only allows the property to be set once? Am I trampling on some best practice here or am I completely OK?
(In my particular case, it won't work to have the field set by the constructor.)
Thanks!
|
|
|
|
|
If you are making this available for use elsewhere then it's not good practice to have a single set field. Part of the problem you are going to have is that your field can be got to and set via reflection, so any single-set updates can be bypassed.
|
|
|
|
|
Thanks for your thoughts.
|
|
|
|
|
Pete O'Hanlon wrote: your field can be got to and set via reflection
Ummm... what? My privates aren't private?
|
|
|
|
|
PIEBALDconsult wrote: Ummm... what? My privates aren't private?
Exactly. Using reflection there's not much that can't be done.
Accessing otherwise not accessible members via reflection is one of the easier tasks.
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
PIEBALDconsult wrote: My privates aren't private
Ignoring the innuendo that arises here, the answer is no. Reflection allows you to get right at the heart of your code if you know what you are looking for.
|
|
|
|
|
I was going to suggest using a read-only variable, but then i read about not being able to use the constructor.
Instead, try setting up a private (or protected) variable for whatever it is you want (which you already have), then just use a regular method to set it, but check that it is null, or whatever its default value is first, like this:
private string name;
public void setName(string Name)
{
if(name != null)
name = Name;
else
}
You could just do the same thing using a set method (and then being able to just use Y = X; ) but it just doesn't seem to be the type of place to put it. Plus, you could have your regular method return a bool so that you know if you have set the variable or not.
My current favourite word is: Bauble!
-SK Genius
|
|
|
|
|
Thanks for your reply. I'll ponder this some more.
|
|
|
|
|
Unfortunately, this design (while being good) doesn't address the fact that the private member could still be set directly. The poster needs to think some more about his design before he tries this.
|
|
|
|