Click here to Skip to main content
15,905,683 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How Can Get SystemTime? Pin
ShilpiP13-May-08 20:46
ShilpiP13-May-08 20:46 
GeneralRe: How Can Get SystemTime? Pin
Le@rner13-May-08 21:03
Le@rner13-May-08 21:03 
GeneralRe: How Can Get SystemTime? Pin
ShilpiP13-May-08 21:13
ShilpiP13-May-08 21:13 
QuestionGetting problem in writing windows service [ ERROR 1053 ] [modified] Pin
Soumyadipta13-May-08 19:43
Soumyadipta13-May-08 19:43 
AnswerRe: Getting problem in writing windows service [ ERROR 1053 ] Pin
Rajkumar R13-May-08 23:52
Rajkumar R13-May-08 23:52 
AnswerRe: Getting problem in writing windows service [ ERROR 1053 ] Pin
Soumyadipta14-May-08 1:27
Soumyadipta14-May-08 1:27 
GeneralRe: Getting problem in writing windows service [ ERROR 1053 ] Pin
Iain Clarke, Warrior Programmer14-May-08 1:53
Iain Clarke, Warrior Programmer14-May-08 1:53 
GeneralRe: Getting problem in writing windows service [ ERROR 1053 ] Pin
Soumyadipta14-May-08 2:47
Soumyadipta14-May-08 2:47 
The problem is now solved.I have separated the installer code block from the existing code and have created a separate exe to install the service.I don't know the reason why the installer code block was creating the probel of ERROR 1053.

Below is the installer code:

<br />
<br />
/* A console program that installs our skeleton service */<br />
/* Author :- Nishant S */<br />
/* EMail :- nish@inapp.com */<br />
<br />
#include <stdafx.h><br />
#include <windows.h><br />
#include <winsvc.h><br />
<pre><br />
void ShowErr();<br />
<br />
int main(int argc, char* argv[])<br />
{<br />
	SC_HANDLE NishService,scm;<br />
	scm=OpenSCManager(0,0,SC_MANAGER_CREATE_SERVICE);<br />
	if(!scm)<br />
	{<br />
		ShowErr();<br />
		return 1;<br />
	}<br />
	NishService=CreateService(scm,"PointHDListener",<br />
		"PointHDListener Service",<br />
		SERVICE_ALL_ACCESS,SERVICE_WIN32_OWN_PROCESS,SERVICE_DEMAND_START,<br />
		SERVICE_ERROR_NORMAL,<br />
		"D:\\Service1.exe",<br />
		0,0,0,0,0);<br />
	if(!NishService)<br />
	{<br />
		CloseServiceHandle(scm);<br />
		ShowErr();<br />
		return 1;<br />
	}<br />
	CloseServiceHandle(NishService);<br />
	CloseServiceHandle(scm);<br />
	return 0;<br />
}<br />
<br />
void ShowErr()<br />
{<br />
	//cout << "Error" << "\r\n";<br />
}</pre><br />
</winsvc.h></windows.h></stdafx.h>

GeneralRe: Getting problem in writing windows service [ ERROR 1053 ] Pin
netprotector31-Mar-09 20:08
netprotector31-Mar-09 20:08 
AnswerRe: Getting problem in writing windows service [ ERROR 1053 ] Pin
Soumyadipta14-May-08 4:23
Soumyadipta14-May-08 4:23 
QuestionMFC application crashes @ ConnectionTransact of DBNMPNTW.DLL Pin
Arun Kuriyakkotte Ramachandran13-May-08 19:13
Arun Kuriyakkotte Ramachandran13-May-08 19:13 
AnswerRe: MFC application crashes @ ConnectionTransact of DBNMPNTW.DLL Pin
kasturi_haribabu13-May-08 19:25
kasturi_haribabu13-May-08 19:25 
QuestionApplication gets slower when having ~50 dialogs in memory. Pin
Paresh Chitte13-May-08 19:07
Paresh Chitte13-May-08 19:07 
AnswerRe: Application gets slower when having ~50 dialogs in memory. Pin
Steve Echols13-May-08 19:26
Steve Echols13-May-08 19:26 
GeneralRe: Application gets slower when having ~50 dialogs in memory. Pin
Paresh Chitte13-May-08 20:19
Paresh Chitte13-May-08 20:19 
GeneralRe: Application gets slower when having ~50 dialogs in memory. Pin
Nelek13-May-08 21:28
protectorNelek13-May-08 21:28 
GeneralRe: Application gets slower when having ~50 dialogs in memory. Pin
Paresh Chitte14-May-08 0:02
Paresh Chitte14-May-08 0:02 
QuestionProblem in Mapping Memory(win98,P4) Pin
Srinivas Reddy CH13-May-08 19:01
Srinivas Reddy CH13-May-08 19:01 
Question[Message Deleted] Pin
projectip13-May-08 18:59
projectip13-May-08 18:59 
AnswerRe: Marking region of interest Pin
Iain Clarke, Warrior Programmer13-May-08 22:06
Iain Clarke, Warrior Programmer13-May-08 22:06 
QuestionRe: Marking region of interest Pin
CPallini13-May-08 22:21
mveCPallini13-May-08 22:21 
AnswerRe: Marking region of interest Pin
projectip13-May-08 23:53
projectip13-May-08 23:53 
GeneralRe: Marking region of interest [modified] Pin
CPallini13-May-08 23:55
mveCPallini13-May-08 23:55 
GeneralRe: Marking region of interest Pin
Rajesh R Subramanian14-May-08 1:06
professionalRajesh R Subramanian14-May-08 1:06 
GeneralRe: Marking region of interest Pin
CPallini14-May-08 1:45
mveCPallini14-May-08 1:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.