|
See NTcore's Phoenix protector, it's pretty good and free
However, before you do that, you should realize that it is fundamentally impossible to completely hide your code (ok you can, but then your CPU does not know what to execute either so your program wouldn't be useful anyway)
So no matter what you do, people will be able to "borrow" (and/or edit) your code. But with obfuscation, the script kiddies and other noobs may give up. That's all. If you're worried about industrial espionage, your only choice is to never release your program.
|
|
|
|
|
ok i really hounestly (on my own mind and heart) cant think of ANY code to start this,
right so a value in a textbox say equals "999" i want to then convert it to hex (i know how to do that with SB) then having it add 1 byte (00) after each byte so : "3900390039" how would i go about doing this ?
Thanks
|
|
|
|
|
Is this an attempt at UTF-16?
Why not iterate over the 999, converting one character at a time and adding the '00'?Regards,
Rob Philpott.
|
|
|
|
|
Try this:
string s1 = "999";
byte[] b1 = new byte[s1.Length * 2];
int index = 0;
foreach (char ch in s1)
{
b1[index++] = (byte)ch;
b1[index++] = 0;
} txtspeak is the realm of 9 year old children, not developers. Christian Graus
|
|
|
|
|
|
OK..,
I giving u a idea about this..,
read text box value to a byte array...,
byte[] mybyte = Encoding.UTF8.GetBytes(textbox1.Text);
declaring 0x00 byte
byte x = 0x00;
declare a new byte array and add, bytes as per your requirement.
TnanksRajesh B --> A Poor Workman Blames His Tools <--
|
|
|
|
|
Huh?
What's the idea here? Adding '\0' chars instead of '0' chars?
Why a variable just to hold a constant 0?
|
|
|
|
|
Hi, how to retrieve the custom header value of bounced mail using pop3 server (.net 2003)
mail sent with custom message like below
MailMessage Ml = new MailMessage();
Ml.Headers.Add("abcde","xyz");
how to retrieve the added value (how to read all the header value of bounced mail?)modified on Wednesday, February 17, 2010 1:08 AM
|
|
|
|
|
Hey my friends I develop C# application all the time .... But when I want to install them on my customer PC's .. I always have to insert .Net Cd and Install it ... But is there any way so that my Setup will contain .Net Framework together and install them together with my application? ... Pleas help me ... am tired of it.
Thank you
|
|
|
|
|
You have three options:
0) You can configure a setup project in your solution that will download the required version of the framework from the site your users downloaded your program from,
1) You can configure a setup project in your solution that will download the required version of the framework from the Microsoft site.
2) You can download the redistributables for the framework and install that setup from your setup..45 ACP - because shooting twice is just silly ----- "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." - J. Jystad, 2001
|
|
|
|
|
John Simmons / outlaw programmer wrote: 2) You can download the redistributables for the framework and install that setup from your setup.
How do you install that setup from your setup.
Again, for example, framework 3.5 is an online resource. How do you deal with that?Wamuti: Any man can be an island, but islands to need water around them!
Edmund Burke: No one could make a greater mistake than he who did nothing because he could do only a little.
|
|
|
|
|
Hi,
I recommend using the WiX toolset. This is a easy to use abstraction of the windows installer. With this toolset (it is free) you can use a bootstrapper to put the redistributables of the framework to your setup.
Have a look here:
http://wix.sourceforge.net/manual-wix3/install_dotnet.htm[^]
Used this for all my installation projects and it works.
Regards
Sebastian
|
|
|
|
|
Here's a link to the full DotNet 3.5 package:
http://download.microsoft.com/download/6/0/f/60fc5854-3cb8-4892-b6db-bd4f42510f28/dotnetfx35.exe[^]
Just execute it from within your setup.
If you familiarize yourself with using google, you can find full installers for all of the other DotNet versions as well..45 ACP - because shooting twice is just silly ----- "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." - J. Jystad, 2001
|
|
|
|
|
I just spent a long time getting to the bottom of this one..... Nothing ever seems as simple as it should be.
Here is how I managed to do it,
When you add in the installer project into your solution, in the Solution explorer right click and view properites of the installer project. Take a look down the right hand side of the properties screen pop and you will see a 'Prerequisites' button.
On the pre-req screen you can add in or remove dependencies (I am building to .net 2.0 for some older clients), once you have selected the pre-req's you want check the radio button 'Download pre-req's from the same location as my application' then hit OK, then OK again to close the property page. At this point I save all files for the solution.
If you are installing an older version of .net with your app you also need to take a look at the dependencies under the installation project.
Expand the 'Detected Dependencies' container and double click 'Microsoft .net framework'. In the properties window beneath the solution explorer look at the version informaiton and select the appropriate version for your install (If you dont do this, the setup.exe bootstrap will install the older version of .net as a pre-req but the installer for your application will then error because it is expecting a newer version than has just been installed - the default on my system and I guess other VS 2008 systems is 3.5.21022).
Once you build the solution be sure to install from setup.exe and not the MSI.
I hope this helps, I found it very frustrating. (p.s. sorry if there are any spelling c**k ups... I have yet to install a HTML spellcheck utility on my work machine).
|
|
|
|
|
Good morning all,
I am currently trying to accomplish the following task:
I have to read some hundred thousand records from the database and display them in a datagrid.
The problem is that the data gets displayed after the read is completely done.
What I want to do is to show the data while it is still pulled from the database.
I tried DataSets, LinQ and some other things, but what these tries had in common was that the data was displayed after the read was completed (which took some time)
The only thing that brought me close to what I want to do was the following:
I used a DataReader in a BackgroundWorker that stuffed items into a BindingList<item> that serves the grid as datasource using the ReportProgress-Event, all within the reader.Read() loop.
Looks good to me and suits the needs so far.
Now I am interested if this solution is something someone should do, or if there is some approach that fits better, archiving the same goal. Maybe I missed something
Any ideas, hints, tips are highly appreciated
Thanks in advance and have a good day,
best regards
Hoernchenmeister
|
|
|
|
|
Think about this from the POV of the user:
You are sat at this computer, and there in front of you is a form, with 100,000 records from a database displayed in a single list. Your screen holds maybe 30 of these, so to find the record you want involves scrolling a very thin scroll bar to a very accurate position on the screen. And hoping, lots.
Fun to use? No.
Page it. Read only a page or so of records from the database at a time. It will load faster, be easier to see and work better for the user. Then provide searches and other ways to make the poor users life easier. SQL provides the LIMIT part of the SELECT statement, which will help - LINQ will also do this.If Barbie is so popular, why do you have to buy her friends?
Eagles may soar, but weasels don't get sucked into jet engines.
If at first you don't succeed, destroy all evidence that you tried.
|
|
|
|
|
Thank you OriginalGriff for your input. I really appreciate that, and I totally agree with you. The main part of the application (WinForms) is filtered by date and several other options to show only a small part of the data to the user.
The place where my problem comes up is within an archive that requires to show all the entries in one grid.
I am just looking for some technique to show data while still reading from the database to enable the user to start working while the list is beeing populated.
but of course you are right, normally I won't bother the user with this kind of list too often
|
|
|
|
|
Then read the database in pages in a background thread, and add them as you go - but I'll bet nobody uses it in anger twice! Who came up with this stupid idea, anyway? If Barbie is so popular, why do you have to buy her friends?
Eagles may soar, but weasels don't get sucked into jet engines.
If at first you don't succeed, destroy all evidence that you tried.
|
|
|
|
|
hi,
I want to save the word file in html and word is not installed on client machine. I want to do this thing without using the word installed on the machine
Please provide some help
|
|
|
|
|
I do not think this is possible without the Office Interop assemblies. See here[^] for a download. txtspeak is the realm of 9 year old children, not developers. Christian Graus
|
|
|
|
|
ok, can i read the data through the fstream, and then do decode/encode.
Is it a right move?
|
|
|
|
|
Message Closed
modified 23-Nov-14 6:46am.
|
|
|
|
|
Please provide some sample code to perform it.
|
|
|
|
|
abcurl wrote: ok, can i read the data through the fstream, and then do decode/encode.
You can only do this if you know the file format; I doubt that this would be a good thing. As I said before, get the Interop assemblies and use them. There are many tutorials both here and on the internet to show you how to use these features.txtspeak is the realm of 9 year old children, not developers. Christian Graus
|
|
|
|
|
Hello:
I am a super novice to VS C# 2008.
I would like to find a sample program that can help me with the following:
1) Create a MDI form with children.
2) The panel on the left will hold a TreeView populated from a database.
3) When a TreeView child is clicked, I would like to open the coresponding Form.
Here is the issue. I can do a if/else...but I will have several hundred forms.
I would like to get the name of the node and use it as the name of the form and then just open/show the form.
I know, I have not explained it correctly. Hope someone can help me. Thanks in advance.
Need Sample: MDI with TreeView loaded from database... check TreeView and open coresponding Form.
|
|
|
|