"main()" or "WinMain()" to write a service...?
От: cutecode  
Дата: 27.11.01 02:16
Оценка:
I saw 3 sample codes for a service, which use
int main(...)

as a starting function for a service.

And I saw one sample code which uses MFC.

But I couldn't find any sample code which uses
int APIENTRY WinMain(...)

as a starting function for a service.

I tried to rewrite one of the samples which uses
main(...) to WinMain(...) and everything worked fine.

My question: is which approach is the better way to write a service?

Thank you.
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.