看到一个源代码如下:
#using <system.dll>
#using <mscorlib.dll>
#using <system.web.dll> using namespace System;
using namespace System::Web::UI::WebControls; public __gc class HelloWorldMC : public System::Web::UI::Page
{
protected: Button* Button1; public: void SayHello (Object* sender, EventArgs* e)
{
Button1->Text = "Hello MC++ World";
return;
} }; 请问这个是什么项目?在VS2005 中该创建什么类型的CLR项目?据说好像是生成一个dll的。 人家说这个test.cpp要这样编译: cl /clr test.cpp /link /dll /out:bin\Hello.dll 我不会弄这个,只懂标准C++,知道的朋友指点下貌似这个Hello.dll可以在aspx中使用的。
#using <system.dll>
#using <mscorlib.dll>
#using <system.web.dll> using namespace System;
using namespace System::Web::UI::WebControls; public __gc class HelloWorldMC : public System::Web::UI::Page
{
protected: Button* Button1; public: void SayHello (Object* sender, EventArgs* e)
{
Button1->Text = "Hello MC++ World";
return;
} }; 请问这个是什么项目?在VS2005 中该创建什么类型的CLR项目?据说好像是生成一个dll的。 人家说这个test.cpp要这样编译: cl /clr test.cpp /link /dll /out:bin\Hello.dll 我不会弄这个,只懂标准C++,知道的朋友指点下貌似这个Hello.dll可以在aspx中使用的。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货