On Apr 7, 2006, at 2:03 pm, William Yu wrote:
On 4/7/06 11:58 AM, "GregO" <[EMAIL PROTECTED]> wrote:
So trying to answer my own question, I followed the constructor
format that an ActiveX Object uses when you bring that in:
Sub Constructor()
#if TargetWin32 then
OLEObject("{941BD791-06C1-4D4D-8F6A-8F685810DD5E}")
#endif
End Sub
and of course I substituted the correct GUID for the type library
(got if from the registry). My new Class' Super is OLEObject, and
I've created an instance on a window. So knowing that just adding the
Reference in VB works, anyone have an idea as to why I'd be getting
an OLEException?
What kind of COM object is this? It must support automation, which
means it
must implement the IDispatch interface. Perhaps you got the wrong
GUID,
what does the OLEException message say about the error?
It says:
Exception Message: Class not registered
Excception Error Number: -2147721164
I just checked the registry, the one I used looks like this:
HKEY_CLASSES_ROOT\TypeLib\{941BD791-06C1-4D4D-8F6A-8F685810DD5E}\1.0\0
\win32
(Default) REG_SZ C:\Program Files\Intuit\QuickBooks 2006\sdkevent.dll
and this one:
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib
\{941BD791-06C1-4D4D-8F6A-8F685810DD5E}\1.0\0\win32
(Default) REG_SZ C:\Program Files\Intuit\QuickBooks 2006\sdkevent.dll
I also found one which did not look promising at:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer
\UserData\S-1-5-18\Components\0837737F7CEC4DC43A3FBC6D0A2285C5
Forgive me for my ignorance, I'm trying to implement the callback
features of the QuickBooks SDK. The VB Code works just fine, but I'd
rather use RB if it is possible.
GregO
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>