Click here to Skip to main content
15,910,603 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralDetect current language Pin
Anonymous8-Sep-04 3:33
Anonymous8-Sep-04 3:33 
GeneralRe: Detect current language Pin
Ivan Cachicatari8-Sep-04 5:43
Ivan Cachicatari8-Sep-04 5:43 
GeneralRe: Detect current language Pin
David Crow8-Sep-04 5:47
David Crow8-Sep-04 5:47 
GeneralRe: Detect current language Pin
Moak24-Sep-04 1:33
Moak24-Sep-04 1:33 
Generalabout using vmr9 Pin
yingkou8-Sep-04 3:29
yingkou8-Sep-04 3:29 
QuestionHow can I push out my app Pin
Larsson8-Sep-04 2:18
Larsson8-Sep-04 2:18 
Generalconvert bmp to 2-D array Pin
hanivoo8-Sep-04 1:49
hanivoo8-Sep-04 1:49 
GeneralRe: convert bmp to 2-D array Pin
Bob Stanneveld8-Sep-04 6:29
Bob Stanneveld8-Sep-04 6:29 
Hi,

Normally bitmaps are stored in 1D arrays.
For exemple you have 640x480 bitmap, the way to get to a pixel would be like this:
<br />
char bitmap[640 * 480];<br />
<br />
// pixel xy]<br />
bitmap[x+(480*y)] = value;<br />


If you want to convert the exemple above to a 2D array, you can do the following:
<br />
char bitmap[640*480];<br />
char bitmap2D[640][480];<br />
<br />
// convert<br />
for( int y = 0; x < 480; y++ )<br />
  for( int x = 0; x < 640; x++ )<br />
    bitmap2D[y][x] = bitmap[x + 480 * y];<br />


Hope this helps..
GeneralCannot find header file compile time Pin
intrigued8-Sep-04 1:40
intrigued8-Sep-04 1:40 
GeneralRe: Cannot find header file compile time Pin
P-Rex8-Sep-04 3:19
P-Rex8-Sep-04 3:19 
GeneralRe: A problem with multi line edit box and check box Pin
David Crow8-Sep-04 5:49
David Crow8-Sep-04 5:49 
GeneralBit Fields - Again Pin
sweep1238-Sep-04 1:29
sweep1238-Sep-04 1:29 
GeneralRe: Bit Fields - Again Pin
Ryan Binns8-Sep-04 4:16
Ryan Binns8-Sep-04 4:16 
GeneralODBC Driver for Access - database password Pin
Member 12584918-Sep-04 1:23
Member 12584918-Sep-04 1:23 
GeneralRe: ODBC Driver for Access - database password Pin
Arsalan Malik8-Sep-04 1:53
Arsalan Malik8-Sep-04 1:53 
GeneralRe: ODBC Driver for Access - database password Pin
Member 12584918-Sep-04 2:34
Member 12584918-Sep-04 2:34 
GeneralRe: ODBC Driver for Access - database password Pin
Ryan Binns8-Sep-04 4:21
Ryan Binns8-Sep-04 4:21 
GeneralRe: ODBC Driver for Access - database password Pin
Member 12584918-Sep-04 21:12
Member 12584918-Sep-04 21:12 
Generalcopy selected text to my application Pin
pma8-Sep-04 0:56
pma8-Sep-04 0:56 
GeneralRe: copy selected text to my application Pin
jan larsen8-Sep-04 1:26
jan larsen8-Sep-04 1:26 
GeneralRe: copy selected text to my application Pin
pma8-Sep-04 2:04
pma8-Sep-04 2:04 
GeneralRe: copy selected text to my application Pin
jan larsen8-Sep-04 3:45
jan larsen8-Sep-04 3:45 
GeneralRe: copy selected text to my application Pin
pma8-Sep-04 3:52
pma8-Sep-04 3:52 
GeneralKind of ListCtrl with two columns Pin
jensall8-Sep-04 0:27
jensall8-Sep-04 0:27 
GeneralRe: Kind of ListCtrl with two columns Pin
David Crow8-Sep-04 5:52
David Crow8-Sep-04 5:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.