|
1) First set up a backup system.
2) Run Reflector[^]
3) Verify your back up is running
If you skip step 1 or 3, you can as well save yourself the trouble of 2) as it is just a question of time before you loose it all again.
Notice this won't restore variable names etc.
|
|
|
|
|
I am trying to create a deployment project for a C# application that I have. In the deployment project I have added a dialog box with two checkboxes to allow the user to select if they want add a shortcut to the application on the Desktop or the Startup folder or both. So I have created shortcuts and placed them in the Desktop folder and Startup folder of the deployment project. However, according the to the Help in Visual Studio .Net I must put the value from the CheckboxProperty property in the Condition property of the file. The shortcuts that I created in Visual Studio does not have a Condition property, it has an Arguments property and a few other properties. Does anyone know how I can allow users to select where they want to place a short during installation? Thanks.
|
|
|
|
|
Well, the short answer is you cannot do this using the VS.IDE.
If you really want to do it, and I would suggest that it is not worth the trouble, you will have to manually edit the msi using Orca.
VS.IDE will put both the shortcuts - desktop and start menu - in a single component.
You can only apply a condition at the component level, not at the resource (i.e. file or shortcut) level. So you will have to create a new component to split the two shortcuts up, and then apply the checkbox condition to each separate shortcut component.
This is not a trivial task unless you have at least a reasonable knowledge of msi architecture.
|
|
|
|
|
I Have a few questions about .Net 2.0 and C# 2.0. I’m using Visual Studio 2003 and I can’t figure out how to upgrade to the new specifications. I’ve downloaded and installed “.NET Framework Version 2.0 Redistributable Package (x86)” and the “.NET Framework 2.0 Software Development Kit (SDK)(x86)” but I still don’t have access to the new classes. For exsample System.Windows.Forms.WebBrowser will not compile, nor will “partial class”. Do I have to have VS 2005 for the new specifications to work?
Ronald Hahn, CNT - Computer Engineering Technologist
New Technologies Analyst
HahnTech Affiliated With Code Constructors
Edmonton, Alberta, Canada
|
|
|
|
|
And what is this ClickOnce sh*t... Can't you just make an EXE anymore... Does MS realize that their way may not be the best way... Gerrr
Ronald Hahn, CNT - Computer Engineering Technologist
New Technologies Analyst
HahnTech Affiliated With Code Constructors
Edmonton, Alberta, Canada
Email: rhahn82@telus.net
|
|
|
|
|
Well after an afternoon of fighting I figured out how to get just the exe out of c# express. Why there isn’t an option under the build menu for such a thing I’ll never know. Why it won’t run off a shared network drive I don’t know. And while more choice is always good, taking away the option to simply compile to a exe easily is very limiting.
Ronald Hahn, CNT - Computer Engineering Technologist
New Technologies Analyst
HahnTech Affiliated With Code Constructors
Edmonton, Alberta, Canada
|
|
|
|
|
HahnTech wrote: Well after an afternoon of fighting I figured out how to get just the exe out of c# express.
I've never used the Express editions, but every time you Build the solution/project on all the other versions, you get the .EXE(s) in the bin folder of your project.
HahnTech wrote: Why it won’t run off a shared network drive I don’t know.
Because network sources are not trusted sources of executable code. Just like in Internet Explorer, if the network source is not trusted, the code is forced to run in a restricted sandbox and doesn't get access to all machines resources. This is configurable if you go into Administrative Tools and configure the permissions/trusts for either the network source or the specific application you want to run.
Try reading Code Access Security[^] on MSDN before you start bashing stuff you don't understand yet.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Ok so I was having a bad day with MS.. I could find the exe in the bin (on a network share) but when i would run it there was nothing said about security, only that the application has encountered a problem and needs to close. Well that’s great. In 2003 you would get a warning and have the ability to allow or disallow. At least that way you hade a change to know what was going on. I’ll worry about security when I’m working on an app that might be reassessed someday.
Ronald Hahn, CNT - Computer Engineering Technologist
New Technologies Analyst
HahnTech Affiliated With Code Constructors
Edmonton, Alberta, Canada
|
|
|
|
|
Click once is not sh*t, I don't think you understand what it is.
it's only one more deploying technology, MSI is one alternative, cabs files is another, click once is another.
It has nothing to do with the .exe files, you still will have the .exe or the application would not work. This is about how you deploy your .exe and .dll files.
In fact, this was possible in .net 1.1 but only a lot more difficult. All they've done is making it easier because you can define your application's permissions at design time and test it. All click once is doing is using .net policies to determine what an application downloaded through http can do. VS 2005 lets you do it with wizards, that is all.
|
|
|
|
|
HahnTech wrote: Do I have to have VS 2005 for the new specifications to work?
I think you will have to upgrade to Visual Studio 2005 to develop with C# 2.0 and .NET 2.0.
John 3:16: "For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him should not perish, but have everlasting life."
using Earth.Internet.WWW.CodeProject;
|
|
|
|
|
VS2003 will only work with the .NET Framework 1.1. You can't use it to compile a .NET 2.0 app. Remember, the compilers are built into the Framework, not Visual Studio.
If you want to use the .NET 2.0 stuff, you'll have to have Visual Studio 2005.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
you don't need visual studio to compile application using .net 2.0 but you can't access the namespaces or compilers from within VS 2003, since I can't imagine you having a very good time creating .net applications without Visual Studio I would strongly recommend to get VS 2005 if you are planning on using .net 2.0.
Incidentally, if you want to user notepad to edit the source code, make sure you reference the right libraries and you configure your application to run under .net 2.0. If you install VS 2005 it takes care of that for you, otherwise you will have to look at the documentation.
|
|
|
|
|
Hi folks,
I have project writing rich text document on metafile using GDI
Now I'm trying to make it using GDI+
Problem: I can't draw it precisely!!
Test sample: create metafile 10x10 inces, draw strips 10, 9, 8 inches long:
<br />
RectangleF frame = new RectangleF(0f, 0f, 10f, 10f);<br />
Metafile mf;<br />
Graphics g1;<br />
<br />
using(Graphics gr = CreateGraphics())<br />
{<br />
IntPtr dc = gr.GetHdc();<br />
mf = new Metafile(@"c:\inch.emf", dc, frame, MetafileFrameUnit.Inch, EmfType.EmfOnly);<br />
gr.ReleaseHdc(dc);<br />
}<br />
g1 = Graphics.FromImage(mf);<br />
g1.PageUnit = GraphicsUnit.Inch;<br />
g1.DrawLine(Pens.Green, 0F, 1F, 10F, 1F);<br />
<br />
g1.DrawLine(Pens.Green, 0F, 3F, 9F, 3F);<br />
g1.DrawLine(Pens.Green, 0F, 5F, 8F, 5F);<br />
g1.DrawLine(Pens.GreenYellow, 1f, 0f, 1f, 10f);<br />
g1.DrawLine(Pens.GreenYellow, 3f, 0f, 3f, 9f);<br />
g1.DrawLine(Pens.GreenYellow, 5f, 0f, 5f, 8f); <br />
<br />
g1.Dispose();<br />
mf.Dispose();<br />
Strips are shorter than needed!!
Using other units (Milimeter, Pixel, Point, Document) produces different results - all invalid
Question: how to create precise EMF - with definite size, size and positions of elements?
WBR Tim
Tim
|
|
|
|
|
Its an easy one
I have a worker thread like this:
private void workerThread()
{
...
...
interpreter.Parse(.....)
...
...
}
This "interpreter" is a NMEA parser object, and the Parse method raises several events... whose handlers are declared and coded on the main form code.
My question is... are these event handlers executed in my worker thread? or are they executed in the main ui thread?
By the way, the NMEA Parser is very similar to the Jon Person's one, avaliable in CodeProject 
|
|
|
|
|
Those event handles run on your worker thread and it's not recommended to access/modify UI controls from them. You might want to read this[^] article to get a better understanding.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
Thanks for your kind response!
But i forgot to tell you that I am using Compact Framework 1.1, that does not include BeginInvoke
|
|
|
|
|
|
I had developed Today screen programming for Pocket
PC using .NETCF,C#,Today screen plug in which is provided by microsoft
.I refered the following link.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnppcgen/html/TodayScrn.asp
It is working fine with Pocket PC 2003 English OS.But it is not working with Pocket PC 2003 German OS.What is the change i need to be do to
make this work in German OS.I didnt get any error or crash but my
application is not listed out in Pocket PC (that is in
Settings->Today->Items tab).So i am not able to set the today screen
item and access the application.Please help me in this regard.
Regards,
S.Sevugan.
|
|
|
|
|
how to add module in c#.net? There is no option in the menu project-> add module in c#.net which we have in vb.net.
sarayu
|
|
|
|
|
Use CSC.exe (C# compiler) to compile ur code in to a module using the Target switch. Then use AL.exe (assembly linker) to link the module to ur assembly.
|
|
|
|
|
hi
Thank you for the response.
Iam not aware of how to compile and usage of assembly linker. can u give me the step by step procedure.
Regards,
Sarayu.
|
|
|
|
|
Look in msdn.microsoft.com
|
|
|
|
|
C# does not support the concept of modules as VB.NET does. AFAIK the module concept is a hang over from the old VB6 days and the VB.NET compiler does some fudging when converting the VB.NET code into MSIL in order to get it to work.
I did read an interesting article on the subject a week or two back, however I cannot find it otherwise I would have linked to it.
My: Blog | Photos
"Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucious
|
|
|
|
|
I mean CSC /target:module
Never used VB & don't know how a module in VB differs from module in dotNet.
|
|
|
|
|
hi
I have got the information from msdn but that is purely related to console application. How will i do that in windows application using c#.net.
My requirement is :
I need to access a variable globally where the changes are done dynamically and that has to be reflected in all the other forms in that solution file.
example:
A variable a=10 is accessed globally.
During runtime i ll change the variable,a=20 in a different form.
how will this reflect in all the other forms unless i declare the globle variable in a module.
if i declare the variable by giving
public static a
i can access globally, but i cannot do the changes dynamically.
hope i ll get your help.
thanks,
sarayu.
|
|
|
|