Click here to Skip to main content
16,016,562 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Creating a setup for installtion of MFC Application Pin
ani_ikram16-Nov-08 19:48
ani_ikram16-Nov-08 19:48 
AnswerRe: Creating a setup for installtion of MFC Application Pin
Hamid_RT16-Nov-08 20:37
Hamid_RT16-Nov-08 20:37 
QuestionAccessing column data from multiple tables in oracle 10g to a single form of SDI Application Pin
Divya Lalwani16-Nov-08 19:22
Divya Lalwani16-Nov-08 19:22 
QuestionExecuting program error. Pin
Nikesh Jagtap16-Nov-08 18:47
Nikesh Jagtap16-Nov-08 18:47 
QuestionRe: Executing program error. Pin
David Crow17-Nov-08 3:27
David Crow17-Nov-08 3:27 
QuestionWrite data n PDF and Excel Pin
MsmVc16-Nov-08 17:18
MsmVc16-Nov-08 17:18 
AnswerRe: Write data n PDF and Excel Pin
Hamid_RT16-Nov-08 17:56
Hamid_RT16-Nov-08 17:56 
QuestionIncorrect binary path set during Win32 Service installation Pin
Member 569752116-Nov-08 16:00
Member 569752116-Nov-08 16:00 
All,

When I install my Win32 Service using CreateService() I am utilizing a TCHAR string (szPath) to input the full path to the service executable. However, when the service is installed instead of inputting this path to the executable it is inputting the path to the service installation executable that this code resides in.

Can someone explain to me why this would be happening?

Thanks

TCHAR szPath[MAX_PATH] = (L"\"C:\\Program Files\\Temp.exe\"");
TCHAR szStartName[50] = (L"Domain\\User");
TCHAR szStartNamePassword[50] = (L"**********");

schService = CreateService(
schSCManager,
SVCNAME,
SVCNAME,
SERVICE_ALL_ACCESS,
SERVICE_WIN32_OWN_PROCESS,
SERVICE_AUTO_START,
SERVICE_ERROR_NORMAL,
szPath,
NULL,
NULL,
NULL,
szStartName,
szStartNamePassword);
Questionminimum spanning tree Pin
Sadaiyappan16-Nov-08 9:54
Sadaiyappan16-Nov-08 9:54 
AnswerRe: minimum spanning tree Pin
Sarath C16-Nov-08 19:11
Sarath C16-Nov-08 19:11 
Questionhey plz fix this code it got errors urgent Pin
jazikhan00116-Nov-08 8:46
jazikhan00116-Nov-08 8:46 
AnswerRe: hey plz fix this code it got errors urgent Pin
Peter Weyzen16-Nov-08 9:46
Peter Weyzen16-Nov-08 9:46 
GeneralRe: hey plz fix this code it got errors urgent Pin
jazikhan00116-Nov-08 9:50
jazikhan00116-Nov-08 9:50 
AnswerRe: hey plz fix this code it got errors urgent Pin
22491717-Nov-08 12:42
22491717-Nov-08 12:42 
AnswerRe: hey plz fix this code it got errors urgent Pin
Iain Clarke, Warrior Programmer18-Nov-08 2:40
Iain Clarke, Warrior Programmer18-Nov-08 2:40 
QuestionA beginner question about winforms in VC++ Pin
Pedram Behroozi16-Nov-08 4:42
Pedram Behroozi16-Nov-08 4:42 
AnswerRe: A beginner question about winforms in VC++ Pin
Mark Salsbery16-Nov-08 6:14
Mark Salsbery16-Nov-08 6:14 
GeneralRe: A beginner question about winforms in VC++ Pin
Pedram Behroozi16-Nov-08 7:42
Pedram Behroozi16-Nov-08 7:42 
AnswerRe: A beginner question about winforms in VC++ Pin
Jijo.Raj16-Nov-08 7:07
Jijo.Raj16-Nov-08 7:07 
GeneralRe: A beginner question about winforms in VC++ Pin
Pedram Behroozi16-Nov-08 7:47
Pedram Behroozi16-Nov-08 7:47 
GeneralRe: A beginner question about winforms in VC++ Pin
Jijo.Raj16-Nov-08 8:13
Jijo.Raj16-Nov-08 8:13 
GeneralRe: A beginner question about winforms in VC++ Pin
N a v a n e e t h16-Nov-08 16:53
N a v a n e e t h16-Nov-08 16:53 
GeneralRe: A beginner question about winforms in VC++ Pin
Pedram Behroozi16-Nov-08 22:02
Pedram Behroozi16-Nov-08 22:02 
QuestionCEdit Control Pin
john563215-Nov-08 21:04
john563215-Nov-08 21:04 
AnswerRe: CEdit Control Pin
Garth J Lancaster15-Nov-08 22:47
professionalGarth J Lancaster15-Nov-08 22:47 

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.