|
i'm doing my C# animation project, just like i said, i'm new and i learned :
* switch case
* do while
* if
* environment exit
all over google chrome with 20 tab yesterday.
in result, i created a bouncing ball in box.
the point is, i'm just curious WHAT IS 0 IN ENVIRONMENT EXIT.
i searched all over the universe and what i found is just it is exit code to send to machine or whatever.
what i need is just something more than that, NOT FISH.
so don't think i'm not doing anything,
and again, if you're not going to answer my question, don't post anything.
i'm not the one who ask before stuck like hell.
(although that thing didn't stuck my app)
modified 18-Apr-12 22:38pm.
|
|
|
|
|
Alpherattz wrote: i'm just curious WHAT IS 0 IN ENVIRONMENT EXIT.
Traditionally zero means that the application exited 'successfully'.
A positive value is considered an error and a negative a warning.
HOWEVER, that is a very loose convention.
If no value is specified then an application (standard desktop OSes) will always have a zero value.
Alpherattz wrote: and again, if you're not going to answer my question, don't post anything.
Pretty sure that all of the posts were in fact "answers". The fact that they are not the answers you expected doesn't alter that.
|
|
|
|
|
Environment.Exit(code) will help you exit the application in a safe manner.Basically you are sending a message to the system that the application exited on it own and was not terminated due to an error.If the application really has terminated to error it notifies the system what is the error code.
0 is to tell the system that the current running application exited safely without errors.
You can get some info on these codes here
http://www.hiteksoftware.com/knowledge/articles/049.htm[^]
Sastry
modified 20-Apr-12 8:44am.
|
|
|
|
|
Hi,
Can you please tell me if YAML Parser C# is compatible with Windows 7 64-bit?
If not, are there any alternatives.
Thanks
|
|
|
|
|
What is YAML Parser?
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
Apparently it's a tool for looking at this[^]. Never heard of it before, but it looks interesting.
"YAML is tested and supported in major modern browsers like Chrome, Firefox, Opera, Safari and Internet Explorer."
IE6 is listed...
Will Rogers never met me.
|
|
|
|
|
Actually, I think he is referring to an XML replacement. Yet Another Markup Language.
|
|
|
|
|
Hi I am new in development and I am desperatly trying to create 3 reports on a single project with Visual Studion 2010.
How can I automatically bind Datasource to Reportviewer to view all my report by selecting each one on dropdown list or create 3 button to load each one?
Thank you for your help.
|
|
|
|
|
I was just wondering if there are any C# programmers in the Oak Harbor, WA area that may be willing to meet up at SBs or Whidbey Coffee every now and then. I really could use a good programming mentor.
|
|
|
|
|
This is a C# Q&A forum.
The Get-togethers section[^] is a much better place to plan a meeting.
|
|
|
|
|
Doh, thank you. I looked for an appropriate forum, but missed it.
|
|
|
|
|
|
That's not a question. If you wanted permission, you'd first need to fill out a TPS report.
Bastard Programmer from Hell
|
|
|
|
|
|
|
Actually i am stucked at place where i need to put up the generated crystal report in the message body and then mail to the specific email id but i am not been able to put the report in body i had goooogled a lov=t but no idea
If possible please do help me out CODE will be appreciated...
please don't suggest to convert to pdf and another format and attach to the mail i want to put it inside mail body only..
thanks..
|
|
|
|
|
narendra ingale wrote: If possible please do help me out CODE will be appreciated...
*sigh* ... read the guidelines, please.
To answer your question, I don't think there 's a way to inline a report in mail directly. However you could convert it to html and use the html code inside an html mail. IOW don't add as attachment, but inline.
eg.
exported html Report
<html>
<head><!--</head>
<body><!--</body>
</html>
Strip out everything not needed like html, head, body tags. Then in your email html code add the stripped report html and voila, a nice inline report.
Some things to consider:
- Styling (css)
- Use an email template with an placeholder to put your inline report
- html content is not completely downloaded by default in many mail clients, often the user needs to manually tell the client to show the complete mail.
- I think this could become complex when using subreports eg.
This might not be the answer you like, but on top of my head, it's the only option to avoid attachments.
V.
|
|
|
|
|
When would I use stringbuilder over just string? I just read about it in a book but it doesn't explain why you would use it.
|
|
|
|
|
I would say when you are concatenating a number of strings use a stringbuilder. If it's just a case of concatenating first name and surname of a person object, a stringbuilder would be an overkill.
|
|
|
|
|
In .NET, string class is immutable. Simply put, it means that you cannot modify a string after it's creation. So, for example
string someString = "Hello";
someString += " World"; The program will not add World to the existing string. Instead, it will create a new string object "Hello World" and assigns this to someString and discards the earlier object "Hello" . So, this may not be a big issue if we are dealing with only a few strings. But, if we want to deal with several string operations, then StringBuilder is a good option. As explained here http://msdn.microsoft.com/en-us/library/y9sxk6fy.aspx[^]
This class represents a string-like object whose value is a mutable sequence of characters. The value is said to be mutable because it can be modified once it has been created by appending, removing, replacing, or inserting characters.
And after making all the modifications ToString method of StringBuilder can be used to get the final string.
I think this Code Project article
StringBuilder vs. String, Fast String Operations with .NET 2.0[^]
may be helpful.
modified 17-Apr-12 11:46am.
|
|
|
|
|
Thank you. After reading that it kind of reminds me of how I used buffers in C.
|
|
|
|
|
|
|
Nice one By Abhinav 5+ thanks for info.
|
|
|
|
|
John Skeet has written about this[^]
This is an excellent introduction to this topic. I once scored brownie points in a Job Interview for referring to this stuff when asked why I didn't use StringBuilder in a simple one-time concatenation during a programming test. The interviewer didn't beleive me at first, but a quick test showed similar results to the article.
|
|
|
|