怎么会出现“试图执行系统无法支持的程序”的字样

我安装360杀毒后出现的,把它删了,但还是有360的标志在任务栏上,并且名称变成了“SD.Main.TrayTip",开机时也是出现“试图执行系统无法支持的程序”的字样... 我安装360杀毒后出现的,把它删了,但还是有360的标志在任务栏上,并且名称变成了“SD.Main.TrayTip",开机时也是出现“试图执行系统无法支持的程序”的字样 展开
 我来答
匿名用户
2013-11-27
展开全部
我的c 窗体,到了autocad 下,不能显示,报错,试图执行系统不支持的操作。
请各位大虾指点。

资源没有正确切换。

"资源没有正确切换" 是什么意思? 应当如何保证正确切换呢

请在弹出你自己的对话框时加上如下语句:
CAcModuleResourceOerride thisResource;
这是起临时切换资源的作用,如果没有这句话,一般都会提示“unsupported operat"错误。

以下是Arx帮助系统里的说明。
Resource management is an important consideration when designing an ObjectARX application that uses an MFC library shared with AutoCAD and other applications.

You must insert your module state (using CDynLinkLibrary) into the chain that MFC examines when it performs operations such as locating a resource. Howeer, it is strongly recommended that you explicitly manage your application's resources so that they will not conflict with other resources from AutoCAD or other ObjectARX applications.

To explicitly set resources

Before taking any steps that would cause MFC to look for your resource, call the AFX function AfxSetResourceHandle() to set the custom resource as the system default.
Before setting the system resource to your resource, call AfxGetResourceHandle() to get the current system resource.
Immediately after performing any functions that require the custom resource, the system resource should be reset to the resource handle preiously saed.
Calling AutoCAD API functions (or inoking AutoCAD commands) inside the dialog command handler that needs AutoCAD's resources, such as acedGetFileD(), sets the resource back to AutoCAD before calling the functions. Restore your application resource afterwards. (Use acedGetAcadResourceInstance() to get AutoCAD's resource handle.)

明白了~谢谢了

资源没有切换,资源不正确,都会出现此种情况

就是,终点检查一下,你对话框上控件的资源id,看是否是数字,我遇到过这样的情况。
注:部分资料来自网络
望给采纳
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式