Click here to Skip to main content
15,919,879 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionhow to store a RGB bitmap image in to an 2d byte array and how to display that image from array Pin
sravu255-May-10 16:23
sravu255-May-10 16:23 
AnswerRe: how to store a RGB bitmap image in to an 2d byte array and how to display that image from array Pin
enhzflep5-May-10 17:21
enhzflep5-May-10 17:21 
QuestionRicheditctrl displayed with Selection on Pin
ForNow5-May-10 15:07
ForNow5-May-10 15:07 
AnswerRe: Richeditctrl displayed with Selection on Pin
stebich6-May-10 2:12
professionalstebich6-May-10 2:12 
GeneralRe: Richeditctrl displayed with Selection on Pin
ForNow6-May-10 6:39
ForNow6-May-10 6:39 
Questionbool & BOOL Pin
dipuks5-May-10 12:21
dipuks5-May-10 12:21 
AnswerRe: bool & BOOL Pin
«_Superman_»5-May-10 12:35
professional«_Superman_»5-May-10 12:35 
AnswerRe: bool & BOOL Pin
Stephen Hewitt5-May-10 14:08
Stephen Hewitt5-May-10 14:08 
AnswerRe: BOOL and bool Pin
wangningyu5-May-10 15:25
wangningyu5-May-10 15:25 
Questiondeclare, define, and call of a function passing two dimensional arrays [modified] Pin
mrby1235-May-10 10:26
mrby1235-May-10 10:26 
AnswerRe: declare, define, and call of a function passing two dimensional arrays Pin
«_Superman_»5-May-10 12:12
professional«_Superman_»5-May-10 12:12 
GeneralRe: declare, define, and call of a function passing two dimensional arrays Pin
mrby1235-May-10 12:36
mrby1235-May-10 12:36 
QuestionRe: declare, define, and call of a function passing two dimensional arrays Pin
«_Superman_»5-May-10 12:38
professional«_Superman_»5-May-10 12:38 
AnswerRe: declare, define, and call of a function passing two dimensional arrays Pin
mrby1235-May-10 12:41
mrby1235-May-10 12:41 
GeneralRe: declare, define, and call of a function passing two dimensional arrays Pin
«_Superman_»5-May-10 12:47
professional«_Superman_»5-May-10 12:47 
GeneralRe: declare, define, and call of a function passing two dimensional arrays [modified] Pin
mrby1235-May-10 12:58
mrby1235-May-10 12:58 
GeneralRe: declare, define, and call of a function passing two dimensional arrays Pin
Tim Craig5-May-10 14:42
Tim Craig5-May-10 14:42 
GeneralRe: declare, define, and call of a function passing two dimensional arrays Pin
mrby1235-May-10 13:31
mrby1235-May-10 13:31 
GeneralRe: declare, define, and call of a function passing two dimensional arrays Pin
Shi,Yudi5-May-10 16:24
Shi,Yudi5-May-10 16:24 
GeneralRe: declare, define, and call of a function passing two dimensional arrays Pin
mrby1235-May-10 18:42
mrby1235-May-10 18:42 
GeneralRe: declare, define, and call of a function passing two dimensional arrays Pin
Shi,Yudi7-May-10 18:34
Shi,Yudi7-May-10 18:34 
GeneralRe: declare, define, and call of a function passing two dimensional arrays Pin
mrby1236-May-10 7:05
mrby1236-May-10 7:05 
AnswerRe: declare, define, and call of a function passing two dimensional arrays Pin
David Crow6-May-10 3:13
David Crow6-May-10 3:13 
GeneralRe: declare, define, and call of a function passing two dimensional arrays Pin
mrby1236-May-10 7:19
mrby1236-May-10 7:19 
Hi Guys, It works!

Here are codes to share with you and thanks. In particular, DavidCrow and _Superman_:

float **tim_var;

tim_var = new float*[1000]; <<----------
|
for (int x = 0; x < 1000; x++) |
{ |
tim_var[x] = new float[6]; <<----- |
| |
for (int y = 0; y < 6; y++) | |
tim_var[x][y] = 0.0; | |
} | |
| |
for (x = 0; x < 1000; x++) | |
delete [] tim_var[x]; <<---------- |
|
delete [] tim_var; <<-------------------

Above From: DavidCrow


How to pass 2D array in a function

Declare:
void Cvib_procDlg::delay_time(float *delms[6]);

Define:
void Cvib_procDlg::delay_time(float *delms[6])
{
....}


Call:

delay_time(delms);

From:
«_Superman_» I love work. It gives me something to do between weekends.
Questionhow make limit running my program? Pin
Rezame5-May-10 6:05
Rezame5-May-10 6:05 

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.