Click here to Skip to main content
15,898,035 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Need help with registry Pin
ThatsAlok5-Jan-07 3:01
ThatsAlok5-Jan-07 3:01 
QuestionGS option Pin
rp_suman4-Jan-07 18:18
rp_suman4-Jan-07 18:18 
AnswerRe: GS option Pin
Rajesh R Subramanian4-Jan-07 18:51
professionalRajesh R Subramanian4-Jan-07 18:51 
QuestionATL Service VC 6.0 .. Pin
Sakthiu4-Jan-07 18:00
Sakthiu4-Jan-07 18:00 
AnswerRe: ATL Service VC 6.0 .. Pin
Joan M4-Jan-07 19:42
professionalJoan M4-Jan-07 19:42 
AnswerRe: ATL Service VC 6.0 .. Pin
Joan M4-Jan-07 19:45
professionalJoan M4-Jan-07 19:45 
AnswerRe: ATL Service VC 6.0 .. Pin
Joan M4-Jan-07 19:47
professionalJoan M4-Jan-07 19:47 
QuestionPointer to structure Pin
Vancouver4-Jan-07 12:49
Vancouver4-Jan-07 12:49 
I am using VC++ 6.0

The Visual Studio documentation states unequivocally:

Declarations of pointers to structures and typedefs for structure types can use the structure tag before the structure type is defined

Then

A member cannot be declared to have the type of the structure in which it appears. However, a member can be declared as a pointer to the structure type in which it appears as long as the structure type has a tag. This allows you to create linked lists of structures

I have two structures containing pointers mutually to each other, one of them containing a chaining pointer to itself as well.

I receive very strange syntactical error messages in the references to these pointers, for example referring to some left bracket, "(", (not present in the reference) and alike.

I tried with an incomplete definition, like

struct anystructure;

before the structure using the other, but it did not help. The error messages slightly change, but that's it.

Is this a known problem?
AnswerRe: Pointer to structure Pin
Christian Graus4-Jan-07 12:55
protectorChristian Graus4-Jan-07 12:55 
GeneralRe: Pointer to structure Pin
Vancouver4-Jan-07 13:04
Vancouver4-Jan-07 13:04 
GeneralRe: Pointer to structure Pin
Christian Graus4-Jan-07 13:35
protectorChristian Graus4-Jan-07 13:35 
GeneralRe: Pointer to structure Pin
Vancouver4-Jan-07 14:00
Vancouver4-Jan-07 14:00 
GeneralRe: Pointer to structure Pin
Christian Graus4-Jan-07 14:29
protectorChristian Graus4-Jan-07 14:29 
AnswerRe: Pointer to structure Pin
Mark Salsbery4-Jan-07 12:57
Mark Salsbery4-Jan-07 12:57 
GeneralRe: Pointer to structure Pin
Vancouver4-Jan-07 13:08
Vancouver4-Jan-07 13:08 
GeneralRe: Pointer to structure Pin
James R. Twine4-Jan-07 13:17
James R. Twine4-Jan-07 13:17 
AnswerRe: Pointer to structure Pin
prasad_som4-Jan-07 17:06
prasad_som4-Jan-07 17:06 
AnswerRe: Pointer to structure Pin
Vancouver4-Jan-07 18:48
Vancouver4-Jan-07 18:48 
GeneralRe: Pointer to structure Pin
Joe Woodbury4-Jan-07 18:53
professionalJoe Woodbury4-Jan-07 18:53 
GeneralRe: Pointer to structure Pin
Vancouver4-Jan-07 19:45
Vancouver4-Jan-07 19:45 
GeneralRe: Pointer to structure Pin
David Crow5-Jan-07 3:00
David Crow5-Jan-07 3:00 
GeneralRe: Pointer to structure Pin
Vancouver5-Jan-07 4:41
Vancouver5-Jan-07 4:41 
GeneralRe: Pointer to structure Pin
prasad_som4-Jan-07 19:11
prasad_som4-Jan-07 19:11 
QuestionProblems with Sleep() in thread Pin
acerunner3164-Jan-07 11:42
acerunner3164-Jan-07 11:42 
AnswerRe: Problems with Sleep() in thread Pin
Stephen Hewitt4-Jan-07 12:00
Stephen Hewitt4-Jan-07 12:00 

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.