Getting error -2147220472 (Could not start Quickbooks) [closed]

半腔热情 提交于 2019-12-04 07:19:59

This is the key to this question:

The application is executed by a windows service.

Due to the way QuickBooks works, trying to connect to QuickBooks from a Windows service (e.g. a little program that sits and runs in the background instead of an end-user program with a GUI) will never work reliably.

QuickBooks uses a GUI message pump to power the SDK - so if there's no GUI available (e.g. like in a Windows service that runs even when there are no users logged on to the machine) then the SDK/API won't be available.

Sorry for the bad news. :-/

Can you make your program have a simple GUI and only run when a user is logged on (lock the screen if they need to leave the computer) instead?

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!