TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
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;
}
}
Reply
Answers (
1
)
help me
How do you insert a child node in a TreeView Control in WPF C#?