Click here to Skip to main content
15,890,690 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Question__non_rtti_object Pin
mostafa_pasha2-Jan-07 10:46
mostafa_pasha2-Jan-07 10:46 
QuestionIP TO COUNTRY Pin
Daniel Kanev2-Jan-07 8:32
Daniel Kanev2-Jan-07 8:32 
AnswerRe: IP TO COUNTRY Pin
Graham Bradshaw2-Jan-07 8:58
Graham Bradshaw2-Jan-07 8:58 
AnswerRe: IP TO COUNTRY Pin
ThatsAlok2-Jan-07 18:42
ThatsAlok2-Jan-07 18:42 
QuestionHow to -- get a pointer to INetConnectionCommonUi in netcon.h Pin
werpa2-Jan-07 6:14
werpa2-Jan-07 6:14 
Questionwhat is the meaning of this expression int *(*table())[30]; Pin
Ayman Mashal2-Jan-07 4:31
Ayman Mashal2-Jan-07 4:31 
AnswerRe: what is the meaning of this expression int *(*table())[30]; Pin
David Crow2-Jan-07 8:16
David Crow2-Jan-07 8:16 
AnswerRe: what is the meaning of this expression int *(*table())[30]; Pin
werpa2-Jan-07 8:50
werpa2-Jan-07 8:50 
This is ultimately a function declaration.

It states that the function table() will return a pointer to an array of 30 pointers to int.

Here is an example using an array of 3 pointers to int:

int *(*oops())[3];<br />
<br />
int main(int argc, char* argv[])<br />
{<br />
	int *x[3];<br />
	int *(*z)[3];<br />
	z = &x;<br />
<br />
	int *a[3];<br />
	int *(*b)[3];<br />
	b = &a;<br />
	b = oops();<br />
<br />
	return 0;<br />
}<br />
<br />
int *(*oops())[3]<br />
{<br />
	int m = 0;<br />
	int n = 1;<br />
	int p = 2;<br />
	int *a[3];<br />
	a[0] = &m;<br />
	a[1] = &n;<br />
	a[2] = &p;<br />
	return &a;<br />
}

GeneralRe: what is the meaning of this expression int *(*table())[30]; Pin
John R. Shaw2-Jan-07 10:26
John R. Shaw2-Jan-07 10:26 
AnswerRe: what is the meaning of this expression int *(*table())[30]; Pin
Michael Dunn2-Jan-07 15:04
sitebuilderMichael Dunn2-Jan-07 15:04 
GeneralRe: what is the meaning of this expression int *(*table())[30]; Pin
Mark Salsbery2-Jan-07 15:17
Mark Salsbery2-Jan-07 15:17 
AnswerRe: what is the meaning of this expression int *(*table())[30]; Pin
Ayman Mashal3-Jan-07 20:12
Ayman Mashal3-Jan-07 20:12 
GeneralRe: what is the meaning of this expression int *(*table())[30]; Pin
werpa5-Jan-07 8:46
werpa5-Jan-07 8:46 
Questionchar and int mixed array repeat output ! Pin
davvid2-Jan-07 4:10
davvid2-Jan-07 4:10 
AnswerRe: char and int mixed array repeat output ! Pin
CPallini2-Jan-07 4:28
mveCPallini2-Jan-07 4:28 
AnswerRe: char and int mixed array repeat output ! Pin
John R. Shaw2-Jan-07 11:14
John R. Shaw2-Jan-07 11:14 
QuestionDetecting GUI events Pin
narada1502-Jan-07 3:08
narada1502-Jan-07 3:08 
AnswerRe: Detecting GUI events Pin
CPallini2-Jan-07 3:24
mveCPallini2-Jan-07 3:24 
GeneralRe: Detecting GUI events Pin
narada1503-Jan-07 8:48
narada1503-Jan-07 8:48 
QuestionMFC Message map routing question Pin
Arris742-Jan-07 2:42
Arris742-Jan-07 2:42 
AnswerRe: MFC Message map routing question Pin
S Douglas2-Jan-07 23:24
professionalS Douglas2-Jan-07 23:24 
GeneralRe: MFC Message map routing question Pin
Arris743-Jan-07 7:32
Arris743-Jan-07 7:32 
QuestionConvert project VC++6.0 to VC++.Net Pin
Atul232-Jan-07 2:20
Atul232-Jan-07 2:20 
AnswerRe: Convert project VC++6.0 to VC++.Net Pin
Cristian Amarie2-Jan-07 6:41
Cristian Amarie2-Jan-07 6:41 
AnswerRe: Convert project VC++6.0 to VC++.Net [modified] Pin
S Douglas2-Jan-07 23:32
professionalS Douglas2-Jan-07 23:32 

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.