|
Goto setup project properties. There you will find a prerequisites button. There you can select Framework installation as prerequisite.
|
|
|
|
|
which installation Location i have to specify in the prerequisites.
Thanks
|
|
|
|
|
I guess its same location as my application option.
|
|
|
|
|
You can check if install the dot net framework, when initialize in your program. If not install, you can call the dot net package and install it.
|
|
|
|
|
After checking how can i call the dot net package to install it?
Thanks
|
|
|
|
|
i have error : cross thread operation not valid : Control 'FormTest' accessed from a thread other than the thread it was created on
i know there's a way called safe- thread but in my application, there's no control FormTest. FormTest is actually a Form.
What's happening?
Thanks
|
|
|
|
|
The Form class inherits Control. All Controls in .NET must be accessed from the same thread in which they are created.
I'm guessing you are creating another thread and then attempting to update something displayed on your form from that second thread, correct? This is a no-no. You need to use Control.Invoke() or Control.BeginInvoke() to do your updates. Look them up and then come back if you have questions about how to use the samples you find - there are literally millions of them on the net.
|
|
|
|
|
|
How to convert 8.76882E-2 to double like 0.0876
Thanks
|
|
|
|
|
Hi,
conversion to a longer form (short to int, int to long, float to double) are implicit;
they don't need a method call or a cast.
But what you want is formatting, not conversion. Formatting is handled by the ToString() method,
which optionally accepts a format specification. Read up on Double.ToString().
|
|
|
|
|
what if 8.7688E-2 is in string type. I want to convert it to double ?
|
|
|
|
|
Hi,
if you want to make clear it is a string, please put it in double quotes.
Converting string representations to their intended type is called parsing.
Each basic type offers one or two methods for that very purpose, have a look at
Double.Parse() and Double.TryParse().
|
|
|
|
|
11/03/08
Hello All:
I would like to know if it is possible to use mono to run a c#.net application from a cd when the .net framework and mono is NOT INSTALLED on the host computer.
Thanks much,
Doug
|
|
|
|
|
No - C# requires .NET so it must be installed for an application to run. However, there are tools out there that will compile your app and any needed bits of the framework into a new executable to enable this, but I think if running from a CD, you'll run into security/permission issues unless you're doing something very basic.
Most OS installs have at least v2 installed, so it's pretty safe to assume that your end user will have at least that already IMO.
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
|
|
|
|
|
Hey!
I have to work with MailItem objects, because I have to do an Outlook AddIn (in Outlook 2007).
I'm still planning the code logic, because I am not sure about how to use MailItem objects in the best way (to get the best performance).
So the AddIn is searching out (from the proper collection) the selected e-mails in the view where the user stays. Then I display these e-mails and their attachments in a Windows Form where the user decides wich he need to save (with CheckBoxes) to a specified path (in code).
I know all the classes and objects what I have to..but there's a thing what I'm not sure about.
It would be comfortable to pass the created MailItem objects to the Forms' constructor, but... If I'm creating MailItem objects from all the selected mails, that means if I have 10 e-mails with a 10 MB attachment one-by-one, my application eats up 100 mb of memory (cuz' all MailItem object have it's own Attachments collection)??
Then I pass that amount to the Forms' class so 100 MB again? I read that new instances of a class are reference types, but I'm not sure...
Please help me, thanks in advance!
|
|
|
|
|
gubijo wrote: Then I pass that amount to the Forms' class so 100 MB again? I read that new instances of a class are reference types, but I'm not sure...
No, it wont pass that data again, unless it is a ValueType or MarshalByValueComponent .
xacc.ide - now with TabsToSpaces support IronScheme - 1.0 beta 1 - out now! ((lambda (x) `((lambda (x) ,x) ',x)) '`((lambda (x) ,x) ',x))
|
|
|
|
|
Does C# support inline IL?
I don't think that v1.1 supported it but I'm not sure if the latest version 3.5 supports it.
|
|
|
|
|
No.
Unless you do strange tricks with attributes and post-processing of the executable... (this is actually used in some projects)
|
|
|
|
|
If you need it, Mike Stall[^] has an implementation you might find interesting.
|
|
|
|
|
OK - So it sounds like C# doesn't natively support inline IL but it sounds like there are "hacks" to work around this. Is this an an accurate assessment?
|
|
|
|
|
|
I don't think you will get much of a performance benefit from working with inline IL. Its fairly high level, and none of the syntactic nicetys.
|
|
|
|
|
Is there anything that you want to do, that you cannot do in unsafe C#? (excluding tail calls).
xacc.ide - now with TabsToSpaces support IronScheme - 1.0 beta 1 - out now! ((lambda (x) `((lambda (x) ,x) ',x)) '`((lambda (x) ,x) ',x))
|
|
|
|
|
leppie wrote: Is there anything that you want to do, that you cannot do in unsafe C#? (excluding tail calls).
Yup - make the code almost unmaintainable by anybody but the author.
|
|
|
|
|