Click here to Skip to main content
15,899,679 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to hide an application on Win 9x/Me ? Pin
chauhoangtrung22-Nov-04 14:23
chauhoangtrung22-Nov-04 14:23 
QuestionWhats wrong with this Code? Pin
Zmurf11-Nov-04 20:14
Zmurf11-Nov-04 20:14 
AnswerRe: Whats wrong with this Code? Pin
David Crow12-Nov-04 4:01
David Crow12-Nov-04 4:01 
GeneralRe: Whats wrong with this Code? Pin
Michael Dunn12-Nov-04 7:05
sitebuilderMichael Dunn12-Nov-04 7:05 
GeneralHelp... developing GUI in VC++ Pin
Mirza Faizan11-Nov-04 20:12
Mirza Faizan11-Nov-04 20:12 
GeneralRe: Help... developing GUI in VC++ Pin
22491711-Nov-04 23:42
22491711-Nov-04 23:42 
GeneralRe: Help... developing GUI in VC++ Pin
Mirza Faizan12-Nov-04 8:09
Mirza Faizan12-Nov-04 8:09 
QuestionCheck how much processes by the same name are running ? Pin
Eyal Kaplan11-Nov-04 20:02
Eyal Kaplan11-Nov-04 20:02 
Hi,
I am trying to use the getprocessesbyname manged extension from the system:diagnosics system.dll
from .NET with C/C++
Do any one knows away to get for a speacific process name how many process currently running and then use it in an unmanage project.
I don't want to define it with complier \clr and then use #pragm unmange and mange,tried it already and the rest of the project didn't compile.
And the only way I had luck of using it by creating a manage project and
using this code:
[C++]
#using <mscorlib.dll>
#using <system.dll>

using namespace System;
using namespace System::Diagnostics;

int main()
{
//process running eyal.exe
Process* localByName[] = Process::GetProcessesByName(S"eyal");
}


I just want to be able to run only one program eyal.exe ,and if try to run more then one will have a message and then terminate the second process.

Thanks Rose | [Rose]
Will be glad to get any help.Confused | :confused:
AnswerRe: Check how much processes by the same name are running ? Pin
22491712-Nov-04 0:10
22491712-Nov-04 0:10 
AnswerRe: Check how much processes by the same name are running ? Pin
22491712-Nov-04 0:12
22491712-Nov-04 0:12 
AnswerRe: Check how much processes by the same name are running ? Pin
Eyal Kaplan17-Nov-04 19:23
Eyal Kaplan17-Nov-04 19:23 
Generalhelp required Pin
adnan pathan11-Nov-04 19:16
adnan pathan11-Nov-04 19:16 
GeneralRe: help required Pin
22491712-Nov-04 0:02
22491712-Nov-04 0:02 
GeneralRe: help required Pin
David Crow12-Nov-04 4:07
David Crow12-Nov-04 4:07 
Generalhelp required Pin
adnan pathan11-Nov-04 18:53
adnan pathan11-Nov-04 18:53 
GeneralExecuting Batch file Pin
Katamneni11-Nov-04 18:51
Katamneni11-Nov-04 18:51 
GeneralRe: Executing Batch file Pin
22491711-Nov-04 23:59
22491711-Nov-04 23:59 
GeneralExecuting Batch file Pin
Katamneni11-Nov-04 18:47
Katamneni11-Nov-04 18:47 
GeneralProgress bar Pin
Logan from Singapore11-Nov-04 18:20
Logan from Singapore11-Nov-04 18:20 
GeneralRe: Progress bar Pin
bryce11-Nov-04 18:24
bryce11-Nov-04 18:24 
GeneralRe: Progress bar Pin
Logan from Singapore11-Nov-04 21:12
Logan from Singapore11-Nov-04 21:12 
Generalconverting to mouse coordinates Pin
Member 52815511-Nov-04 18:02
Member 52815511-Nov-04 18:02 
GeneralRe: converting to mouse coordinates Pin
bryce11-Nov-04 18:29
bryce11-Nov-04 18:29 
GeneralRe: converting to mouse coordinates Pin
Member 52815511-Nov-04 20:12
Member 52815511-Nov-04 20:12 
GeneralMemory Address Query Pin
Member 89184611-Nov-04 16:24
Member 89184611-Nov-04 16:24 

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.