Click here to Skip to main content
15,916,030 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
AnswerRe: Storage Class Trivia Pin
George L. Jackson29-Nov-06 15:37
George L. Jackson29-Nov-06 15:37 
Questioni need creating a database myself,i need make a database from scratch , can u give me some help please? Pin
jingguangdadao28-Nov-06 1:57
jingguangdadao28-Nov-06 1:57 
AnswerRe: i need creating a database myself,i need make a database from scratch , can u give me some help please? Pin
George L. Jackson28-Nov-06 13:26
George L. Jackson28-Nov-06 13:26 
GeneralRe: i need creating a database myself,i need make a database from scratch , can u give me some help please? Pin
Paul Conrad28-Nov-06 14:55
professionalPaul Conrad28-Nov-06 14:55 
QuestionTo port a C++ application developed in Windows to Linux Pin
syampj27-Nov-06 22:03
syampj27-Nov-06 22:03 
AnswerRe: To port a C++ application developed in Windows to Linux Pin
CPallini28-Nov-06 0:13
mveCPallini28-Nov-06 0:13 
AnswerRe: To port a C++ application developed in Windows to Linux Pin
Paul Conrad28-Nov-06 15:07
professionalPaul Conrad28-Nov-06 15:07 
QuestionRun an Exe from Windows service Pin
nsurendran27-Nov-06 19:12
nsurendran27-Nov-06 19:12 
Hi ,
My problem is that, I want to run an .exe from the windows service. But the application window is not visible to the user. Exe and Service is running in task manager. Previously I was using CreateProcess funtion. Then after getting suggestion from this site, I changed that into CreateProcessAsUser and the Code is like below. But Still I am facing same problem.

BOOL b;
HANDLE hToken;
HANDLE hNewToken;

b = OpenProcessToken(GetCurrentProcess(), TOKEN_ASSIGN_PRIMARY|TOKEN_DUPLICATE, &hToken);

b = DuplicateTokenEx(hToken, TOKEN_ASSIGN_PRIMARY|TOKEN_ALL_ACCESS, NULL, SecurityImpersonation, TokenPrimary, &hNewToken);

b = CreateProcessAsUser(hNewToken, NULL,ArgPBU,NULL, NULL, FALSE, NORMAL_PRIORITY_CLASS | CREATE_NEW_CONSOLE, NULL, Cwd, &si, &m_piPBU);

CloseHandle(hNewToken);

-------------
After executing this I am getting same result.





Rgds.,
N.Surendran
QuestionRe: Run an Exe from Windows service Pin
George L. Jackson28-Nov-06 13:48
George L. Jackson28-Nov-06 13:48 
Questionhow to make bouncing ball? Pin
psychodoctor27-Nov-06 1:10
psychodoctor27-Nov-06 1:10 
AnswerRe: how to make bouncing ball? Pin
George L. Jackson27-Nov-06 11:52
George L. Jackson27-Nov-06 11:52 
QuestionGetPixel in CLI Pin
Epi26-Nov-06 23:13
Epi26-Nov-06 23:13 
AnswerRe: GetPixel in CLI Pin
Christian Graus27-Nov-06 20:07
protectorChristian Graus27-Nov-06 20:07 
GeneralRe: GetPixel in CLI Pin
Epi27-Nov-06 21:23
Epi27-Nov-06 21:23 
AnswerRe: Has any one used RedmonEE Pin
Christian Graus26-Nov-06 8:33
protectorChristian Graus26-Nov-06 8:33 
Questionhow several lines appear randomly? Pin
davvid25-Nov-06 20:20
davvid25-Nov-06 20:20 
AnswerRe: how several lines appear randomly? Pin
Christian Graus25-Nov-06 22:32
protectorChristian Graus25-Nov-06 22:32 
QuestionProblems compiling project in Visual C++ studio Pin
Tokorie25-Nov-06 9:11
Tokorie25-Nov-06 9:11 
AnswerRe: Problems compiling project in Visual C++ studio Pin
Christian Graus25-Nov-06 22:33
protectorChristian Graus25-Nov-06 22:33 
GeneralRe: Problems compiling project in Visual C++ studio Pin
uusheikh30-Nov-06 20:28
uusheikh30-Nov-06 20:28 
QuestionManaged C++ with MFC Pin
ksandy4524-Nov-06 17:52
ksandy4524-Nov-06 17:52 
AnswerRe: Managed C++ with MFC Pin
Christian Graus25-Nov-06 22:35
protectorChristian Graus25-Nov-06 22:35 
GeneralRe: Managed C++ with MFC Pin
ksandy4527-Nov-06 18:03
ksandy4527-Nov-06 18:03 
GeneralRe: Managed C++ with MFC Pin
Christian Graus27-Nov-06 19:55
protectorChristian Graus27-Nov-06 19:55 
GeneralRe: Managed C++ with MFC Pin
ksandy4527-Nov-06 21:00
ksandy4527-Nov-06 21:00 

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.