Click here to Skip to main content
15,892,643 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionsocket programming Pin
code664-May-06 19:11
code664-May-06 19:11 
AnswerRe: socket programming Pin
Ganesh_T4-May-06 19:40
Ganesh_T4-May-06 19:40 
QuestionUSB Communication in VC++?? Pin
raghuji.rao4-May-06 19:01
raghuji.rao4-May-06 19:01 
AnswerRe: USB Communication in VC++?? Pin
Hamid_RT4-May-06 19:20
Hamid_RT4-May-06 19:20 
AnswerRe: USB Communication in VC++?? Pin
Cedric Moonen4-May-06 20:20
Cedric Moonen4-May-06 20:20 
QuestionFull details about BHO in VC++ MFC Pin
captaincse4-May-06 18:36
captaincse4-May-06 18:36 
AnswerRe: Full details about BHO in VC++ MFC Pin
Abhi Lahare4-May-06 19:05
Abhi Lahare4-May-06 19:05 
Question2D array dynamic memery location and pass to function Pin
mrby1234-May-06 18:31
mrby1234-May-06 18:31 
unsigned int* link[200];
float* delms[200];
float* sds[200];
float* delmih[200];
float* sdih[200];

for (int i=0;i<200;i++)
{
link[i]=new unsigned int[4];
delms[i]=new float[4];
sds[i]=new float[4];
delmih[i]=new float[4];
sdih[i]=new float[4];
}
......................................codes initialized the above arrays with values

dlay_tme(delms,sds,delmih,sdih,nlinks,ndih,link,time,time_var);
//

//
delete [] *link;
delete [] *delms;
delete [] *sds;
delete [] *delmih;
delete [] *sdih;

I got the following error message, How to pass 2D dynamic array to the function ?? Please correct.

Thanks

blst_vi_procDlg.cpp
c:\blast_vib_proc_model_from_d\blst_vi_procdlg.cpp(522) : error C2664: 'void __thiscall CBlast_vib_procDlg::dlay_tme(float [][4],float [][4],float [][4],float [][4],unsigned int [],unsigned int [],unsigned int [][4],float [],float [])' : cannot
convert parameter 1 from 'float *[200]' to 'float [][4]'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
feature_display.cpp
Error executing cl.exe.

blast_vib_proc.exe - 1 error(s), 0 warning(s)
AnswerRe: 2D array dynamic memery location and pass to function Pin
Steve Echols4-May-06 19:46
Steve Echols4-May-06 19:46 
AnswerRe: Linker Error!!!! Pin
Justin Tay4-May-06 18:18
Justin Tay4-May-06 18:18 
Questionuse a const variable as opposed to #define - Multiple const objects created Pin
yccheok4-May-06 17:22
yccheok4-May-06 17:22 
AnswerRe: use a const variable as opposed to #define - Multiple const objects created Pin
George L. Jackson4-May-06 17:26
George L. Jackson4-May-06 17:26 
GeneralRe: use a const variable as opposed to #define - Multiple const objects created Pin
yccheok4-May-06 19:51
yccheok4-May-06 19:51 
AnswerRe: use a const variable as opposed to #define - Multiple const objects created Pin
Nibu babu thomas4-May-06 20:11
Nibu babu thomas4-May-06 20:11 
QuestionStop the looping...(urgent) Pin
makaveli_074-May-06 16:50
makaveli_074-May-06 16:50 
AnswerRe: Stop the looping...(urgent) Pin
Stephen Hewitt4-May-06 17:02
Stephen Hewitt4-May-06 17:02 
GeneralRe: Stop the looping...(urgent) Pin
makaveli_074-May-06 17:20
makaveli_074-May-06 17:20 
AnswerRe: Stop the looping...(urgent) Pin
Aqueel4-May-06 17:31
Aqueel4-May-06 17:31 
GeneralRe: Stop the looping...(urgent) Pin
makaveli_074-May-06 17:43
makaveli_074-May-06 17:43 
GeneralRe: Stop the looping...(urgent) Pin
Aqueel4-May-06 17:53
Aqueel4-May-06 17:53 
GeneralRe: Stop the looping...(urgent) Pin
makaveli_074-May-06 17:56
makaveli_074-May-06 17:56 
GeneralRe: Stop the looping...(urgent) Pin
Aqueel4-May-06 18:09
Aqueel4-May-06 18:09 
GeneralRe: Stop the looping...(urgent) Pin
Aqueel4-May-06 18:12
Aqueel4-May-06 18:12 
GeneralRe: Stop the looping...(urgent) Pin
makaveli_074-May-06 18:42
makaveli_074-May-06 18:42 
GeneralRe: Stop the looping...(urgent) Pin
Stephen Hewitt4-May-06 18:13
Stephen Hewitt4-May-06 18:13 

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.