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

C / C++ / MFC

 
AnswerRe: Special character as button label Pin
Nemanja Trifunovic26-Feb-10 8:15
Nemanja Trifunovic26-Feb-10 8:15 
GeneralRe: Special character as button label Pin
Dave Colter26-Feb-10 8:26
Dave Colter26-Feb-10 8:26 
AnswerRe: Special character as button label Pin
Avi Berger26-Feb-10 8:49
Avi Berger26-Feb-10 8:49 
QuestionRe: Special character as button label Pin
CPallini26-Feb-10 9:03
mveCPallini26-Feb-10 9:03 
AnswerRe: Special character as button label Pin
Dave Colter26-Feb-10 9:06
Dave Colter26-Feb-10 9:06 
QuestionRe: Special character as button label Pin
David Crow26-Feb-10 9:15
David Crow26-Feb-10 9:15 
AnswerRe: Special character as button label Pin
Dave Colter26-Feb-10 10:11
Dave Colter26-Feb-10 10:11 
GeneralRe: Special character as button label Pin
CPallini26-Feb-10 10:31
mveCPallini26-Feb-10 10:31 
GeneralRe: Special character as button label Pin
Dave Colter26-Feb-10 10:44
Dave Colter26-Feb-10 10:44 
QuestionRe: Special character as button label Pin
CPallini26-Feb-10 10:01
mveCPallini26-Feb-10 10:01 
QuestionRe: Special character as button label Pin
Bram van Kampen26-Feb-10 15:09
Bram van Kampen26-Feb-10 15:09 
AnswerRe: Special character as button label Pin
David Crow26-Feb-10 9:13
David Crow26-Feb-10 9:13 
AnswerRe: Special character as button label Pin
Avi Berger26-Feb-10 12:13
Avi Berger26-Feb-10 12:13 
QuestionConditiona Modification of VERSIONINFO values Pin
softwaremonkey26-Feb-10 6:13
softwaremonkey26-Feb-10 6:13 
AnswerRe: Conditiona Modification of VERSIONINFO values Pin
Richard MacCutchan26-Feb-10 6:34
mveRichard MacCutchan26-Feb-10 6:34 
GeneralRe: Conditiona Modification of VERSIONINFO values Pin
softwaremonkey26-Feb-10 6:45
softwaremonkey26-Feb-10 6:45 
GeneralRe: Conditiona Modification of VERSIONINFO values Pin
Richard MacCutchan26-Feb-10 7:33
mveRichard MacCutchan26-Feb-10 7:33 
AnswerRe: Conditiona Modification of VERSIONINFO values Pin
cmk26-Feb-10 14:04
cmk26-Feb-10 14:04 
QuestionDeadlock occurs in Function Scoped Static variables (Thread Unsafe in VC++) Pin
Mohammed_Irfan26-Feb-10 2:52
Mohammed_Irfan26-Feb-10 2:52 
AnswerRe: Deadlock occurs in Function Scoped Static variables (Thread Unsafe in VC++) Pin
Avi Berger26-Feb-10 5:20
Avi Berger26-Feb-10 5:20 
GeneralRe: Deadlock occurs in Function Scoped Static variables (Thread Unsafe in VC++) Pin
Mohammed_Irfan28-Feb-10 22:06
Mohammed_Irfan28-Feb-10 22:06 
QuestionKilling a process by name Pin
transoft26-Feb-10 2:21
transoft26-Feb-10 2:21 
AnswerRe: Killing a process by name Pin
Eugen Podsypalnikov26-Feb-10 2:35
Eugen Podsypalnikov26-Feb-10 2:35 
AnswerRe: Killing a process by name Pin
Maximilien26-Feb-10 2:40
Maximilien26-Feb-10 2:40 
We use a couple of different functions to do it (probably over-kill) :

Use CreateToolhelp32Snapshot to get a snapshot of the current processes.

After that loop over the entries with Process32First and Process32Next and fetch the name of the process in the PROCESSENTRY32 structure.

And find the process in the list, use TerminateProcess with the handle in the PROCESSENTRY32 struct.

Good luck.
Watched code never compiles.

AnswerRe: Killing a process by name Pin
wangningyu26-Feb-10 20:22
wangningyu26-Feb-10 20:22 

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.