They are probably the same type, so try just casting:
    
    
    var wprc = cast[WNDPROC](GetWindowLongPtr(hCtl,GWL_WNDPROC))
    

Reply via email to