I have this piece of code below and the problem is of checking whether the pointer contents are valid or not....
Iunknown * pUnk = (Iunknown *) GetWindowLongPtr(hWnd,0);
pUnk->GetView();
my code is crashing at line #2 ie.punk->GetView();
This is because its contents are not valid....
how to check for the validity of the contents of the pUnk pointer...
Iunknown * pUnk = (Iunknown *) GetWindowLongPtr(hWnd,0);
pUnk->GetView();
my code is crashing at line #2 ie.punk->GetView();
This is because its contents are not valid....
how to check for the validity of the contents of the pUnk pointer...