转换要管理的非托管C ++项目 [英] Converting an unmanaged C++ project to be managed

查看:67
本文介绍了转换要管理的非托管C ++项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有任何好的论文/文档用于使用MFC(在VC V6中创建)和

使其管理?

非托管VC ++项目?我的主要目标是能够使用C#在我们的系统中实现新功能,并且

能够在
$ b $内使用C#程序集b现有的VC ++代码。


你可以像这样混合搭配吗?例如,我是否可以让
让CObject派生对象创建一个C#程序集

创建一个OLE DB记录集并将属性存储到

CObject-派生对象?


感谢您的帮助。


问候,


-Rob

解决方案

>是否有任何好的论文/文档围绕

使用MFC(在VC V6中创建)的非托管VC ++项目并使其管理?

http: //msdn.microsoft.com/library/en...plications.asp
http://msdn.microsoft.com/library/en...art1_Start.asp
VS.NET中的
安装目录,Vc7 \migration_guide.doc


这只是使用/ clr开关的问题,你可以访问你的C#

组装和MC ++语法。

我的主要目标是能够在我们的系统中使用C#实现新功能,并且
能够在
中使用C#程序集现有的VC ++代码。
你能混合搭配吗?






谢谢你你的回复。


我看了一下这个文件并说它设置了/ clr

optio ñ。当我这样做时,我得到一个构建错误:

" cl:命令行错误D2016:''/ RTC1''和''/ clr''

命令 - 行选项不兼容


我似乎无法找到取消选中哪个设置来禁用

此设置。


另外,一旦我这样做,我需要用.NET运行时分发

我的应用程序吗?


问候,


-Rob

-----原始消息-----

是否有
使用MFC(在VC V6中创建)
并使其管理的任何好的论文/文档
http://msdn.microsoft.com/library/en-



us / vcmex / html / vcoriMigratingYourApplications.asp http://msdn.microsoft.c om / library / en-
us / vcmxspec / html / vcManExMigrationGuidePart1_Start.aspin VS.NET install dir,Vc7 \migration_guide.doc

这只是一个问题使用/ clr开关,你可以获得
访问你的C#程序集和MC ++语法。

我的主要目标是能够实现新功能我们的系统使用C#和
能够在现有的VC ++代码中使用C#程序集。
你可以这样混合搭配吗?






/ RTC1是基本运行时检查代码生成下的设置。


您必须将用户引导至Windows更新站点以获取.net redist


http://www.microsoft.com/downloads /d...7-034D1E7CF3A3


" Rob C" <一个******* @ discussions.microsoft.com>在消息中写道

news:02 **************************** @ phx.gbl ... < blockquote class =post_quotes>感谢您的回复。

我查看了该文档并说明了设置/ clr
选项。当我这样做时,我得到一个构建错误:
" cl:命令行错误D2016:''/ RTC1''和''/ clr''
命令行选项不兼容

我似乎无法找到取消选中哪个设置来禁用
此设置。

此外,一旦我这样做,我将需要分发什么?我的.NET运行时应用程序?

问候,

-Rob

---- -Original Message -----

是否有任何好的论文/文档可以使用MFC(在VC V6中创建)进行非托管VC ++项目并进行管理?


http://msdn.microsoft.com/library/en-


us / vcmex / html / vcoriMigratingYourApplications.asp

http://msdn.microsoft.com/library / en-


我们/ vcmxspec / html /vcManExMigrationGuidePart1_Start.asp

在VS.NET安装目录,Vc7 \migration_guide.doc
<这只是使用/ clr开关的问题,你得到


访问你的C#

汇编和MC ++语法。

我的主要目标是能够使用C#在我们的系统中实现新功能,并且
能够在现有的VC ++代码中使用C#程序集。你可以这样混搭吗?









Are there any good papers/documentation around for taking
an unmanaged VC++ Project using MFC (created in VC V6) and
making it managed? My main goal here to be able to
implement new functionality in our system using C# and
being able to utilize the C# assembly from within the
existing VC++ code.

Can you mix and match like this? For example, could I
have CObject derived object create a C# assembly that
creates an OLE DB recordset and stores properties into the
CObject-derived object?

Thanks for your help.

Regards,

-Rob

解决方案

> Are there any good papers/documentation around for taking

an unmanaged VC++ Project using MFC (created in VC V6) and
making it managed?
http://msdn.microsoft.com/library/en...plications.asp
http://msdn.microsoft.com/library/en...art1_Start.asp
in VS.NET install dir, Vc7\migration_guide.doc

It''s just a matter of using /clr switch and you get access to your C#
assembly and MC++ syntax.
My main goal here to be able to
implement new functionality in our system using C# and
being able to utilize the C# assembly from within the
existing VC++ code.
Can you mix and match like this?



Yes


Thanks for your response.

I looked at the document and it states to set the /clr
option. When I do this I get a build error:
"cl : Command line error D2016 : ''/RTC1'' and ''/clr''
command-line options are incompatible"

I can''t seem to find which setting to uncheck to disable
this setting.

Also, once I do this, what will I have to distribute with
my app for the .NET runtime?

Regards,

-Rob

-----Original Message-----

Are there any good papers/documentation around for taking an unmanaged VC++ Project using MFC (created in VC V6) and making it managed?
http://msdn.microsoft.com/library/en-


us/vcmex/html/vcoriMigratingYourApplications.asphttp://msdn.microsoft.com/library/en- us/vcmxspec/html/vcManExMigrationGuidePart1_Start.aspin VS.NET install dir, Vc7\migration_guide.doc

It''s just a matter of using /clr switch and you get access to your C#assembly and MC++ syntax.

My main goal here to be able to
implement new functionality in our system using C# and
being able to utilize the C# assembly from within the
existing VC++ code.
Can you mix and match like this?



Yes
.



/RTC1 is "Basic runtime checks" setting under Code Generation.

You either have to direct users to windows update site to get .net redist
or
http://www.microsoft.com/downloads/d...7-034D1E7CF3A3

"Rob C" <an*******@discussions.microsoft.com> wrote in message
news:02****************************@phx.gbl...

Thanks for your response.

I looked at the document and it states to set the /clr
option. When I do this I get a build error:
"cl : Command line error D2016 : ''/RTC1'' and ''/clr''
command-line options are incompatible"

I can''t seem to find which setting to uncheck to disable
this setting.

Also, once I do this, what will I have to distribute with
my app for the .NET runtime?

Regards,

-Rob

-----Original Message-----

Are there any good papers/documentation around for taking an unmanaged VC++ Project using MFC (created in VC V6) and making it managed?



http://msdn.microsoft.com/library/en-


us/vcmex/html/vcoriMigratingYourApplications.asp

http://msdn.microsoft.com/library/en-


us/vcmxspec/html/vcManExMigrationGuidePart1_Start.asp

in VS.NET install dir, Vc7\migration_guide.doc

It''s just a matter of using /clr switch and you get


access to your C#

assembly and MC++ syntax.

My main goal here to be able to
implement new functionality in our system using C# and
being able to utilize the C# assembly from within the
existing VC++ code.
Can you mix and match like this?



Yes
.





这篇关于转换要管理的非托管C ++项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆