Click here to Skip to main content
15,919,931 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Termination of one dll from another Pin
rajandpayal11-Jun-07 11:13
rajandpayal11-Jun-07 11:13 
GeneralRe: Termination of one dll from another Pin
#realJSOP12-Jun-07 1:46
professional#realJSOP12-Jun-07 1:46 
Questionstrerror() for WSAGetLastError() and GetLastError() [modified] Pin
maizhiming11-Jun-07 10:15
maizhiming11-Jun-07 10:15 
AnswerRe: strerror() for WSAGetLastError() and GetLastError() Pin
David Crow11-Jun-07 10:45
David Crow11-Jun-07 10:45 
Questionproblem [modified] Pin
Force Code11-Jun-07 10:09
Force Code11-Jun-07 10:09 
AnswerRe: problem Pin
Matthew Faithfull11-Jun-07 11:00
Matthew Faithfull11-Jun-07 11:00 
Questionretrieve executable path by hwnd Pin
Giorgi Dalakishvili11-Jun-07 8:03
mentorGiorgi Dalakishvili11-Jun-07 8:03 
AnswerRe: retrieve executable path by hwnd Pin
Mark Salsbery11-Jun-07 8:41
Mark Salsbery11-Jun-07 8:41 
For NT 4.0+ this combination of APIs may help...
#include <psapi.h>
 ...
 
// Shown without error handling..
 
DWORD dwProcessId;
::GetWindowThreadProcessId(hwnd, &dwProcessId);
 
HANDLE hProcess = ::OpenProcess(PROCESS_VM_READ | PROCESS_QUERY_INFORMATION, FALSE, dwProcessId);
 
TCHAR szPathname[MAX_PATH];
::GetModuleFileNameEx(hProcess, NULL, szPathname, MAX_PATH * sizeof(TCHAR));
 
::CloseHandle(hProcess);










"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder

GeneralRe: retrieve executable path by hwnd Pin
Giorgi Dalakishvili11-Jun-07 8:52
mentorGiorgi Dalakishvili11-Jun-07 8:52 
GeneralRe: retrieve executable path by hwnd Pin
Mark Salsbery11-Jun-07 8:55
Mark Salsbery11-Jun-07 8:55 
GeneralRe: retrieve executable path by hwnd Pin
Mark Salsbery11-Jun-07 9:09
Mark Salsbery11-Jun-07 9:09 
GeneralRe: retrieve executable path by hwnd Pin
Giorgi Dalakishvili11-Jun-07 9:19
mentorGiorgi Dalakishvili11-Jun-07 9:19 
GeneralRe: retrieve executable path by hwnd Pin
Mark Salsbery11-Jun-07 9:22
Mark Salsbery11-Jun-07 9:22 
QuestionAutomatically upgrade firmware for home routers Pin
capulett11-Jun-07 6:25
capulett11-Jun-07 6:25 
QuestionRe: Automatically upgrade firmware for home routers Pin
David Crow11-Jun-07 6:39
David Crow11-Jun-07 6:39 
AnswerRe: Automatically upgrade firmware for home routers Pin
capulett11-Jun-07 7:03
capulett11-Jun-07 7:03 
QuestionExport File to Excel with CSpreadSheet Class Pin
mikobi11-Jun-07 4:55
mikobi11-Jun-07 4:55 
QuestionRe: Export File to Excel with CSpreadSheet Class Pin
David Crow11-Jun-07 6:05
David Crow11-Jun-07 6:05 
QuestionEdit control Pin
tom groezer11-Jun-07 4:47
tom groezer11-Jun-07 4:47 
QuestionRe: Edit control Pin
David Crow11-Jun-07 6:02
David Crow11-Jun-07 6:02 
AnswerRe: Edit control Pin
tom groezer11-Jun-07 6:08
tom groezer11-Jun-07 6:08 
QuestionRe: Edit control Pin
David Crow11-Jun-07 6:22
David Crow11-Jun-07 6:22 
AnswerRe: Edit control Pin
tom groezer11-Jun-07 8:29
tom groezer11-Jun-07 8:29 
GeneralRe: Edit control Pin
David Crow11-Jun-07 8:35
David Crow11-Jun-07 8:35 
GeneralRe: Edit control Pin
tom groezer11-Jun-07 21:04
tom groezer11-Jun-07 21:04 

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.