开发者

Objective-C - How to load DLL and use it

开发者 https://www.devze.com 2023-03-26 06:18 出处:网络
I\'m t开发者_Go百科rying to use the MediaInfo DLL in a Mac application but with no success. I have followed all the steps indicated by Carter Allen on this question How to get metadata from video-movi

I'm t开发者_Go百科rying to use the MediaInfo DLL in a Mac application but with no success. I have followed all the steps indicated by Carter Allen on this question How to get metadata from video-movie file using Objective-c?

I've imported #import "MediaInfoDLL/MediaInfoDLL.h" but I don't know how to actually use that class in my code.

The class name is MediaInfo and the method I need is Open. I imagine it must be something really basic...


First, OS X doesn't have DLLs or, at least, they aren't called that (generally, you use a bundle to contain dynamically loaded code -- see NSBundle). I'm guessing you come from a Windows background?

The documentation for the MediaInfo SDK does not indicate anything about support for OS X. However, they do have a OS X version of the GUI and, thus, the code at least works on OS X.

Sounds like you'll need to port the library portion to an OS X Bundle and then load it. Or, better yet, if you are writing an OS X application, just add the relevant sources to your application's project.

Or do a google search; there are quite likely more native, already supported, Objective-C APIs for doing the same.

0

精彩评论

暂无评论...
验证码 换一张
取 消