MPLATFORMLib Namespace > MFileClass Class : PluginsAdd Method |
Public Overridable Sub PluginsAdd( _ ByVal _pPlugin As Object, _ ByVal _llCallbackUserData As Long _ )
public virtual void PluginsAdd( object _pPlugin, long _llCallbackUserData )
public procedure PluginsAdd( _pPlugin: TObject; _llCallbackUserData: Int64 ); virtual;
public: virtual void PluginsAdd( IUnknown* _pPlugin, long _llCallbackUserData )
Here is example of how to add CharacterGenerator as plugin to your playlist:
Dim m_objPlaylist as New MPlaylistClass(); Dim m_objCharGen As New MLCHARGENLib.CoMLCharGen() m_objPlaylist.PluginsAdd(m_objCharGen, 0)
MPlaylistClass m_objPlaylist= new MPlaylistClass(); MLCHARGENLib.CoMLCharGen m_objCharGen = new MLCHARGENLib.CoMLCharGen(); m_objPlaylist.PluginsAdd(m_objCharGen, 0);
var myPlaylist: MPlaylist; myPlugins: IMPlugins; m_objCharGen: CoMLCharGen; begin m_objCharGen := CreateComObject(CLASS_CoMLCharGen) as IMLCharGen; myPlaylist:= CreateComObject)CLASS_MPlaylist) as MPlaylist; myPlugins:= myPlaylist as IMPlugins; myPlugins.PluginsAdd(m_objCharGen,0); end;