Click here to Skip to main content
15,909,193 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Listing files in folder Pin
Hamid_RT15-Jan-09 1:46
Hamid_RT15-Jan-09 1:46 
Questionadding controls listbox. Pin
kir_MFC14-Jan-09 20:14
kir_MFC14-Jan-09 20:14 
AnswerRe: adding controls listbox. Pin
Cedric Moonen14-Jan-09 20:21
Cedric Moonen14-Jan-09 20:21 
AnswerRe: adding controls listbox. Pin
Hamid_RT15-Jan-09 1:44
Hamid_RT15-Jan-09 1:44 
QuestionRe: adding controls listbox. Pin
David Crow15-Jan-09 3:00
David Crow15-Jan-09 3:00 
QuestionHelp me ,~ thanks Pin
ox010114-Jan-09 19:57
ox010114-Jan-09 19:57 
AnswerRe: Help me ,~ thanks Pin
Naveen14-Jan-09 21:25
Naveen14-Jan-09 21:25 
AnswerRe: Help me ,~ thanks Pin
Emilio Garavaglia14-Jan-09 21:42
Emilio Garavaglia14-Jan-09 21:42 
Thats due to the fact that a "desktop object" is associated to a user session with the OS, and that a service have no "destop" since it run inside the OS behind the users.
It is in general wrong to assume that a service is running inside a user context.
What you can do is try to get who are the user that are logged on the machine, get the desktop associated to one of them and then create the process into that context.

See MSDN about "Windows Stations", "Desktop Objects" and the "CreateProcess" API.
WinExec is not the good API, since it creates the new process in the same context of its creator (that has no place to have an interactive interface, being a service).

****
On more remind: to be more productive, don't title a post in a programming forum "Help me", since it gives no clue about the nature of the help.
Imagine the forum displaying 100 posts titled "help me". Do we have to open all of them before to understand if we can helpful or not ?
A more appropriate tile may be "Process and Services", for example.


2 bugs found.
> recompile ...
65534 bugs found.
D'Oh! | :doh:


GeneralRe: Help me ,~ thanks Pin
ox010115-Jan-09 20:08
ox010115-Jan-09 20:08 
AnswerRe: Help me ,~ thanks Pin
«_Superman_»14-Jan-09 22:43
professional«_Superman_»14-Jan-09 22:43 
AnswerRe: Help me ,~ thanks Pin
KarstenK14-Jan-09 23:05
mveKarstenK14-Jan-09 23:05 
AnswerRe: Help me ,~ thanks Pin
ox010115-Jan-09 14:35
ox010115-Jan-09 14:35 
GeneralRe: Help me ,~ thanks Pin
ox010115-Jan-09 14:37
ox010115-Jan-09 14:37 
QuestionMoving dailog box by clicking anywhere not only on caption bar? Pin
sam_psycho14-Jan-09 19:12
sam_psycho14-Jan-09 19:12 
AnswerRe: Moving dailog box by clicking anywhere not only on caption bar? Pin
Naveen14-Jan-09 19:24
Naveen14-Jan-09 19:24 
GeneralRe: Moving dailog box by clicking anywhere not only on caption bar? Pin
sam_psycho14-Jan-09 22:32
sam_psycho14-Jan-09 22:32 
GeneralRe: Moving dailog box by clicking anywhere not only on caption bar? Pin
«_Superman_»14-Jan-09 22:40
professional«_Superman_»14-Jan-09 22:40 
AnswerRe: Moving dailog box by clicking anywhere not only on caption bar? Pin
Nishad S14-Jan-09 19:33
Nishad S14-Jan-09 19:33 
AnswerRe: Moving dailog box by clicking anywhere not only on caption bar? Pin
Jijo.Raj14-Jan-09 21:49
Jijo.Raj14-Jan-09 21:49 
QuestionError LNK2005 ( extern variable) Pin
Arif Liminto14-Jan-09 15:17
professionalArif Liminto14-Jan-09 15:17 
AnswerRe: Error LNK2005 ( extern variable) Pin
«_Superman_»14-Jan-09 16:51
professional«_Superman_»14-Jan-09 16:51 
GeneralRe: Error LNK2005 ( extern variable) Pin
Arif Liminto14-Jan-09 17:03
professionalArif Liminto14-Jan-09 17:03 
QuestionHow to debug a program for unknown error?? Pin
Kiran Satish14-Jan-09 12:11
Kiran Satish14-Jan-09 12:11 
AnswerRe: How to debug a program for unknown error?? Pin
Stephen Hewitt14-Jan-09 13:51
Stephen Hewitt14-Jan-09 13:51 
AnswerRe: How to debug a program for unknown error?? Pin
Randor 14-Jan-09 14:50
professional Randor 14-Jan-09 14:50 

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.