On Apr 7, 2006, at 12:01 pm, GregO wrote:

Anyone know why there are certain Windows Type Libraries that do not show up in the 2005/2006 ActiveX/OLEObject dialog boxes? Strange part is that the one I'm looking for shows up just fine in RB5.5.5, although I am unable to add it to the project.

Anyway, the item I am trying to implement is a callback library. Anyone know if this is even possible?

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?

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>

Reply via email to