.net中调用vc.0 写的com 的问题?

nuaalfm 2004-05-09 11:22:36
.net中调用时好像不能启用pagestart ,这个里面有比较重要的语句,怎么办
...全文
33 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
saucer 2004-05-10
  • 打赏
  • 举报
回复
see

http://samples.gotdotnet.com/quickstart/aspplus/doc/cominterop.aspx


ASP.NET also continues to support the existing ASP intrinsic interfaces ObjectContext Intrinsic Flow, OnStartPage, and OnEndPage. Supporting these interfaces means that you can use existing components (Commerce Server, Exchange, and so on) in ASP.NET pages. These interfaces are not enabled by default but are explicitly turned on using the following page directive:

<%@ Page ASPCompat="true" %>

This directive causes ASP.NET to create unmanaged ASP intrinsic objects and pass them to COM components used in the page. It also runs the page in an STA thread pool. See the following section for information.

nuaalfm 2004-05-10
  • 打赏
  • 举报
回复
up
nuaalfm 2004-05-10
  • 打赏
  • 举报
回复
com中的Cconnection::OnStartPage无法执行,加了<%@ Page AspCompat="true" %>也不行
saucer 2004-05-10
  • 打赏
  • 举报
回复
show the error message

if your component is a single-threaded apartment(STA) component, make sure to use

<%@ Page AspCompat="true" %>

Note,Setting this attribute to true can cause your page's performance to degrade

62,074

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧