惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

酷 壳 – CoolShell
酷 壳 – CoolShell
H
Hacker News: Front Page
P
Palo Alto Networks Blog
T
ThreatConnect
Apple Machine Learning Research
Apple Machine Learning Research
博客园_首页
T
True Tiger Recordings
P
Privacy & Cybersecurity Law Blog
B
Blog
IT之家
IT之家
Last Week in AI
Last Week in AI
F
Full Disclosure
Hacker News: Ask HN
Hacker News: Ask HN
C
Comments on: Blog
Microsoft Azure Blog
Microsoft Azure Blog
C
Cybersecurity and Infrastructure Security Agency CISA
Microsoft Security Blog
Microsoft Security Blog
博客园 - 【当耐特】
N
News and Events Feed by Topic
NISL@THU
NISL@THU
腾讯CDC
雷峰网
雷峰网
Security Latest
Security Latest
李成银的技术随笔
M
Microsoft Research Blog - Microsoft Research
L
LangChain Blog
L
Lohrmann on Cybersecurity
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
C
Check Point Blog
Y
Y Combinator Blog
Recent Announcements
Recent Announcements
博客园 - Franky
N
News | PayPal Newsroom
V
V2EX
A
About on SuperTechFans
The Register - Security
The Register - Security
月光博客
月光博客
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Google Online Security Blog
Google Online Security Blog
MyScale Blog
MyScale Blog
Cisco Talos Blog
Cisco Talos Blog
Vercel News
Vercel News
WordPress大学
WordPress大学
C
Cyber Attacks, Cyber Crime and Cyber Security
The Hacker News
The Hacker News
IntelliJ IDEA : IntelliJ IDEA – the Leading IDE for Professional Development in Java and Kotlin | The JetBrains Blog
IntelliJ IDEA : IntelliJ IDEA – the Leading IDE for Professional Development in Java and Kotlin | The JetBrains Blog
爱范儿
爱范儿
A
Arctic Wolf
L
LINUX DO - 最新话题
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More

博客园 - 无之无

别了博客园! 即将没落的博客园?!!! SQL里ROWCOUNT的使用 阿里云的背后故事(希望别被关了) - 无之无 LINQ:是BUG还是~~~ 集合代理类的实现 WPF对绑定到数据的树初始化选择项 SilverLight中的数据绑定 [请教]关于 .NET 应用的几个问题请教!!!( 如何解决 自定义控件 构造被设计器删除? 遭遇品牌电脑的尴尬 面对VS2005,我遇到了BUG? FOREACH的遍历 该死的微软,该死的文档,该死的ExecuteCommand Windows Form的初始化大小记录处理问题 怪异的Windows Form事件 - 无之无 MDI窗体关闭问题解决一例 .Net再发行包与强名称 关于WMI
托管与非托管的混合编程问题
无之无 · 2004-10-11 · via 博客园 - 无之无

(急,先放技术区几天再移动)

   写C#应用,需要MDI界面,其中一个子窗体是使用浏览器界面的,单独调试都好好的,使用到MDI中就出问题了,不能打开连接,显示忙信息,没有其他任何响应信息。

现在想通过使用非托管的HTMLVIEW来实现这个功能,牵涉到从非托管中调用托管代码的问题。

1——
写了一个简单的非托管项目,在项目中起用托管功能,然后添加了一个托管的WINFORM类

2——
在WINFORM类中定义一个STATIC的函数,实现SINGLETON的模式显示这个WINFORM,一切OK,但关闭后再退出系统,提示错误:

Debug Assertion Failed!

Program:应用程序名
File:cmdtarg.cpp
line:48

For information on how your program can cause an assertion faulure, see the Visual C++ documentation on assert.

3——
在非托管代码中定义一个托管的WINFORM实例,编译不通过


关键:

必须使用WEB浏览器和MDI界面,我对VC不是很熟,其他人员则更差。

急呀!