So, I have a DLL, BadgerDLL, running under MTS/COmponent Services. This DLL has 2 classes - Woof and Growl.
My Client UI app creates an instance of Woof using:
That is correct?VB Code:
Dim objSausage As Woof Set objSausage = New Woof
Now what you are saying is that if my class woof creates an instance of Growl then it SHOULD NOT use the NEW statement, but instead use CreateObject, as in:
Am I right here?VB Code:
'In class woof Dim objSausage As Growl Set objSausage = New Growl 'BAD BAD! NO! Bad Badger *SLAP* Set objSausage = CreateObject("BadgerDLL.Growl") 'this good yes?
Woka




Reply With Quote