COM组件是否可以调用外部库的DLL

wanlong1215 2016-11-14 01:54:58
RT,我想写个COM组件,简单的接口没什么问题,但里面想调用其他的外部库,不知道是否可行,如果可行的话怎么调用呢,外部库是ffmpeg,求大神指点
...全文
234 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
赵4老师 2016-11-15
  • 打赏
  • 举报
回复
引用 8 楼 wanlong1215 的回复:
[quote=引用 7 楼 zhao4zhong1 的回复:] MSDN98_1.ISO http://pan.baidu.com/s/1dDF41ix, MSDN98_2.ISO http://pan.baidu.com/s/1bnGo0Vl
感谢感谢,没想到赵4老师有一天能回复我,哈哈,结贴学习去[/quote] 这个态度我喜欢。
wanlong1215 2016-11-14
  • 打赏
  • 举报
回复
引用 7 楼 zhao4zhong1 的回复:
MSDN98_1.ISO http://pan.baidu.com/s/1dDF41ix, MSDN98_2.ISO http://pan.baidu.com/s/1bnGo0Vl
感谢感谢,没想到赵4老师有一天能回复我,哈哈,结贴学习去
赵4老师 2016-11-14
  • 打赏
  • 举报
回复
赵4老师 2016-11-14
  • 打赏
  • 举报
回复
引用 5 楼 wanlong1215 的回复:
[quote=引用 4 楼 zhao4zhong1 的回复:] 在MSDN里面搜“COM Tutorial Samples”
大神终于出来了,那您先给我个结论呗,行啊还是不行啊,如果您都说不行了,我直接就不看换方案了[/quote] 当然行了,据我所知没有COM不能干的活。 COM Tutorial Samples List of Lessons Click a lesson link below to jump to the tutorial narrative for the associated code sample. Directory/Sample Lesson Topic APPUTIL Lesson 0 Win32 Basics: Win32 Application Utility Library READTUT Lesson 1 Win32 Basics: Tutorial Reader and Linking to APPUTIL EXESKEL Lesson 2 Win32 Basics: Win32 EXE Skeleton Application DLLSKEL Lesson 3 Win32 Basics: Win32 DLL Skeleton DLLUSER Lesson 4 Win32 Basics: EXE User of a DLL COMOBJ Lesson 5 COM Objects: Containment and Aggregation in a DLL COMUSER Lesson 6 COM Objects: Nested Aggregation in an EXE User REGISTER Lesson 7 COM Components: Component Object Registration DLLSERVE Lesson 8 COM Components: Component Object DLL Server DLLCLIEN Lesson 9 COM Components: Client Application of DLL Server LICSERVE Lesson 10 COM Components: DLL Licensed Server LICCLIEN Lesson 11 COM Components: Client Application of Licensed Server MARSHAL Lesson 12 COM Components: Custom Interface Standard Marshaling MARSHAL2 Lesson 13 COM Components: Marshaling DLL Self-Registration LOCSERVE Lesson 14 COM Components: Local Server LOCCLIEN Lesson 15 COM Components: Client Application of Local Server APTSERVE Lesson 16 COM Components: Local Server with Multiple Apartments APTCLIEN Lesson 17 COM Components: Client of Multiple Apartment Server REMCLIEN Lesson 18 COM Components: Distributed COM (DCOM) Remote Client FRESERVE Lesson 19 COM Components: Free-threaded Server FRECLIEN Lesson 20 COM Components: Client of Free-threaded Server CONSERVE Lesson 21 COM Components: Connectable Object Server CONCLIEN Lesson 22 COM Components: Client of Connectable Object Server STOSERVE Lesson 23 COM Components: Structured Storage Server STOCLIEN Lesson 24 COM Components: Client of Structured Storage Server PERSERVE Lesson 25 COM Components: IPersistStream Persistent Object Server PERTEXT Lesson 26 COM Components: IPersistStreamInit Persistent Object Server PERDRAW Lesson 27 COM Components: IPersistStorage Persistent Object Server PERCLIEN Lesson 28 COM Components: Client of Persistent Object Servers DCDMARSH Lesson 29 COM Components: Standard Marshaling for DCOM DCDSERVE Lesson 30 COM Components: DCOM Server Using Security DCOMDRAW Lesson 31 COM Components: DCOM Client Using Security INC -- Common include directory used by the code samples LIB -- Common library directory used by the code samples TUTSAMP -- Main branch directory with TUTORIAL.EXE, MAKEALL.BAT, etc.
wanlong1215 2016-11-14
  • 打赏
  • 举报
回复
引用 4 楼 zhao4zhong1 的回复:
在MSDN里面搜“COM Tutorial Samples”
大神终于出来了,那您先给我个结论呗,行啊还是不行啊,如果您都说不行了,我直接就不看换方案了
赵4老师 2016-11-14
  • 打赏
  • 举报
回复
在MSDN里面搜“COM Tutorial Samples”
wanlong1215 2016-11-14
  • 打赏
  • 举报
回复
顶一个,期待高手来指导一下
wanlong1215 2016-11-14
  • 打赏
  • 举报
回复
引用 1 楼 liups 的回复:
可以
请问这个怎么写呢,比如VS写的DLL工程,选项中还有添加外部库的地址等等一些设置,COM工程这些参宿设置直接被屏蔽掉了,那我在什么地方设置呢; 另外,如果我在COM组件中能关联,那另一台机器在浏览器上下载组件时,我关联的DLL要进行打包注册么,还是怎么注册
liups 2016-11-14
  • 打赏
  • 举报
回复
可以

3,055

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC HTML/XML
社区管理员
  • HTML/XML社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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