Hello all,

I have some code using the SetDIBits function:

http://msdn.microsoft.com/en-us/libr...(v=vs.85).aspx

and I was wondering if I could pass an stl::vector of vectors to the the const VOID *lpvBits argument.

Currently I am passing it a:

Code:
DWORD bits[100][100];
...
::SetDIBits(dc.m_hDC, bitmap, 0, dyextent, &bits, &bmi_,0);
and this works. However when I try this:

Code:
vector<vector<DWORD> > bits = vector<vector<DWORD> >(100, vector<DWORD>(100)); 
...
::SetDIBits(dc.m_hDC, bitmap, 0, dyextent, &bits[0], &bmi_,0);
This does not work. Anyone know what I am doing wrong?

Thanks!
Ellay K.