获取运行时错误(800700c1)“%1不是有效的Win32应用程序" [英] Get run-time error (800700c1) "%1 is not a valid Win32 application"

查看:1042
本文介绍了获取运行时错误(800700c1)“%1不是有效的Win32应用程序"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



将使用Visual Studio 6.0构建的应用程序移植到Visual Studio 2008之后,我试图将其用作COM服务器.
使用VB ,我调用以下代码:
设置doc = CreateObject("rhapsody.Application")

然后出现以下错误:
运行时错误'-2147024703(800700c1)'
自动化错误
%1不是有效的Win32应用程序.


如果出现同样的错误我尝试使用C ++代码:
IRPApplicationPtr apl;
IRPProjectPtr proj = NULL;
CLSID clsid;
HRESULT hr = CLSIDFromProgID(OLESTR("Rhapsody.Application"; ),& clsid);
hr = :: CoCreateInstance(CLSID_RPApplication,NULL,CLSCTX_LOCAL_SERVER,IID_IRPApplication,(void **)& apl);


请让我知道你有什么想法.

,谢谢,
Zvika.

Hi,

After porting my application from being built using Visual Studio 6.0 to Visual Studio 2008, I'm trying to use it as a COM Server.
Using VB, I call the following code:
Set doc = CreateObject("rhapsody.Application")

Then I get the following error:
Run-time error '-2147024703 (800700c1)'
Automation error
%1 is not a valid Win32 application.


I get the same error if I try using the C++ code:
IRPApplicationPtr apl;
IRPProjectPtr proj = NULL;
CLSID clsid;
HRESULT hr = CLSIDFromProgID(OLESTR("Rhapsody.Application"), &clsid);
hr = ::CoCreateInstance( CLSID_RPApplication, NULL, CLSCTX_LOCAL_SERVER, IID_IRPApplication, (void**)&apl );


Please let me know if you have any idea.

Thanks,
Zvika.

推荐答案

你好,

感谢您的帖子.我建议在 Visual Basic Developer之一中发布您的问题居中 > Visual Basic论坛 > Visual Basic常规 或 Visual C ++开发人员中心 > Visual C ++论坛 > Visual C ++ General  位于此处:

Thank you for the post.  I would suggest posting your question in one of the Visual Basic Developer Center > Visual Basic Forums > Visual Basic General  or Visual C++ Developer Center > Visual C++ Forums > Visual C++ General  located here:

http://social.msdn.microsoft.com/Forums/en-US/vbgeneral /threads

or

http://social.msdn.microsoft.com/Forums/zh-CN/vcgeneral/threads

希望这对您有所帮助.

祝你有美好的一天!


这篇关于获取运行时错误(800700c1)“%1不是有效的Win32应用程序"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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