i'm converting the VB6 DIB code to C\C++ from: http://www.tannerhelland.com/42/vb-graphics-programming-3/
V – Using DIB Sections
but doing by steps...
how can i convert:

ReDim ImageData(0 To 2, 0 To bm.bmWidth - 1, 0 To bm.bmHeight - 1)

to C\C++?
for then use it on GetDIBits() function

The clue is in the prior line.

Dim ImageData() as Byte

Forget ReDim and declare the array of sufficent size.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.