当前在线人数16996
首页 - 分类讨论区 - 电脑网络 - 窗口里的风景版 -阅读文章
未名交友
[更多]
[更多]
文章阅读:Re: Need Help: a very wierd Managed C++ interop problem
[同主题阅读] [版面: 窗口里的风景] [作者:kongzi] , 2007年01月12日20:10:45
kongzi
进入未名形象秀
我的博客
[上篇] [下篇] [同主题上篇] [同主题下篇]

发信人: kongzi (鸡龟骨滚羹), 信区: DotNet
标  题: Re: Need Help: a very wierd Managed C++ interop problem
发信站: BBS 未名空间站 (Fri Jan 12 20:10:45 2007)

Can you make the managed c++ library a dynamic one so you don't need to link
it into the native c++ system?
My guess is that when you link the managed c++ lib into the native one, the
whole lib will be executed in CLR.
【 在 OpenXml (Make One SomeOne Happy) 的大作中提到: 】
: DOTNET gurus, I really need your help on this wierd behavior.
: We have a system written in native c++; The system calls to a COM
component
: to perform some calculations.  In one of the methods, we need to cast a
: struct as an array of bytes (BYTE *) and also passes the size of the array
.
:  It all works fine until we link the system to a static library which is
: written in Managed C++.  The input parameters to the COM method got messed
: up.  It appears, the call tries to copy the input parameter data over (
: instead of using the passed in pointers).  However, when copying the input
: data, it thought the data is of only one byte instead of an array, so it
: copies one byte over and messes up the call.  If I remove the linkage to
the
: ...................



--

※ 来源:·BBS 未名空间站 http://mitbbs.com·[FROM: 72.66.]

[上篇] [下篇] [同主题上篇] [同主题下篇]
[转寄] [转贴] [回信给作者] [修改文章] [删除文章] [同主题阅读] [从此处展开] [返回版面] [快速返回] [收藏] [举报]
 
回复文章
标题:
内 容:

未名交友
将您的链接放在这儿

友情链接


 

Site Map - Contact Us - Terms and Conditions - Privacy Policy

版权所有,未名空间(mitbbs.com),since 1996