Rose Black

Rose Black

  • NA
  • 1
  • 0

converting c++ codes to c#

May 14 2010 11:20 PM
hi, 
i'm new to c# and i was wandering if anyone could help me convert this code segment from c++ to C#. thanx


public static class GlobalMembersChildView
{
public static AlgorithmState
    {

public const int ROOM_CELL_WIDTH = 85;
public const int ROOM_CELL_HEIGHT = 50;

public const int ROOM_MARGIN_WIDTH = 50;
public const int ROOM_MARGIN_HEIGHT = 50;

public const int ROOM_COLUMN_NUMBER = DefineConstantsChildView.DAYS_NUM + 1;
public const int ROOM_ROW_NUMBER = DefineConstantsChildView.DAY_HOURS + 1;

public const int ROOM_TABLE_WIDTH = ROOM_CELL_WIDTH * ROOM_COLUMN_NUMBER + ROOM_MARGIN_WIDTH;
public const int ROOM_TABLE_HEIGHT = ROOM_CELL_HEIGHT * ROOM_ROW_NUMBER + ROOM_MARGIN_HEIGHT;
}
//C++ TO C# CONVERTER NOTE: WINAPI is not available in C#:
//ORIGINAL LINE: uint WINAPI StartAlg(IntPtr  param)
public static uint StartAlg(IntPtr  param)
{
Algorithm.GetInstance().Start();
return 0;
}
}

Answers (1)