|
I solved this problem. I used waitForExit.
Balasubramanian K.
|
|
|
|
|
if i have placed this post in wrong board then please feel free to move it.
so..can anyone tell me why gdiplus is more then twice as slow in encoding jpeg images on windows xp compared to windows 7?
i need a fast jpeg encoding and gdiplus is fine as long as i use windows 7 but on windows xp its to slow for what i need, so currently im using Blackfin Fast JPEG Encoding on windows xp but its still around 40% slower then gdi+ on windows 7.
Encoding 100 images of size 1980 x 1080 on my machine:
GDI+ windows 7: 3000 to 3500 millseconds (extremly fast!)
GDI+ windows XP: ~8000 millisecs (too slow)
Blackfin Fast JPEG: around 5000 ms on any OS
any suggestions how to improve the speed of gdi+ on XP?
|
|
|
|
|
i have been searching for a treeView which is similar to MSN messenger tree view
which contains an icon and brief description and some other data ..
for windows form app
does any one have an open source one ?
thnx alot ..
|
|
|
|
|
System.Windows.Forms.TreeView seems good enough for your need
Its TreeNode(s) have text, image and tag
A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station....
_________________________________________________________
My programs never have bugs, they just develop random features.
|
|
|
|
|
|
Here's[^] a good looking tree view.
/ravi
|
|
|
|
|
Hi all, as runing this algorithm, that decrypt an encrypted array of bytes, allways returns null as a decrypted result...
the code is below:
public static void Decrypt(byte[] toEncryptArray, bool useHashing)
{
System.Configuration.AppSettingsReader settingsReader = new AppSettingsReader();
string key = (string)settingsReader.GetValue("SecurityKey", typeof(String));
if (useHashing)
{
MD5CryptoServiceProvider hashmd5 = new MD5CryptoServiceProvider();
D_keyArray = hashmd5.ComputeHash(UTF8Encoding.UTF8.GetBytes(key));
hashmd5.Clear();
}
else
D_keyArray = UTF8Encoding.UTF8.GetBytes(key);
TripleDESCryptoServiceProvider tdes = new TripleDESCryptoServiceProvider();
tdes.Key = D_keyArray;
tdes.Mode = CipherMode.ECB;
tdes.Padding = PaddingMode.PKCS7;
ICryptoTransform cTransform = tdes.CreateDecryptor();
byte[] D_resultArray = cTransform.TransformFinalBlock(toEncryptArray, 0, toEncryptArray.Length);
tdes.Clear();
}
Can any one help me ,,,,,,,,, i'll be very thanks..,
regards
|
|
|
|
|
Message Closed
modified 23-Nov-14 6:49am.
|
|
|
|
|
very thanks stancrm, but sorry, i really new at C# and don't
understand that........
can you make it more esey ...;
thanks..,
|
|
|
|
|
Here let me help Stan out....
Follow the link to the MSDN article
Read the article to understand what you are doing
Locate the c# sample in the article
Highlight the sample code
Copy it to the clipboard
Open you test application
Locate where you want to work with the sample
Paste the sample into your app
Wire up the events required to test the sample
Create the objects required by the sample (you should understand these needs from reading the article)
Put in a break point in your code
Run the app.
Step through the code and inspect the objects to understand in detail what you are doing.
Wheres the spoon icon!!!!!
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
That's some good spoon feeding you've got going on there.
|
|
|
|
|
3bood.ghzawi wrote: can you make it more easy
You have been provided with basic cut & paste code to show you how to do it. How much easier do you want it? If you can't understand this example then you shouldn't even be attempting encryption.
I know the language. I've read a book. - _Madmatt
modified on Tuesday, February 2, 2010 6:54 PM
|
|
|
|
|
hi take a look at my codes:
|
|
|
|
|
The client has to know where the server is. Period. There's no way that a server could notify the client of its address without the server being previously aware of the client - for the server to be previously aware of the client then the client would have had to have to connected to the server already!
In other words, what you have with localEndPoint2 is unnecessary. In order for the server to notify the client where it is they would already have to be connected and that would mean your problem is already solved.
Usually on the client side the server's IP Address and Port are stored in the application's configuration. Then the server starts up and starts listening on its port, and when the client starts up it reads its configuration and it knows where to connect to.
|
|
|
|
|
Hi,
I have Microsoft Access report in my .mdb file. In this database, i have one report which has attached to one table. From C#.net application,I want to open MsAccess database and get the reports per page and save as .DOC(as word document). Currently issue is that i connected to access database, opened report as well but when i am trying to save it,it's saving without any format like line or table (but on report i have layout like table/lines etc), NOT only that currently it's saving in only one .DOC file. I want to save per page from reports to my C:\test\ drive using C#.
Can someone help me pls.??
Thanks in advance.
|
|
|
|
|
Let me be the first to point out - using Access as a reporting tool is a REALLY bad idea.
Is there an export function in the Access report, I assume you are using a saveas function?
Can you export a report to word from withing Access?
If so create a macro and follow the steps, inspect the code created y the macro and then duplicate it in your app.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
hi guyz...
-> i need some good articles or help regarding bluetooth programming in dotnet... i am also searching
the web but i am unable to find good one... plz help me out with this...
thanks...
take care...
J A Nasir K
|
|
|
|
|
Bluetooth is basically writing to COM ports so any COM port tutorial will suit your needs, or should.
|
|
|
|
|
|
So I have been reading through a lot of code lately. That is, code samples and articles and such on CodeProject and elsewhere. And at seemingly random times I notice a method or property is accessed with 'this.' before it. Is there really a rule to using it, or does it make for easy readability depending on the situation? I rarely ever use it and I would like to know if it's bad practice not to.
|
|
|
|
|
The this keyword provides access to the current instance of a class.
Information on this here[^].
Me, I'm dishonest. And a dishonest man you can always trust to be dishonest. Honestly. It's the honest ones you want to watch out for...
|
|
|
|
|
|
You only need to use it to disambiguify tell which variable you actually mean. I.e.
private string parameter;
private void Method(string parameter)
{
this.parameter = "Class scope variable";
parameter = "Method scope variable";
} Or when you pass the current instance to a method:
private void Method(MyClass)
{
...
}
private void AnotherMethod()
{
Method(this);
} Using it unnecessarily just clutters the code and makes it harder to read IMO.
All those who believe in psycho kinesis, raise my hand.
My 's gonna unleash hell on your ass. tastic!
|
|
|
|
|
Okay, that makes plenty of sense. Thanks everyone for you input!
|
|
|
|
|
Unfortunately, this is a suggested requirement of FXCOP and it is a very poor programming practice. It is my opinion that the over-user of the this keyword came from ignorant programmers who did not know of the keyboard shortcut for intellisense (ctrl + space) these ignorant programmers then went on to define a standard because they wanted code to be "readable" thus it became a standard. It then made it into FXCOP which is a MS tool and then, because it is an MS tool other companies "architects" decided that if MS does it then it must be good. However, MS code rarely, if ever passed through the recommended FXCOP settings without warnings ... to make a long story short:
Don't use this unless you really need to. The only real good time to use the keyword is when calling a method from another object that required a reference to the calling object such as:
public class Foo{
public Foo(){
Bar bar = new Bar(this);
}
}
public class Bar{
public Bar(Foo foo){}
}
In all other cases where you would be tempted to use the keyword you have inappropriately named your local and member variables. Fix them.
|
|
|
|
|
A lot of MS's generated code uses this.xxx. I don't especially mind it but like you say it's not really necessary. It seems to be a hangover from Java where it appears to be the house style.
Kevin
|
|
|
|