0

I want to wrap some activex dll to npapi. An ActiveX DLL can contain many controls, just like the one I'm going to wrap.

Can a npapi dll contain many controls? I know the npapi control is working like:

x-application/x-...

It just seems that the npapi dll can't wrap many controls, so I must split the controls in the activex dll, but I don't think it's a good idea because there are some public data structs.

Is it possible to have a npapi dll with multiple controls?

4

1 に答える 1

1

はい、NPAPI プラグインは複数の MIME タイプをサポートでき、一般的なすべてのプラグインには実際に複数の MIME タイプがあります (たとえばabout:plugins、Firefox で確認してください)。

プラグインの MIME タイプを指定する場所はすべて、複数の MIME タイプの指定をサポートしています。確認できるパラメーターを
NPP_New()受け取りNPP_NewStream()ます。NPMIMEType

于 2013-04-10T09:02:26.643 に答える