Показать сообщение отдельно
Старый 22.03.2006, 14:19   #2  
Jabberwocky is offline
Jabberwocky
Microsoft Dynamics
Аватар для Jabberwocky
Сотрудники Microsoft Dynamics
 
274 / 307 (11) ++++++
Регистрация: 02.09.2005
Адрес: Москва
Вот что об этом сказано в Писании:

The IAxaptaObject interface derives from IDispatch, and provides methods for calling methods of Microsoft Axapta objects.

The IAxaptaObject interface is a dual interface, and objects can be created using IAxapta::CreateObject or IAxapta::CreateObjectEx only.

И здесь же пример использования из приложения на VB:
Код:
Dim Axapta As Object
Dim MyObject As Object
Set Axapta = CreateObject("AxaptaCOMConnector.Axapta")

Axapta.Logon
‘ create an Axapta object
Set MyObject = Axapta.CreateObject("MyClass", "new parameter1", 2)
‘ we can now call methods of "MyObject" using its "Call" method
MyObject.Call "MyMethod", "parameter1", 2