如何用C ++编写简单的Windows服务? [英] How to write simple windows service in C++ ?

查看:227
本文介绍了如何用C ++编写简单的Windows服务?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

actuallay我想编写一个Windows服务来从PLC读取一些数据并将这些数据写入带有blob格式的oracle。我需要文档显示如何创建Windows服务的步骤。



我尝试了什么:


$ b $bı尝试使用vs 2012 express for desktop

Hi,actuallay I would like to write a windows service to read some data from PLC and write those datas to oracle with blob format.I need documention showing steps how to create a windows service.

What I have tried:

ı try in vs 2012 express for desktop

推荐答案

虽然您应该考虑使用C#编写Windows应用程序,因为您会发现很多资源。 CodeProject上已有以下文章供您学习,甚至可以通过从这些文章下载示例代码来试用。



简单的Windows服务C ++ [ ^ ]

与C ++中的Windows服务交互 [ ^ ]

C ++中的简单Windows服务 [ ^ ]

C ++中的基本Windows服务(CppWindowsService)C ++示例Visual Studio 2008 [ ^ ]
Although you should consider writing apps for Windows with C#, as you will find a lot of resources. The following articles are already available on CodeProject that you can use to learn, and even try out by downloading the sample codes from these articles.

Simple Windows Service in C++[^]
Interact with Windows services in C++[^]
Simple Windows Service in C++[^]
A basic Windows service in C++ (CppWindowsService) sample in C++ for Visual Studio 2008[^]


您是否尝试过c ++ simple windows service作为搜索词?



三个有用的结果:

C ++中的基本Windows服务(CppWindowsService)C ++ for Visual Studio 2008中的示例 [ ^ ]

C ++中的简单Windows服务 [ ^ ]

C ++中的Windows服务示例 - 谢尔盖·巴布金 [ ^ ]
Did you tried "c++ simple windows service" as search term?

Three useful results:
A basic Windows service in C++ (CppWindowsService) sample in C++ for Visual Studio 2008[^]
Simple Windows Service in C++[^]
Windows service example in C++ – Sergey Babkin[^]


这篇关于如何用C ++编写简单的Windows服务?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆