Groups | Blog | Home
all groups > dotnet clr > may 2007 >

dotnet clr : Implement code



WELCOME ###
5/21/2007 12:00:00 AM
Hi every body.

The code written down (by C++/ CLR console).

How can I compile it by Windows Form.

Can any persn wants to help??

Thanks

Beginner


-------------------------------------------------------------------------=
---------

#include "stdafx.h"

using namespace System;

int main(array<System::String ^> ^args)

{

int magic;

int guess;

Console::Write(L"Enter Your Guess Number : ");

guess=3DConvert::ToInt32(Console::ReadLine());

if(guess=3D=3D7)

{

Console::WriteLine(L" Bravo it's Magic Number");

}

else

{

Console::WriteLine(L" Sorry Not Magic Number");

}

return 0;

Ashot Geodakov
5/23/2007 6:19:35 PM
Why can't you just create a brand-new project which is a Windows app, =
not Console? You'll see how the projects' main() functions are =
different.


[quoted text, click to view]
Hi every body.

The code written down (by C++/ CLR console).

How can I compile it by Windows Form.

Can any persn wants to help??

Thanks

Beginner


=
-------------------------------------------------------------------------=
---------

#include "stdafx.h"

using namespace System;

int main(array<System::String ^> ^args)

{

int magic;

int guess;

Console::Write(L"Enter Your Guess Number : ");

guess=3DConvert::ToInt32(Console::ReadLine());

if(guess=3D=3D7)

{

Console::WriteLine(L" Bravo it's Magic Number");

}

else

{

Console::WriteLine(L" Sorry Not Magic Number");

}

return 0;

AddThis Social Bookmark Button