Click here to Skip to main content
16,004,901 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: unable to run exe Pin
ennm424-Dec-06 18:56
ennm424-Dec-06 18:56 
GeneralRe: unable to run exe Pin
Waldermort24-Dec-06 20:24
Waldermort24-Dec-06 20:24 
GeneralRe: unable to run exe Pin
S Douglas25-Dec-06 20:05
professionalS Douglas25-Dec-06 20:05 
AnswerRe: unable to run exe Pin
Mark Salsbery25-Dec-06 6:59
Mark Salsbery25-Dec-06 6:59 
Questionmupad problem Pin
vasfar24-Dec-06 11:05
vasfar24-Dec-06 11:05 
AnswerRe: mupad problem Pin
Paul Conrad25-Dec-06 19:02
professionalPaul Conrad25-Dec-06 19:02 
QuestionMonitor name of the application that owns currently active window Pin
852y3agnna24-Dec-06 8:52
852y3agnna24-Dec-06 8:52 
AnswerRe: Monitor name of the application that owns currently active window Pin
Cristian Amarie25-Dec-06 5:46
Cristian Amarie25-Dec-06 5:46 
Retrieval:
- GetWindowThreadProcessId and obtain process ID;
- pass the ID to OpenProcess and obtain the process HANDLE (PROCESS_QUERY_INFORMATION will suffice);
- call GetProcessImageFileName on process handle to get full path of the executable file.

Monitoring (without polling):
- implement a global hook in a dll, with SetWindowsHookEx and WH_CALLWNDPROC(RET) or maybe WH_CBT; inside hook procedure, do nothing more than look for message(s) WM_ACTIVATE, WM_ACTIVATEAPP and whatever other messages you may need to figure when active window is changing; send the appropriate notification to the executable on the next point;
- implement an executable to process the notification from the hook dll;
- use a communication mechanism (named pipe for example, or even mailslots since hook dll and executable are local); the dll will write and the exe will read; anything else will do, just be careful to not break the hook dll.
QuestionDrawing canvas using MFC Pin
nestorr24-Dec-06 7:56
nestorr24-Dec-06 7:56 
AnswerRe: Drawing canvas using MFC Pin
Mark Salsbery24-Dec-06 8:42
Mark Salsbery24-Dec-06 8:42 
AnswerRe: Drawing canvas using MFC Pin
jk chan25-Dec-06 23:03
jk chan25-Dec-06 23:03 
QuestionDisplay tiff images n scale them Pin
K Sunita24-Dec-06 7:14
K Sunita24-Dec-06 7:14 
AnswerRe: Display tiff images n scale them Pin
Mark Salsbery24-Dec-06 8:22
Mark Salsbery24-Dec-06 8:22 
AnswerRe: Display tiff images n scale them Pin
CPallini24-Dec-06 8:22
mveCPallini24-Dec-06 8:22 
QuestionLoading custom dialogs from plug-in MFC DLL's Pin
Chen Ganir24-Dec-06 7:12
Chen Ganir24-Dec-06 7:12 
AnswerRe: Loading custom dialogs from plug-in MFC DLL's Pin
Mark Salsbery24-Dec-06 7:39
Mark Salsbery24-Dec-06 7:39 
QuestionRe: Loading custom dialogs from plug-in MFC DLL's Pin
Chen Ganir24-Dec-06 7:42
Chen Ganir24-Dec-06 7:42 
AnswerRe: Loading custom dialogs from plug-in MFC DLL's Pin
Mark Salsbery24-Dec-06 8:09
Mark Salsbery24-Dec-06 8:09 
GeneralRe: Loading custom dialogs from plug-in MFC DLL's Pin
Chen Ganir24-Dec-06 8:24
Chen Ganir24-Dec-06 8:24 
GeneralRe: Loading custom dialogs from plug-in MFC DLL's Pin
Mark Salsbery24-Dec-06 8:41
Mark Salsbery24-Dec-06 8:41 
GeneralRe: Loading custom dialogs from plug-in MFC DLL's Pin
Chen Ganir24-Dec-06 8:58
Chen Ganir24-Dec-06 8:58 
QuestionObject or class member(s) as volatile Pin
bob1697224-Dec-06 6:09
bob1697224-Dec-06 6:09 
Questionwhat is correct way to update custom dialogbars in document/view? Pin
gor24-Dec-06 4:16
gor24-Dec-06 4:16 
AnswerRe: what is correct way to update custom dialogbars in document/view? Pin
Mark Salsbery24-Dec-06 6:13
Mark Salsbery24-Dec-06 6:13 
AnswerRe: what is correct way to update custom dialogbars in document/view? Pin
Cliff Hatch27-Dec-06 1:54
Cliff Hatch27-Dec-06 1:54 

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.