c++ - 使用 Visual C++ 6.0 的 Windows 服务

标签 c++ visual-c++

我需要使用 Visual C++ 6.0 在 Windows 上创建服务。 我不熟悉服务,所以我在 msdn 网站上阅读。

有人可以给我发一个好网站的链接,解释(通过示例)如何使用 Visual C++ 6.0 创建服务(最好通过示例)吗?

最佳答案

您可以使用 ATL 在 VC6 中构建服务。尝试 ATL 向导,让它为您生成服务 stub ,然后您可以使用适当的功能充实它。

也就是说,ATL 框架的服务支持不是很好(至少在 VC6 中不是),并且会为您提供专为公开 COM 对象而定制的服务。

有一本关于服务的好书,叫做 Professional NT Services: http://www.amazon.com/Professional-NT-Services-Kevin-Miller/dp/1861001304/ref=pd_sim_b_3

看看你能不能用上它。

关于c++ - 使用 Visual C++ 6.0 的 Windows 服务,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1276536/

相关文章:

c++ - 使用 placement new 转移对象所有权

python - pip安装flask-user时出现"Failed building wheel for py-bcrypt"

C++ 我不断收到 "was not declared in this scope error"

c++ - 用列表中的元素填充 vector

C++重绘窗口的一部分

c++ - 自动版本号在 Visual Studio express c++ 中使用宏工作

c++ - 井字游戏二维数组

c++ - Push.back into vector behavior maybe or something wrong with my for statement?

c++ - 使用静态转换将字符转换为整数不起作用?

C++在main中调用类的静态函数