Error invoking invokeLate service

I am trying to invoke a Dll function using invokeLate service, the Dll exists in the lib folder of the package, but it is giving following error

win32.COM.WmDispatchException: Invalid class string. Error Code = 800401f3

Please help.