error C2440: '=' : cannot convert from 'HWND *' to 'HWND'

Jul 9, 2015 at 12:32pm
I am trying to create 2D array of handles

1
2
3
HWND * handles = new HWND*[count];
for(int i = 0; i < count; ++i)
  handles[i] = new HWND[columns];


I have error:
error C2440: '=' : cannot convert from 'HWND *' to 'HWND'

How to fix this?
Jul 9, 2015 at 12:39pm
Line 1 should be: HWND ** handles = new HWND*[count]; // Note: **
Jul 9, 2015 at 12:49pm
Thanks
Topic archived. No new replies allowed.