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
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 04: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...
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 04: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 03: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...
February 8th, 2011 03:08 PM
In addition to MadHatter's answer, be aware that array length is used in C# to specify the size, while array upper bounds are used in VB, so you have to adjust for these.
e.g.,
Dim myArray(5) As...
February 7th, 2011 10:26 PM
You're right - it's not idiot-proof.
It will only work when you can reasonably assume that the argument is the string version of a decimal number.
If the argument is likely to be any junk then...