Copyright © 2008-2018 MultiMedia Soft

InitEditor method

Previous pageReturn to chapter overviewNext page

Remarks

 

Initializes the control: the call to this method is mandatory and must be performed before calling any other method that will use an editing related functionality, possibly in the container form initialization function: calling this method inside the constructor function of the container form will not work and could cause unpredictable results.

 

In case you should not need playback support, you may replace this call with the call to the InitEditorNoPlayback method.

 

In case the component should be instanced in conjunction with the Active DJ Studio component and/or the Active Sound Recorder component, this method should be always called after calling the initialization methods of the other components (InitDJSystem for the DJ studio component and InitRecordingSystem for the recorder component).

 

If the multimedia engine shouldn't find any enabled or valid output device, the container application would be notified through the WarnNoOutputDevice event.

 

 

Syntax

 

[Visual Basic]

control.InitEditor (

hWndParent as OLE_HANDLE

) as enumErrorCodes


 

[C++]

short control.InitEditor (

OLE_HANDLE hWndParent

);


 

 

Parameter

Description

 

 

hWndParent

Handle of the container (parent) window: for Visual Basic is represented by the hWnd property of the container form, while for Visual C++ is represented by the call to the container dialog box GetSafeHwnd member function: the return value of this call represents a HWND so it must be cast to OLE_HANDLE to avoid compiler errors

 

 

 

Return value

 

Value

Meaning

 

 

Negative value

An error occurred, check the LastError property value in order to see the error code meaning

enumErrorCodes.ERR_NOERROR (0)

The method call was successful.