Click here to Skip to main content
15,912,897 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: FLOAT/STRING conversions Pin
Joaquín M López Muñoz13-Oct-02 9:21
Joaquín M López Muñoz13-Oct-02 9:21 
GeneralRe: FLOAT/STRING conversions Pin
Atlence14-Oct-02 1:37
Atlence14-Oct-02 1:37 
GeneralRe: FLOAT/STRING conversions Pin
Jason Henderson13-Oct-02 17:14
Jason Henderson13-Oct-02 17:14 
GeneralRe: FLOAT/STRING conversions Pin
jhwurmbach14-Oct-02 1:35
jhwurmbach14-Oct-02 1:35 
GeneralQuestion about how to get the Control's ID in a message handler Pin
Matias13-Oct-02 7:37
Matias13-Oct-02 7:37 
GeneralRe: Question about how to get the Control's ID in a message handler Pin
Joaquín M López Muñoz13-Oct-02 8:32
Joaquín M López Muñoz13-Oct-02 8:32 
GeneralRe: Question about how to get the Control's ID in a message handler Pin
Matias13-Oct-02 11:06
Matias13-Oct-02 11:06 
GeneralGet the Class Name Pin
Gaurika Wijeratne13-Oct-02 7:21
Gaurika Wijeratne13-Oct-02 7:21 
Hi Friends


I want the check the class name of the window being created with a given string. Or to write all class names to a file. I am using WH_CBT Hook..

But the following code is giving a memory cant read error. Any idea?


Regads.
Gaurika.




LRESULT CALLBACK FindToolbarProc(int nCode, WPARAM wParam, LPARAM lParam)
{
// watch window creation:
if (nCode == HCBT_CREATEWND)
{
CBT_CREATEWND* pcw = (CBT_CREATEWND*)lParam;

// watch for Notepad creation, set toolbar name
if (pcw->lpcs->lpszClass &&
0 != strstr(pcw->lpcs->lpszClass, "Notepad")) //
{
Beep(1000,100); // Just to Identify…..
}
}

return CallNextHookEx(g_hkCBT, nCode, wParam, lParam);
}



Gaurika Wijeratne. // www.gaurika.com

GeneralRe: Get the Class Name Pin
pankajdaga13-Oct-02 10:12
pankajdaga13-Oct-02 10:12 
GeneralRe: Get the Class Name Pin
alex.barylski13-Oct-02 16:30
alex.barylski13-Oct-02 16:30 
GeneralRe: Get the Class Name Pin
alex.barylski13-Oct-02 16:57
alex.barylski13-Oct-02 16:57 
GeneralThreads problem ... Pin
BlackKettle13-Oct-02 5:16
BlackKettle13-Oct-02 5:16 
GeneralRe: Threads problem ... Pin
Stephane Rodriguez.13-Oct-02 5:36
Stephane Rodriguez.13-Oct-02 5:36 
GeneralRe: Threads problem ... Pin
BlackKettle13-Oct-02 6:43
BlackKettle13-Oct-02 6:43 
GeneralRe: Threads problem ... Pin
Al Giv.13-Oct-02 7:08
sussAl Giv.13-Oct-02 7:08 
GeneralShare variable into DLL Pin
Raphael Kindt13-Oct-02 5:06
Raphael Kindt13-Oct-02 5:06 
GeneralRe: Share variable into DLL Pin
Stephane Rodriguez.13-Oct-02 5:40
Stephane Rodriguez.13-Oct-02 5:40 
GeneralRe: Share variable into DLL Pin
Joaquín M López Muñoz13-Oct-02 8:48
Joaquín M López Muñoz13-Oct-02 8:48 
GeneralDumb question... Copying derived class from base class pointer Pin
work_to_live13-Oct-02 3:44
work_to_live13-Oct-02 3:44 
GeneralRe: Dumb question... Copying derived class from base class pointer Pin
Nish Nishant13-Oct-02 4:18
sitebuilderNish Nishant13-Oct-02 4:18 
GeneralRe: Dumb question... Copying derived class from base class pointer Pin
Nish Nishant13-Oct-02 4:23
sitebuilderNish Nishant13-Oct-02 4:23 
GeneralRe: Dumb question... Copying derived class from base class pointer Pin
Joaquín M López Muñoz13-Oct-02 4:29
Joaquín M López Muñoz13-Oct-02 4:29 
GeneralMySQL Inserting data Pin
Anonymous13-Oct-02 3:20
Anonymous13-Oct-02 3:20 
GeneralRe: MySQL Inserting data Pin
Nish Nishant13-Oct-02 3:31
sitebuilderNish Nishant13-Oct-02 3:31 
GeneralRe: MySQL Inserting data Pin
Anonymous13-Oct-02 10:45
Anonymous13-Oct-02 10:45 

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.