|
I assumed you forgot it, I just wanted the guy not to be lost if he forgot it also. That could be a nasty one to figure out.
--------
"I say no to drugs, but they don't listen."
- Marilyn Manson
|
|
|
|
|
No my friends,
this is just what I was looking for and i already put the base.WndProc so that couldn't tell you it was working since finally my computer was shutting down and logging off!!!!
Really thanks to both of you!
Now the question could be (but I won't ask) : HOW TO DEBUG A SYSTEM SHUTDOWN?
Stefano
|
|
|
|
|
You could use the System.Diagnostics.Debug class and companions, since you cannot use a debugger in a system shutdown.
--------
"I say no to drugs, but they don't listen."
- Marilyn Manson
|
|
|
|
|
Can anyone tell me what's software have that function.
Nothing
-- modified at 8:43 Thursday 2nd March, 2006
|
|
|
|
|
Just write your C# the way you write English. No need for any more obfuscation.
|
|
|
|
|
Hey! That's not nice! Perhaps English is you mother tongue, for others (like me) it's hard work to write here because we don't have anybody to talk or write English with. I want to see the text you write in Spanish, German or French.
Greetings,
Ingo
------------------------------
A bug in a Microsoft Product? No! It's not a bug it's an undocumented feature!
|
|
|
|
|
You're absolutely correct. What I wrote was not intended to be serious.
|
|
|
|
|
You may wish to include some smilies next time. Then the intent is clearer.
ColinMackay.net
Scottish Developers are looking for speakers for user group sessions over the next few months. Do you want to know more?
|
|
|
|
|
Unless your Vietnamese is better than his English you've no right to talk.
|
|
|
|
|
VS2003 and VS2005 contain DotFuscator Community Edition as a third-party obfuscator, for example.
Regards,
mav
--
Black holes are the places where god divided by 0...
|
|
|
|
|
While reading through msdn and debugging concept code I've confirmed that events don't synchronize automatically across threads, but according to the msdn guidelines at http://msdn2.microsoft.com/en-us/library/ms228966.aspx apparently they do:
"Additionally, the event-based pattern is less efficient than the IAsyncResult pattern because it creates more objects, especially EventArgs[^], and because it synchronizes across threads."
I would like to know in what way does the event-based pattern synchronize itself across threads because as far as I've understood the event is always raised in the context of the thread that called it. Is this refering to the method employed by the PostOperationCompleted of AsyncOperation ?
Thank You
|
|
|
|
|
They're using the term 'pattern' to mean a recognised structure for class design. See this article[^] for their overview of the "Event-based Asynchronous Pattern".
Basically what they're saying is that the class implementer should consider, for lengthy operations, making available a methodAsync routine which begins an asynchronous operation, and a methodCompleted event to signal that the asynchronous operation completed. The class implementer is responsible for getting the event to fire on the thread that started the operation. You'd normally do this using Control.Invoke or similar.
None of this is a requirement, but it is a design guideline that the framework generally follows and that users of your classes may come to expect.
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
Hi all,
I want some help in Crystal Report for Vs 2005.
I am doing Globalization on Crystal Report using Asp.Net(Vs 2005).
On that Crystal Report I can Get Every data fields in Localized
language (By help of Buisness Object Sapmples)
except Number Fields, Date Fields & Crrency Fields.
Can any one help me to do these fields in Localiaized foramt........
chakkara
|
|
|
|
|
I am trying to use Data Access block V2. I am trying to use stored procedures to manipulate with data. Please tell me the way to pass Input and Output parameters with Data Access Application block.
Thanks,
Sandy Sekhon
|
|
|
|
|
Is there any way to edit a text file without using an intermediate temporary file.
The text file has one entry in each line, and if there are 90 entries i.e. 90 lines, and I need to edit some lines in between (i.e say fro eg the 4th and the 30th entried) without creating an intermediate file. I tried using the FileStream class, it writes only in bytes, and I am stuck as to how to increase the seek pointer linewise.
My code goes like this
System.Text.ASCIIEncoding encoding=new System.Text.ASCIIEncoding();
Byte[] b = encoding.GetBytes("\r\n New Entry \r\n");
fs.Seek(1,SeekOrigin.Current); // fs is the FileStream
fs.Write(b,0,c.Length);
The problem here is in the Seek function, as I need to increment the seek pointer to point to the start of the next line that I am supposed to edit. The above solution is affecting two lines. The required line gets edited but the entry in the next line is replaced by a blank line. And if the '\r\n' is not given then the text is appended to the same line.
Any solutions, Please HELP!!!!!!!!!
|
|
|
|
|
Why don't you work in the storage? Read the file you want to change, change it and then write it back?
Greetings,
Ingo
------------------------------
A bug in a Microsoft Product? No! It's not a bug it's an undocumented feature!
|
|
|
|
|
Hi,
The problem is that i'm doing this for a Pocket PC with a memory capacity of 64 MB and the file can be quite large. Reading all of the data into storage can sloq down the processing speed considerably. This is quite a dilemma i'm in . Help me out,Guys.
|
|
|
|
|
<br />
<br />
ArrayList alLines = new ArrayList();<br />
StreamReader sr = new StreamReader( "C:\\myfile.ext" );<br />
<br />
string szLine = sr.ReadLine();<br />
while( szLine != null )<br />
{<br />
alLines.Add( szLine );<br />
szLine = sr.ReadLine();<br />
}<br />
<br />
sr.Close();<br />
<br />
<br />
<br />
alLines[ 4 ] = "BLAH BLAH";<br />
alLines[ 30 ] = "MORE BLAH BLAH";<br />
alLines[ 56 ] = alLines[ 56 ].ToString() + " Appended string";<br />
<br />
<br />
<br />
StreamWriter sw = new StreamWriter( "C:\\myfile.ext" );<br />
for( int iCnt = 0; iCnt < alLines.Count; iCnt++ )<br />
sw.WriteLine( alLines[ iCnt ].ToString() );<br />
sw.Close();
Koushik Biswas
-- modified at 16:33 Thursday 2nd March, 2006
|
|
|
|
|
how can i convert a system.string to system.type
Type ct=null;
ct=(Type)Convert.ChangeType("string",typeof(Type));
why the above lines shows error
please help me
chakkara
|
|
|
|
|
If you want to know the type use GetType
Regards
Hansjörg
|
|
|
|
|
string str = "hello"<br />
Type t = str.GetType();
everything derives from Object, which defines the GetType method. So, this also works
int i = 10<br />
Type t = i.GetType();
|
|
|
|
|
TypeDescriptor.GetConverter()
|
|
|
|
|
I assume that you have a string representing a type (like "System.String") and you want the System.Type corresponding to System.String:
Type ct = Type.GetType("System.String", true); // True throws an exception if the type is not found.
--------
"I say no to drugs, but they don't listen."
- Marilyn Manson
|
|
|
|
|
Why the outputs are not the same?
Char[] aChar = new Char[] { 'h', 'e', 'l', 'l', 'o' };
Char[] bChar = new Char[] { 'h', 'e', 'l', 'l', 'o' };
string a = new string(aChar);
string b = new string(bChar);
object c = a;
object d = b;
Console.WriteLine(c == d);
String e = "hello";
String f = "hello";
object g = e;
object h = f;
Console.WriteLine(g == h);
Regards,
Diana.
|
|
|
|
|
because achar and bchar are two character arrays while e and f are two string variables thus they r not equal
reply by
dhamija.manoj@gmail.com
manojdhamija@yahoo.co.in
manoj
|
|
|
|