为64位平台构建C ++ COM [英] build C++ COM for 64-bit platform

查看:69
本文介绍了为64位平台构建C ++ COM的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在使用Visual Studio开发C ++ COM本机代码(非托管C ++)

2005.我没有采用64位平台的任何新功能,目前我的

代码在32位平台上运行良好(例如Windows XP SP2)。


现在我正在研究如何构建64代码-bit平台(例如Windows

2003 Server 64位R2)?我需要在Visual Studio 2005中指定的任何选项?

对我来说,最好的解决方案是为32位和64位
平台制作单个版本,那可能吗?

提前谢谢,

乔治

Hello everyone,
I am developing C++ COM native code (unmanaged C++) using Visual Studio
2005. I do not take any new features of 64-bit platform, and currently my
code runs fine on 32-bit platform (e.g. Windows XP SP2).

Now I am researching how to build my code for 64-bit platform (e.g. Windows
2003 Server 64-bit R2)? Any options I need to specify in Visual Studio 2005?
The best solution to me is to make a single build for both 32-bit and 64-bit
platforms, is that possible?
thanks in advance,
George

推荐答案

嗨乔治!
Hi George!

我正在开发C ++ COM本机代码(非托管C ++)
I am developing C++ COM native code (unmanaged C++)



然后一个更好的新闻组是:

microsoft.public.vc.language

Then a better newsgroup is:
microsoft.public.vc.language


使用Visual Studio

2005.我不接受任何64位平台的新功能,目前我的

代码在32位平台上运行良好(例如Windows XP SP2)。


现在我正在研究如何为64位平台构建我的代码(例如Windows

2003 Server 64位R2)?我需要在Visual Studio 2005中指定的任何选项?
using Visual Studio
2005. I do not take any new features of 64-bit platform, and currently my
code runs fine on 32-bit platform (e.g. Windows XP SP2).

Now I am researching how to build my code for 64-bit platform (e.g. Windows
2003 Server 64-bit R2)? Any options I need to specify in Visual Studio 2005?



什么样的COM?

InProc-DLL(例如ActiveX控件)


或者OutProc COM-Server(exe)?

What kind of COM?
InProc-DLL (e.g. ActiveX-Controls)

or OutProc COM-Server (exe)?


对我来说最好的解决方案就是为32位和64位构建单一构建

平台,这可能吗?
The best solution to me is to make a single build for both 32-bit and 64-bit
platforms, is that possible?



一般情况下:单一构建是不可能的。


如果你建立一个OutProc-COM-Server,你可以简单地构建32位

版本并将其用于两个平台。


如果构建dll / ocx,则需要构建两个版本:一个用于32和一个

64位。

只需在项目中添加一个新的配置。


-

问候

Jochen


我关于Win32和.NET的博客
http://blog.kalmbachnet.de/


谢谢Jochen,

我正在构建进程内DLL COM。我想你的意思是我不需要更改

源代码,但只需要在项目中进行新的配置吧?


如果是的话,可以你推荐我一些关于如何创建

这样基于我工作的32位项目的64位配置的学习资源吗?

问候,

George


" Jochen Kalmbach [MVP]"写道:
Thanks Jochen,
I am building in-process DLL COM. I think you mean I do not need to change
source code, but only need to make a new configuration in project, right?

If yes, could you recommend me some learning resources about how to create
such 64-bit configuration based on my working 32-bit project please?
regards,
George

"Jochen Kalmbach [MVP]" wrote:

嗨乔治!
Hi George!

我正在开发C ++ COM本机代码(非托管C ++)
I am developing C++ COM native code (unmanaged C++)



然后一个更好的新闻组是:

microsoft.public.vc.language


Then a better newsgroup is:
microsoft.public.vc.language


使用Visual Studio

2005.我没有采用64位平台的任何新功能,目前我的

代码在32位平台上运行良好(例如Windows XP SP2)。


现在我正在研究如何为64位平台构建我的代码(例如Windows

2003 Server 64位R2 )?我需要在Visual Studio 2005中指定的任何选项?
using Visual Studio
2005. I do not take any new features of 64-bit platform, and currently my
code runs fine on 32-bit platform (e.g. Windows XP SP2).

Now I am researching how to build my code for 64-bit platform (e.g. Windows
2003 Server 64-bit R2)? Any options I need to specify in Visual Studio 2005?



什么样的COM?

InProc-DLL(例如ActiveX控件)


或者OutProc COM-Server(exe)?


What kind of COM?
InProc-DLL (e.g. ActiveX-Controls)

or OutProc COM-Server (exe)?


对我来说最好的解决方案就是为32位和64位构建单一构建

平台,这可能吗?
The best solution to me is to make a single build for both 32-bit and 64-bit
platforms, is that possible?



一般情况下:单一构建是不可能的。


如果你建立一个OutProc-COM-Server,你可以简单地构建32位

版本并将其用于两个平台。


如果构建dll / ocx,则需要构建两个版本:一个用于32和一个

64位。

只需在项目中添加一个新的配置。


-

问候

Jochen


我关于Win32和.NET的博客
http://blog.kalmbachnet.de/


" George" ; < Ge **** @ discuss.microsoft.com写信息

新闻:C5 ************************ ********** @ microsof t.com ...
"George" <Ge****@discussions.microsoft.comwrote in message
news:C5**********************************@microsof t.com...

大家好,


我我正在使用Visual Studio开发C ++ COM本机代码(非托管C ++)

2005.我没有采用64位平台的任何新功能,目前我的

代码运行良好在32位平台上(例如Windows XP SP2)。


现在我正在研究如何为64位平台构建我的代码(例如

Windows

2003服务器64位R2)?我需要在Visual Studio中指定的任何选项

2005?

对我来说最好的解决方案是为32位和
$ b制作单个版本$ b 64位

平台,这可能吗?


提前感谢,

George
Hello everyone,
I am developing C++ COM native code (unmanaged C++) using Visual Studio
2005. I do not take any new features of 64-bit platform, and currently my
code runs fine on 32-bit platform (e.g. Windows XP SP2).

Now I am researching how to build my code for 64-bit platform (e.g.
Windows
2003 Server 64-bit R2)? Any options I need to specify in Visual Studio
2005?
The best solution to me is to make a single build for both 32-bit and
64-bit
platforms, is that possible?
thanks in advance,
George



保持你的COM服务器DLL 32位,除非你真的需要64位地址。

你的32位DLL将在64位窗口上按预期运行,只要

的客户也是32位。


Willy。


Keep your COM server DLL 32 bit, unless you really need the 64 bit address.
Your 32 bit DLL will run as expected on 64 bit windows as long as the
clients remain 32bit too.

Willy.


这篇关于为64位平台构建C ++ COM的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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