h = actxserver(progid)
h = actxserver(progid, 'machine', machineName)
| Parameter | Description |
|---|---|
| progid | a string: the name of a COM server. |
| machineName | a string: the name of the machine on which to start the server. |
| Parameter | Description |
|---|---|
| h | a COM object. |
h = actxserver(progid) creates a COM server using the progid identifier.
h = actxserver('Excel.application')
pTextToSpeech = actxserver('Sapi.SpVoice')
for i = 0:5
invoke(pTextToSpeech, 'Speak', int2str(5 - i));
end
invoke(pTextToSpeech, 'Speak', _('Welcome to COM Interface for Nelson !'));
delete(pTextToSpeech)
clear pTextToSpeech
| Version | Description |
|---|---|
| 1.0.0 | initial version |