[python-win32] Quickbooks and COM
Jean-Philippe Barrette-LaPierre
jpbarrette at savoirfairelinux.net
Thu May 20 11:42:41 EDT 2004
I'm using the Quickbooks SDK. This SDK allow us to receive events from
the application. Events are sent by COM. I need to implement a
IQBEventCallback. It's from QBSDKEVENT type lib. with the function
win32com.client.gencache.MakeModuleForTypelib I get this.
-----------------------------------------------------------
# -*- coding: mbcs -*-
# Created by makepy.py version 0.4.91
# By python version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32
bit (Intel)]
# From type library '{941BD791-06C1-4D4D-8F6A-8F685810DD5E}'
# On Thu May 20 10:41:21 2004
"""QBSDKEvent 1.0 Type Library"""
makepy_version = '0.4.91'
python_version = 0x20303f0
import win32com.client.CLSIDToClass, pythoncom
import win32com.client.util
from pywintypes import IID
from win32com.client import Dispatch
# The following 3 lines may need tweaking for the particular server
# Candidates are pythoncom.Missing and pythoncom.Empty
defaultNamedOptArg=pythoncom.Empty
defaultNamedNotOptArg=pythoncom.Empty
defaultUnnamedArg=pythoncom.Empty
CLSID = IID('{941BD791-06C1-4D4D-8F6A-8F685810DD5E}')
MajorVersion = 1
MinorVersion = 0
LibraryFlags = 8
LCID = 0x0
IQBEventCallback_vtables_dispatch_ = 0
IQBEventCallback_vtables_ = [
(('inform', 'eventXML'), 1610678272, (1610678272, (), [(8, 1, None,
None)], 1, 1, 4, 0, 12, (3, 0, None, None), 0)),
]
RecordMap = {
}
CLSIDToClassMap = {
}
CLSIDToPackageMap = {}
win32com.client.CLSIDToClass.RegisterCLSIDsFromDict( CLSIDToClassMap )
VTablesToPackageMap = {}
VTablesToClassMap = {
'{A3A4E33E-E747-48CF-947B-93FDE67FF72F}' : 'IQBEventCallback',
}
NamesToIIDMap = {
'IQBEventCallback' : '{A3A4E33E-E747-48CF-947B-93FDE67FF72F}',
}
-------------------------------------------------------------------
now the question is: "What do I need to do to implement this interface?".
P.S.: I'm not familiar with COMs.
More information about the Python-win32
mailing list