indikad
asked on
class factory cannot supply requested class - VB6
I use a dll ( assume it is a c++ ) within my VB6 program.
I can use the class when I do early binding. But if I do late bind,
I get this error on the following line.
Set oOutPymnt = CreateObject("SAPbobsCOM.P ayments")
"class factory cannot supply requested class"
I will be able to give more infor if needed.
Thanks in advance.
Indikad.
I can use the class when I do early binding. But if I do late bind,
I get this error on the following line.
Set oOutPymnt = CreateObject("SAPbobsCOM.P
"class factory cannot supply requested class"
I will be able to give more infor if needed.
Thanks in advance.
Indikad.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
that's mean you need to get object from them and cannot create object
which imples that their object is not public createable
which imples that their object is not public createable
ASKER
thanks.
ASKER
'early bind
Dim oOutPymnt As SAPbobsCOM.Payments
Set oOutPymnt = gObjCompany.GetBusinessObj
'late bind
Dim oOutPymnt As Object
'---oVendorPayments = 46
Set oOutPymnt = gObjCompany.GetBusinessObj
I do not know how to technically explain why but,
what I should not have is this following line.
Set oOutPymnt = CreateObject("SAPbobsCOM.P
any ideas?
thanks,
as I said, I have awarded points.