Click here to Skip to main content
15,911,789 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CtlColor question Pin
Stuart Dootson16-Mar-09 10:51
professionalStuart Dootson16-Mar-09 10:51 
QuestionWanted: Eclipse C++ projects Pin
-+- Beth Mackenzie -+-16-Mar-09 7:54
-+- Beth Mackenzie -+-16-Mar-09 7:54 
AnswerRe: Wanted: Eclipse C++ projects Pin
Stuart Dootson16-Mar-09 8:50
professionalStuart Dootson16-Mar-09 8:50 
GeneralRe: Wanted: Eclipse C++ projects Pin
-+- Beth Mackenzie -+-16-Mar-09 22:51
-+- Beth Mackenzie -+-16-Mar-09 22:51 
Questionhow to find multiple instances of same top-level class name Pin
FISH78616-Mar-09 6:48
FISH78616-Mar-09 6:48 
AnswerRe: how to find multiple instances of same top-level class name Pin
«_Superman_»16-Mar-09 7:12
professional«_Superman_»16-Mar-09 7:12 
GeneralRe: how to find multiple instances of same top-level class name Pin
FISH78616-Mar-09 7:19
FISH78616-Mar-09 7:19 
GeneralRe: how to find multiple instances of same top-level class name Pin
FISH78617-Mar-09 17:35
FISH78617-Mar-09 17:35 
Superman, I am stuck between using EnumWindows and a hook. I have tried both. Here are my problems with both. I was avoiding to use hook because i am not as provicient yet to use, however if I can get it going with what I have so far, It will save me frustrations in the future. The reason I am avoiding it is I for now is I only need it to get my window captions and window positions of all windows open based on classname. I am way behind in this. If you can help with either I will appreciate it.
Hook Problem.
The Dll compiles fine. Not sure how to test it yet on its own.
User Inteface that goes with the hook compiles fine own its own and runs fine. However when I compile and run it with the header files included for the hook dll. I get a run time execution error. I changed the project to make it as a dependency when compiling. When I do that the user app is looking for a hookdll.lib file which I believe is for the dll's export which I can't find and not sure what options to change, even though I have the __desc(....dllexport) in there. So I am stuck there.
EnumWindows Problem.

I am using trying to use it when the user clicks the command button in the user application.
This is what I have so far and cant compile once i have this in the app.
void CUserAppDlg::OnBnClickedButton1()
{
	::EnumWindows(MyEnumProc, 0);
////Not sure if this is right?
	
	// TODO: Add your control notification handler code here
}
/////////
Not sure How to declare this. Getting compile errors on this too.

I have it in the app's header file in the public section as

BOOL CALLBACK MyEnumProc(HWND hWnd, LPARAM lParam);

the following is in the app's.cpp

BOOL CALLBACK MyEnumProc(HWND hWnd, LPARAM lParam)
{
      char title[500];
      GetWindowText(hWnd, title, sizeof(title)); 
      return true;

}

I sincerely appreciate all the help you have provided me with.

once again thanks a million.
QuestionRe: how to find multiple instances of same top-level class name Pin
«_Superman_»17-Mar-09 23:54
professional«_Superman_»17-Mar-09 23:54 
AnswerRe: how to find multiple instances of same top-level class name Pin
FISH78618-Mar-09 2:21
FISH78618-Mar-09 2:21 
AnswerRe: how to find multiple instances of same top-level class name Pin
FISH78618-Mar-09 3:32
FISH78618-Mar-09 3:32 
QuestionCWinThread Question Pin
ForNow16-Mar-09 6:20
ForNow16-Mar-09 6:20 
AnswerRe: CWinThread Question Pin
«_Superman_»16-Mar-09 7:14
professional«_Superman_»16-Mar-09 7:14 
GeneralRe: CWinThread Question Pin
bulg16-Mar-09 7:33
bulg16-Mar-09 7:33 
GeneralRe: CWinThread Question Pin
ForNow16-Mar-09 12:55
ForNow16-Mar-09 12:55 
GeneralRe: CWinThread Question Pin
«_Superman_»16-Mar-09 18:34
professional«_Superman_»16-Mar-09 18:34 
QuestionCMDIChildWnd problem Pin
prithaa16-Mar-09 5:39
prithaa16-Mar-09 5:39 
QuestionConflation algorithm [modified] Pin
lokesh143.surana16-Mar-09 4:12
lokesh143.surana16-Mar-09 4:12 
AnswerRe: Conflation algorithm Pin
CPallini16-Mar-09 4:20
mveCPallini16-Mar-09 4:20 
AnswerRe: Conflation algorithm Pin
Cedric Moonen16-Mar-09 4:44
Cedric Moonen16-Mar-09 4:44 
AnswerRe: Conflation algorithm Pin
Michael Schubert16-Mar-09 4:47
Michael Schubert16-Mar-09 4:47 
QuestionNeed help to create DirectShow filter to read RGB 32/RGB 24 bit pixels Pin
Andy Rama16-Mar-09 3:37
Andy Rama16-Mar-09 3:37 
AnswerRe: Need help to create DirectShow filter to read RGB 32/RGB 24 bit pixels Pin
Code-o-mat16-Mar-09 5:13
Code-o-mat16-Mar-09 5:13 
GeneralRe: Need help to create DirectShow filter to read RGB 32/RGB 24 bit pixels Pin
Andy Rama16-Mar-09 22:20
Andy Rama16-Mar-09 22:20 
GeneralRe: Need help to create DirectShow filter to read RGB 32/RGB 24 bit pixels Pin
Code-o-mat17-Mar-09 0:55
Code-o-mat17-Mar-09 0:55 

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.