Pass a pointer to a proc as an argument
        Posted  
        
            by user146780
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by user146780
        
        
        
        Published on 2010-05-16T12:25:21Z
        Indexed on 
            2010/05/16
            12:30 UTC
        
        
        Read the original article
        Hit count: 231
        
c++
I want to pass a pointer to a procedure in c++. I tried passing this LRESULT(*)(HWND, UINT, WPARAM, LPARAM) prc but it didn't work. How is this done?
Thanks
HWND OGLFRAME::create(HWND parent, LRESULT(*)(HWND, UINT, WPARAM, LPARAM) prc)
{
    if(framehWnd != NULL)
    {
        return framehWnd;
        ZeroMemory(&rwc,sizeof(rwc));
    }
}
By "it didn't work" I mean it's a syntax error.
© Stack Overflow or respective owner