Could someone please tell me the difference using New or CreateObject to create a class object from an Activex exe.
for instance I have class called printers.printclass(Exe) and Letters.Parameters(dll)
then, In the Client code:
I got an error from last line before starting executing all code, saying "error in loading dll"Code:private jdp as Letters.Parameters Private WithEvents PrintL As Printers.PrintClass Set PrintL = New Printers.PrintClass 'OR Set PrintL = CreateObject("Printers.Printclass") 'I just use one of above two lines 'then jdp is created here PrintL.StartPrint jdp 'call the object method with a parameter
So, I would like to clarify the difference between New and CreateObject and If you could give me some leads on the error, that would be great too. Thanks for your help




Reply With Quote