Click here to Skip to main content
15,902,189 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questioninterpolation subroutine c++ Pin
mrby12312-Mar-10 6:53
mrby12312-Mar-10 6:53 
AnswerRe: interpolation subroutine c++ Pin
Alan Balkany16-Mar-10 3:56
Alan Balkany16-Mar-10 3:56 
QuestionExchange SOAP Contacts Sync Pin
Alexander M.,12-Mar-10 5:19
Alexander M.,12-Mar-10 5:19 
AnswerRe: Exchange SOAP Contacts Sync Pin
Richard MacCutchan12-Mar-10 22:07
mveRichard MacCutchan12-Mar-10 22:07 
QuestionAllocation of (**)[2] [Solved] Pin
xuxiuxun12-Mar-10 4:17
xuxiuxun12-Mar-10 4:17 
AnswerRe: Allocation of (**)[2] Pin
Eugen Podsypalnikov12-Mar-10 4:32
Eugen Podsypalnikov12-Mar-10 4:32 
AnswerRe: Allocation of (**)[2] Pin
Chris Losinger12-Mar-10 4:32
professionalChris Losinger12-Mar-10 4:32 
AnswerRe: Allocation of (**)[2] Pin
xuxiuxun12-Mar-10 15:41
xuxiuxun12-Mar-10 15:41 
Thanks for your reply, Eugen and Chris.
The situation is that I need to put the data inside the functions provided by a library. The prototypes are like this:

<br />
int Output1(float out1[][2]);<br />
int Output2(float out1[][2], float out2[][2]);<br />
int Output3(float out1[][2], float out2[][2], float out3[][2]);<br />
// And so on to Output4(), Output5(), etc., still expanding<br />


According to different cases, I need to call one of these functions in each process. I think it implies that the row and column are varying. How I want to call them is like this:

<br />
float (**coords)[2];<br />
<br />
// After allocation according to different cases,<br />
Output1(coords[0]); // Or,<br />
Output2(coords[0], coords[1]); // and so on...<br />


I have searched on the web and found something like this (what I planned to do if (**)[2] does not work):

<br />
float ***coords;<br />
<br />
// After allocation according to different cases,<br />
Output1((float(*)[2])coords[0]); // Or,<br />
Output2((float(*)[2])coords[0], (float(*)[2])coords[1]); // and so on...<br />

GeneralRe: Allocation of (**)[2] Pin
Richard MacCutchan12-Mar-10 22:06
mveRichard MacCutchan12-Mar-10 22:06 
GeneralRe: Allocation of (**)[2] Pin
xuxiuxun13-Mar-10 0:27
xuxiuxun13-Mar-10 0:27 
GeneralRe: Allocation of (**)[2] Pin
Richard MacCutchan13-Mar-10 10:07
mveRichard MacCutchan13-Mar-10 10:07 
GeneralRe: Allocation of (**)[2] Pin
xuxiuxun13-Mar-10 19:49
xuxiuxun13-Mar-10 19:49 
QuestionMessage Removed Pin
12-Mar-10 4:00
xuxiuxun12-Mar-10 4:00 
AnswerRe: Allocation of (**)[2] Pin
Chris Losinger12-Mar-10 4:14
professionalChris Losinger12-Mar-10 4:14 
GeneralRe: Allocation of (**)[2] Pin
xuxiuxun12-Mar-10 4:25
xuxiuxun12-Mar-10 4:25 
Questionwarning LNK4222: exported symbol 'DllRegisterServer' should not be assigned an ordinal Pin
sashoalm12-Mar-10 2:51
sashoalm12-Mar-10 2:51 
AnswerRe: warning LNK4222: exported symbol 'DllRegisterServer' should not be assigned an ordinal Pin
Eugen Podsypalnikov12-Mar-10 3:02
Eugen Podsypalnikov12-Mar-10 3:02 
GeneralRe: warning LNK4222: exported symbol 'DllRegisterServer' should not be assigned an ordinal Pin
sashoalm12-Mar-10 3:09
sashoalm12-Mar-10 3:09 
QuestionSeven : What Happended To ShellExecute ? Pin
Nicolas MEURET12-Mar-10 2:11
Nicolas MEURET12-Mar-10 2:11 
QuestionRe: Seven : What Happended To ShellExecute ? Pin
sashoalm12-Mar-10 3:23
sashoalm12-Mar-10 3:23 
AnswerRe: Seven : What Happended To ShellExecute ? [modified] Pin
Nicolas MEURET12-Mar-10 4:38
Nicolas MEURET12-Mar-10 4:38 
GeneralRe: Seven : What Happended To ShellExecute ? Pin
sashoalm12-Mar-10 5:27
sashoalm12-Mar-10 5:27 
QuestionHaving different value for a global variable per thread. Pin
Code-o-mat12-Mar-10 1:20
Code-o-mat12-Mar-10 1:20 
AnswerRe: Having different value for a global variable per thread. Pin
sunlin712-Mar-10 1:37
sunlin712-Mar-10 1:37 
GeneralRe: Having different value for a global variable per thread. Pin
Code-o-mat12-Mar-10 1:44
Code-o-mat12-Mar-10 1:44 

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.