|
Klocwork is a static source-code analyzer for C/C++/Java. It will not work with any .NET language.
ReSharper is a .NET specific dynamic programming enhancement tool ... it works alongside Visual Studio 20xx ... at design-time.
I purchased ReSharper, and use it for work in C#, and highly recommend it.
« I had therefore to remove knowledge, in order to make room for belief »
Immanuel Kant
|
|
|
|
|
According to their website, Klocwork Integrate works with C# as well. They even give some walkthroughs of things they work on. Here's one[^] example.
|
|
|
|
|
Hello. I have opened media player classic with Process.Start .
* Is it possible to start mpc with DockStyle = Fill in a panel on the winform?
* Is it also possible to hide all the menus on it?
Thanks for any pointers.
|
|
|
|
|
The window doesn't belong to your process so "DockStyle" doesn't apply to it at all.
It's possible to change the parent window of the process to your Panel, but since it's a separate process it's NOT under your control. Users can do anything they want with it as if it was running on the Desktop without your application, even moving the window around inside your panel!
There is a MediaPlayer control in the Toolbox that you will have far more control over.
modified 15-Sep-14 7:28am.
|
|
|
|
|
I'm using the Graphics.DrawString() method to put some text onto a bitmap that I create on the fly.
The problem is that the text comes out looking blocky and pixelated, not like a true-type font at all. What could I be doing wrong?
I've simplified the code below, but it shows how I'm drawing the text:
using (Graphics G = Graphics.FromImage(Chart))
{
using (Pen P = new Pen(Color.LightSlateGray))
{
using (SolidBrush B = new SolidBrush(Color.Black))
{
using (Font F = new Font(new FontFamily("Arial"), 9f, FontStyle.Regular))
{
G.DrawString((ScaleBaseY + LineCount).ToString(), F, B, (float)(UsableSizeX + 2), (float)Y);
}
}
}
}
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
I think you're missing
G.TextRenderingHint = TextRenderingHint.AntiAlias;
/ravi
|
|
|
|
|
That's *much* better. Thanks!
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
NP! If you'd like to take advantage of Cleartype (at the expense of a slight performance hit), use ClearTypeGridFit . This is the highest quality mode.
/ravi
|
|
|
|
|
Hello i want to remove a item from datagridcombocell which is use on another row in same cell like this
when i select qw2120 so on next row it will not display the same item on combo cell
how its possible?
|
|
|
|
|
what command use to export the rtf to html with already embedded image
|
|
|
|
|
|
sorry, I'll find out, as I do not speak English, will be a bit time consuming, rsrsr
know the answer if there is any way to convert this project to pascal (Delphi)?
Grateful Renivaldo Silva.
|
|
|
|
|
What project?? Any conversion you do to Pascal or Delphi is going to have to be done by hand.
|
|
|
|
|
|
No compilers, brains only.
double result = 0;
for (double d = 1; d <= 3d; d += 0.25d)
{
result += Math.Round(d);
}
What is result?
Regards,
Rob Philpott.
|
|
|
|
|
18.0
Becasue:
Math.Round, MSDN:
"Rounds a decimal value to the nearest integer, and rounds midpoint values to the nearest even number (example)."
So it will add
1
1
2
2
2
2
2
3
3
==
18
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
Outstanding! Full marks Mr. Griff.
I was hoping someone would fall into my trap. As if.
Regards,
Rob Philpott.
|
|
|
|
|
I did - many years ago!
And I try not to make the same mistake twice.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
That's not a trap, this is a trap:
double result = 0.0;
for (double d = 1.0; d <= 3.0; d += 0.25)
{
result += (d + 9007199254740992.0) - 9007199254740992.0;
}
|
|
|
|
|
Ok, I'm going to have a go.
That number looks like a very specific constant, but one I admittedly don't recognise. I've used Calc.exe to tell me what is in hex, and its 14 digits. I'm going to assume doubles have a 14 byte mantissa and a 2 byte exponent.
First thing that springs to mind is unchecked . Could we be looking at a run time error?
Or, infinity? The loop I suspect makes no difference.
Is infinity - infinity zero? Probably NaN.
Can I have a 50/50?
NaN. Final answer.
Regards,
Rob Philpott.
|
|
|
|
|
You .. fell into your own trap.
The result is still 18.0, for the same reason why it's the answer to your challenge. Except now the round is done by "adding just enough to push the fraction bits out of the significant".
|
|
|
|
|
Very good!
Regards,
Rob Philpott.
|
|
|
|
|
How to send mail through c# code for each rows in a table
vidhyan
|
|
|
|
|
|
string body;
body ="anydata";
IDataReader dr = Databaseobject.ExecuteReader("Procedure_Name", CommandType.StoredProcedure, ref ret);
while (dr.Read())
{
body = body+ "," + "\n" + "any data if we want " + dr["column Name"].ToString() + "," + "\n" + ",any data if we want " + dr["column_Name"].ToString() + "\n";
}
obj.Mailto = "to id";
obj.Mailbcc = clientemail.ToString();
obj.MailSubject = "write subject";
obj.MailPriorityis = "write priority";
string mailBody = "data:--- " + body + "," + "\n" + + "\n" + "Date & Time:--- " + Convert.ToString(DateTime.Now);
obj.Mailbody = mailBody;
obj.Sendmail();
if u want in tablar formate use StringBuilder
|
|
|
|