COM在visual studio中有什么用? [英] what is the use of COM in visual studio?

查看:113
本文介绍了COM在visual studio中有什么用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

先生,

告诉我在Visual Studio中使用COM。 clsid有什么用,在下面的代码中。请给我解决这个问题的方法。



 <  < span class =code-leadattribute> object     id   =  mediaplayer    classid   =  clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95    codebase   =  http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#version=5,1,52,701   < span class =code-attribute> standby   = 加载微软windows media player组件......    < span class =code-attribute> type   =  application / x-oleobject    width   =  320    height   =  310 >  
< param name = filename value =' < ;% = str %> ' / >
< param name = animationatstart value = true / >
< param 名称 = transparentatstart value = true / >
< param name = autostart value = true / >
< param name = showcontrols value = true / >
< param name = ShowStatusBar value = true / < span class =code-keyword>>
< param 名称 = windowlessvideo value = true / >
< embed src =' <% = str %> ' 自动启动 = true showcontrols = true showstatusbar = 1 bgcolor = white width = 320 height = 310 / >
< / object >

解决方案

这不是在<$ c中使用 COM $ c> Visual Studio 。也就是说,我相信,在 HTML 页面中嵌入了对象的ActiveX(例如,参见\"HTML对象标签 [ ^ ]。

CLSID 是实际的 COM 对象的标识符(在您的情况下为 Mediaplayer ),例如参见\"COM类对象和CLSID[ ^ ]。

Hi sir,
Tell me the use of COM in visual studio. What is the use of clsid, in the below code. Kindly give me the solution for this problem.

<object id="mediaplayer" classid="clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#version=5,1,52,701" standby="loading microsoft windows media player components..." type="application/x-oleobject" width="320" height="310">
<param name="filename" value='<%=str %>'/>
<param name="animationatstart" value="true"/>
<param name="transparentatstart" value="true"/>
<param name="autostart" value="true"/>
<param name="showcontrols" value="true"/>
<param name="ShowStatusBar" value="true"/>
<param name="windowlessvideo" value="true"/>
<embed src='<%=str %>' autostart="true" showcontrols="true" showstatusbar="1" bgcolor="white" width="320" height="310"/>
</object>

解决方案

That is not the use of COM in Visual Studio. That is, I believe, an ActiveX embedded as object in a HTML page (see, for instance "HTML object TAG" at w3schools.com[^].
The CLSID is the actual COM identifier of the object (the Mediaplayer in your case), see, for instance "COM Class Objects and CLSIDs" at MSDN[^].


这篇关于COM在visual studio中有什么用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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