1
Answer

converting c++ codes to c#

Rose Black

Rose Black

14y
2.2k
1
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)