|
Hi People - I have been tasked with a project to choose the best method and tools to deploy our c# app - it probably needs to include obfuscation, maybe some form of encryption/source code protection etc and certainly be able to run without the framework being previously installed. I know there are a few products out there - Can anyone recommend some/give some advise ?
Thanks
|
|
|
|
|
Symeonb wrote: Hi People - I have been tasked with a project to choose the best method and tools to deploy our c# app - it probably needs to include obfuscation, maybe some form of encryption/source code protection etc and certainly be able to run without the framework being previously installed.
All of those requirements can be met using the standard setup project*, save for one. The only problem would be this:
Symeonb wrote: certainly be able to run without the framework being previously installed.
Maybe I am unsure about what you mean by this, but you have to have the .NET framework installed on the users machine. Maybe you meant that the setup project has to install the framework if it isn't already. What you can do is add a perquisite for the framework, and if it isn't installed, then you can have your setup project install it.
About the requirements you wanted to have run with setup. What you will have to accomplish to get the setup project to do them is to override the Installer. You can override all install methods, such as Install, Uninstall, Rollback, etc. See the link below for an example of how to do this.
Overriding the installer class[^]
* File -> Add -> New Project> -> Other Project Types -> Setup and Deployment -> Setup Project
I get all the news I need from the weather report - Paul Simon (from "The Only Living Boy in New York")
|
|
|
|
|
Hi - Thanks for the comments - just as an fyi we have decided to go with the softinstall product from bitfactory software - it does most of what we want and talking to the guys there, it looks like they have some exciting new developments coming out as well.
Rgds
Symeon.
|
|
|
|
|
Hi,
I like to write an application to access the IO pins on the compact flash port of an IPAQ running Windows Mobile 5.0.
Is this possible ? and is there any sample code for this?
In the end I'am desingning a CF to RS232 interface with extra functions inside.
regards
Henrik
|
|
|
|
|
Hello guys!
I want to save a System.Drawing.Graphics graphic as a *.bmp file, and tried it using the StreamWriter. I know this from saving text to a *.txt file, but found out, that this doesn't work with System.Drawing.Graphics graphics.
Has anyone an idea how this could work, I didn't find anything useful in the MSDN library.
Thanjs and best wishes.
|
|
|
|
|
The following steps should work:
1. Create a new instance of a System.Drawing.Bitmap object.
2. Derive a Graphics object from your bitmap by calling its FromImage method.
3. Perform your drawing operations using the Graphics object.
4. Call the Dispose method on your Graphics object.
4. Save your image to a file by calling the Save method on your bitmap object.
Hope this helps.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
Thanks for your help, now it works
|
|
|
|
|
Hi,
C#, VS2005
I have an aspx page which loads a crystal report as a pdf.
The code loads the report, connects to the sql server database, sets the report parameters and creates the report.
This works fine when the stored procedure behind the report takes up to a couple of minutes. But when the stored procedure takes around 3 minutes the aspx page just hangs and never returns.
Has anyone seen this behaviour? - I assume there is a time out I need to set somewhere...
Thanks in advance...
Chas
|
|
|
|
|
Hey,
I have a small problem. I created a UserControl within a Windows Forms Project, added all the controls needed, code behind...everything. It was working OK. When I reopened the project I was surprised to see that on my usercontrol...in design mode there are no controls on it. In the Properties toolbox, the list of controls that "are" on the control are there...all their properties are the right ones. I tried looking in the designer file...the InitializeComponent method is OK. So everything is there where is supposed to be...except my controls on the form . I want to ask, if anyone had come across this problem...because it happened to me several times on different computers. By the way...I'm using VS 2005.
Thanks.
There are 10 kinds of people: those who understand binary and those who don't
|
|
|
|
|
I've had the same problem and found by closing and reopening it solves the problem. As far as what causes it I ain't gotta clue!
Good Luck
Mike
Life is not measured by the number of breaths we take, but by the
moments that take our breath away. "George Carlin"
|
|
|
|
|
I have a richtextbox, each line has in it a unique 6 digit number on the line so I can find the line number but then I want to search just the given line from character position x to end of that line for a different character pattern and select them so as to allow me to change their fore and background colours.
Currently I select the unique text on a line and change it's color thus
rtxtResults.Select( rtxtResults.Find(texttofind),(texttofind.Length));
rtxtResults.SelectionBackColor = Color.Red;
rtxtResults.SelectionColor = Color.Gold;
I then want to be able to search all charicters that follow the text found above to the end of that line only.
I asume I would somehow need to use rtxtResults.GetLineFromCharIndex but can’t work out a way of restricting the find to a single line in the richtextbox.
Any help/sample would be apprichated.
thanks
|
|
|
|
|
You could find the next the carriage return character, the position of that character would give you the length to search.
"You're very clever, young man, very clever," said the old lady. "But it's turtles all the way down!"
|
|
|
|
|
Thank you that seems such an obvious think to do, I should have thought of it too!!!
however I'm haveing an issue with it in that it alway returns -1 (not found!).
int endline = rtxtResults.Find(System.Environment.NewLine, 1, RichTextBoxFinds.None);
or
int endline = rtxtResults.Find("\r", 1, RichTextBoxFinds.None);
As can be seen above even manualy setting the start location to 1 it never finds the end of line!
the watch show each line ending in \n !
any idea why?
thanks
|
|
|
|
|
An RTB knows about text lines, there are a couple of methods that support that concept,
such as GetFirstCharIndexFromLine() and GetLineFromCharIndex().
Luc Pattyn [Forum Guidelines] [My Articles]
this months tips:
- use PRE tags to preserve formatting when showing multi-line code snippets
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
thanks for your pointer I now have it working thus:
int currentline = rtxtResults.GetLineFromCharIndex(rtxtResults.Find(texttofind));
int firstcharinline = rtxtResults.GetFirstCharIndexFromLine(currentline);
int lastcharonline = firstcharinline + rtxtResults.Lines[currentline].Length;
rtxtResults.Select(rtxtResults.Find(nexttextofind, firstcharinline, lastcharonline, RichTextBoxFinds.None), nexttextofind.lenght);
Thanks
|
|
|
|
|
Hi
I m facing a strange problem.Its not a big issue but still want to ask that Is there any way to update list box without against any event ?as I want to show users list in the list box at server side when clients/users successfully conncted but no value is displaying at that time instead I got this message during debugging "The list box is not in a given context".
but if I add any value in list box against any event then it displays.
so plz tell me how i can add values in list box in any context?.
Regards
Shanzay
|
|
|
|
|
Hello,
When I try to build my solution I get following error:
Error 165 Unable to copy file "<dll name="">". The process cannot access the file 'bin\Debug\"<dll name="">" because it is being used by another process.
The <dll name=""> is a project dll of the solution that I am trying to build.
The "Copy Local" property for all the references to above "<dll name="">" is set to false.
I get this error sometimes and when I get it, I have to close down VS.NET and then restart it to get rid of it. It really wastes a lot of time!
Any idea what it can be?
Thanks
|
|
|
|
|
before building ensure that svchost for ur application is running in the task manager i hope this will help u...
dhin chak
|
|
|
|
|
Thanks for replying.
Did you mean <app_name>.vshost.exe?
How do I run it ... Just by double click the
\bin\Debug\<app_name>.vshost.exe?
|
|
|
|
|
I did check that <app_name>.vshost.exe was running but still it gives error!
I see the error at build time, only if I have edited a form in the problem project. In other words, if I edit a form in the project which is giving error, then build the solution, it fails to build and gives the error described in previous posts.
|
|
|
|
|
Hi,
My application(a Windows Service) needs to create a complex xml, the values for which are retrieved from several tables of an oracle db.
In order to construct this, I can use wither datasets(probably typed) or business enitity objects which are XML serializable.
Also, requirement is to only use SPs at oracle end and direct SQL queries are not allowed
What is a better suggestion in terms of development ease and time and also performance. I need to have the design very soon. So please give your experiences in them also
-Rohan
|
|
|
|
|
I always prefer writing objects over strongly typed datasets in all but the most trivial of cases. There seems to be an MS trend to eliminate OO and it always backfires late into a the project.
Need a C# Consultant? I'm available.
Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway
|
|
|
|
|
hi,
I have been trying to create tablet PC application to do handwriting recognition. We have Tablet PC SDK 1.7 installed and Win XP on a desktop. There is a panel where you can write with the mouse. We have a recognize button and for the button click event we have the following code:
MessageBox.Show(oInk.Ink.Strokes.ToString());
This didn't work and gave a unhandled exeception.
So we tried doing this:
Recognizers oRecognizers =
new Recognizers();
Recognizer oReco =
oRecognizers.GetDefaultRecognizer();
RecognizerContext oRC =
oReco.CreateRecognizerContext();
oRC.Strokes = oInk.Ink.Strokes;
oRC.EndInkInput();
RecognitionStatus iStat =
RecognitionStatus.NoError;
RecognitionResult oResult =
oRC.Recognize(out iStat);
This was the exception we got:
"An unhandled exception of type 'System.InvalidOperationException' occurred in Microsoft.Ink.dll
Additional information: The requested recognizer is not available with the current setup or configuration. "
Could you please tell me what is wrong?
Pls suggest an alternate way to do recognition. Its really urgent!
Pls suggest links where I can find sample working code.
Thanks
Bibhakar Ranjan
|
|
|
|
|
what's your default keyboard layout? google says it should work if it's english (united states)
|
|
|
|
|
Hi.
I need some help with creating a custom resizable contol in C#/XAML.
I am using groupboxes as the "windows" in my application. In the bottom right corner I have made a button that I want to use as a resize handle.
So the button itself needs to be dragable and then the groupbox´s width and height has to follow the button.
Is this the right way to do it?
/B
|
|
|
|