Search:
Type: Posts; User: David Anton
Search:
Search took 0.17 seconds.
-
August 23rd, 2013, 03:04 PM
You're confusing the Button's DialogResult property with the Form's ShowDialog return value.
The ShowDialog's return value will be the DialogResult of the Button clicked - if you clicked with the...
-
There is absolutely no difference.
-
August 7th, 2012, 07:50 PM
Yes - the 'doInBackground' method has an extra closing brace. The 'while' loop is being closed twice.
-
August 5th, 2012, 10:40 PM
After each call to 'search', I would add:
if (breaknow)
break;
-
August 5th, 2012, 09:37 PM
The compiler error says it all - "a 'ref' or 'out' argument must be an assignable variable".
-
August 5th, 2012, 04:09 PM
-
July 20th, 2012, 07:57 PM
Certainly:
Project -> Add Existing Item -> Add as Link (you have to click the button drop-down - a bad interface for sure).
-
C++0x (or whatever they're calling it now):
notifyIcon1::BalloonTipClosed += [&] ()
{
delete notifyIcon1;
};
C++/CLI:
-
April 14th, 2012, 05:20 PM
It's one of our converters (you can check out the link in my signature).
-
April 14th, 2012, 03:58 PM
I agree about the "Keys" enum - the problem was that without a "using System.Windows.Forms", the converter can't confirm that "Keys" refers to the enum and not some other class of that name.
-
April 11th, 2012, 04:03 PM
//.h file code:
public ref class MyDataGrid : DataGridView
{
protected:
virtual bool ProcessDialogKey(Keys ^keyData) override;
};
//.cpp file code:
-
April 10th, 2012, 03:41 PM
As Ovidiu said, it's no picnic to convert to native C++, but if you are one of the handful of people in the world coding in C++/CLI, then you can use:
public ref class MyDataGrid : DataGridView
{...
-
December 12th, 2011, 05:37 PM
The converter should have changed "Information.IsDBNull" to "System.Convert.IsDBNull".
-
September 9th, 2011, 12:27 AM
Right you are (this is fixed in the next build).
-
September 8th, 2011, 05:19 PM
Your C++ code was not compilable - after correcting it and converting I get:
private string computeChecksum_ascii_checksum = new string(new char[5]);
private string[] computeChecksum(sbyte[]...
-
August 8th, 2011, 04:31 PM
Learn at least a little of both - it's easier to understand some concepts if you have experience with more than one language.
e.g., it's easier to understand C# struct vs class when you understand...
-
July 12th, 2011, 10:27 AM
Just drop the 'RaiseEvent' keyword.
Note that 'CallByName' is not available in C# unless you set a reference to the Microsoft.VisualBasic assembly.
-
June 20th, 2011, 08:30 PM
Both the syntax and the library dictate this requirement:
1. The syntax is a Microsoft-unique thing that never really caught on much.
2. The library used is .NET - the same as C#.
-
June 20th, 2011, 07:52 PM
It's C++/CLI code which requires Visual C++ 2005 or higher.
It works just like C# code, so you will have nearly identical performance as C# (slower than native C++).
Also, your users will need...
-
June 20th, 2011, 06:56 PM
If you want C++/CLI (using .NET), then it's fairly simple.
It's probably not what you want, but just in case here it is:
using namespace System;
using namespace System::Collections::Generic;...
-
June 10th, 2011, 03:59 PM
<DllImport("coredll.dll")>
Private Shared Function SystemParametersInfo(ByVal uiAction As UInteger, ByVal uiParam As UInteger, ByVal pvParam As StringBuilder, ByVal fWiniIni As UInteger) As Integer...
-
March 26th, 2011, 10:35 PM
(I realize that this conversion is not complete - you'll have to make some adjustments)
using namespace System;
private ref class Program
{
private:
value class Point
-
March 17th, 2011, 06:23 PM
ToList is also available in C# - it's just that VB allowed you to drop the empty argument list:
lds.Fields = fs.FieldAliases.Keys.ToList();
lds.Values = new List<List<object>>();
for (int...
-
February 9th, 2011, 05:04 PM
You've got something weird happening on your system or some bad locale setting.
When I try the same code I get 169.65 assigned to 'a'.
-
February 8th, 2011, 04:14 PM
The dot is being remove some other way in your code.
CDec and System.Convert.ToDecimal certainly do not remove the dot.
If the string contains a valid decimal, then that decimal value is extracted...
|
Click Here to Expand Forum to Full Width
|