MATLAB COMPILER RELEASE NOTES Guide de l'utilisateur Page 588

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 716
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 587
R2007a
20-44
For an example of this feature, see Responding to Interface Events from an Automation
Server.
Get the Status of a MATLAB Automation Server
Using the enableservice function you can learn the current state of a MATLAB
Automation server. The function returns a logical value, where logical 1 (true) means
MATLAB is an Automation server and logical 0 (false) means MATLAB is not an
Automation server.
For example, if you type
enableservice('AutomationServer')
and MATLAB displays
ans =
1
then MATLAB is currently an Automation server.
Changes to MATLAB Version-Specific ProgID
A programmatic identifier, or ProgID, is used to create a COM component. MATLAB's
version-specific ProgID Matlab.Application.N.M now let's you specify both a major and
minor version number.
For example, to specify MATLAB version 7.4, use the ProgID
Matlab.Application.7.4.
Changes to Handling Microsoft ActiveX Methods
Beginning in MATLAB Version 7.4 (R2007a), an ActiveX method with the same name as
a class is treated as a constructor and cannot be called in the same way as an ordinary
method.
In the following example:
myApp = actxserver('Excel.Application');
op = invoke(myApp.Workbooks, 'open', 'MyFile.xls');
Sheets = myApp.ActiveWorkBook.Sheets;
target_sheet = get(Sheets, 'item','Sheet1');
Vue de la page 587
1 2 ... 583 584 585 586 587 588 589 590 591 592 593 ... 715 716

Commentaires sur ces manuels

Pas de commentaire