|
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.
|
|
|
|
|
|
I have an existing Excel workbook, it has three sheets on it, ( Totals, Performance, Breakdown )
I have written the C# program to work as an external performance, but the values still need to populate the actual worksheet Performance.
I have printed of many sheets of paper with snippets of code showing how to create a workbook/sheet and populate it. but I cannot find anything that will allow me to open an existing work book and the cells (which are all over the place on the worksheets then save the work book as (textbox1.text).
That is my priority
the secondary task is to have c# look at the Breakdown sheet and any row between A,40 and A,560 if the value is 0 then hide that row. then I need to be able to print all three sheets from c#.
I hope some body can help me please.
Steve
|
|
|
|
|
Often when I see code that references a file, I see an @ prefixing the string.
Such as @"C:\my file.txt"
Why is this? Is it required? What benefits does it have?
|
|
|
|
|
When you want to set a path, you have to write "C:\\text.txt" (for example), because \t in a string means indenting; there's much more formatting in strings like \n ... . With @ symbol you remove all these formats, actually "C:\\text.txt" is equal to @"C:\text.txt" .
Sometimes you want to write your strings in two or more lines, with @ you can do this.
@"Hello<br />
World<br />
!"
For more details search MSDN for "@ symbol".
When you're alone in the Dark, Fear will protect you...
|
|
|
|
|
|
Yeah, It's much better
When you're alone in the Dark, Fear will protect you...
|
|
|
|
|
Glad to help you
|
|
|
|
|
Hello,
I have searched the internet but I haven't found what I was looking for, and maybe someone can guide me here.
I want a control for c# .net that should work similar to the CHAPTERS MENU from this site
(http://www.codeproject.com)
I want a similar menu where I can set the categories, and when someone will click on teh category, it will enlarge it and reveal the items. I want to be possible that all categories can be opened at the same time.
Hope you can help, thank you
|
|
|
|
|
Why don't you try creating that BY YOUR HANDS?!!
When you're alone in the Dark, Fear will protect you...
|
|
|
|
|
Hello,
I am just starting out with C#, and I don't really know where to start to create that.
I would be more than happy to make this by myself, but I would appreciate if you could give me some tips
|
|
|
|
|
Flowlayoutpanels, custom controls with your own propertys and events, toggle visibility.
Those 3 key things right there will be what you need to get that done.
|
|
|
|
|
Thank you very much for the quick replyes. I am looking in to this right now.
|
|
|
|