[python-win32] Missing methods from result of Dispatch or EnsureDispatch

Tim Roberts timr at probo.com
Fri Feb 25 20:02:01 CET 2011


Parand Tony Darugar wrote:
> I'm attempting to use COM to connect with Microsoft Dynamics GP via eConnect. I have a working VB program, and I also have a working IronPython program. However, I can't seem to get it to work with win32com.
>
> The main assembly I'm trying to get at is Microsoft.Dynamics.GP.eConnect.eConnectMethods. In VB this looks like:
>
> Dim eConCall As Microsoft.Dynamics.GP.eConnect.eConnectMethods
>
> And in IronPython I'm able to:
>
> clr.AddReference("Microsoft.Dynamics.GP.eConnect")
> from Microsoft.Dynamics.GP.eConnect import eConnectMethods
> connect = eConnectMethods()
> connect.eConnect_EntryPoint(...)

Perhaps I'm missing something, but in both cases there, you are creating
a .NET object from a .NET assembly, not a COM object.  It's possible
Microsoft has a parallel interface available for COM apps, but there's
not necessarily any relationship between their object models.

Do you have an example that shows Dynamics being used from a non-managed
COM application?

-- 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the python-win32 mailing list