Click here to Skip to main content
15,888,984 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: C++ and Sqlite connection Pin
Stuart Dootson10-Jan-09 5:33
professionalStuart Dootson10-Jan-09 5:33 
Questioncommand line Pin
Russell'9-Jan-09 2:37
Russell'9-Jan-09 2:37 
AnswerRe: command line Pin
David Crow9-Jan-09 3:09
David Crow9-Jan-09 3:09 
GeneralRe: command line Pin
Russell'9-Jan-09 4:53
Russell'9-Jan-09 4:53 
QuestionPossible violation in typedefs Pin
6Qing889-Jan-09 2:05
6Qing889-Jan-09 2:05 
QuestionRe: Possible violation in typedefs Pin
CPallini9-Jan-09 2:18
mveCPallini9-Jan-09 2:18 
AnswerRe: Possible violation in typedefs Pin
6Qing889-Jan-09 3:01
6Qing889-Jan-09 3:01 
AnswerRe: Possible violation in typedefs Pin
Stuart Dootson9-Jan-09 2:25
professionalStuart Dootson9-Jan-09 2:25 
It's legal - a tag name is not a type name. Struct, union and enum tag names share one namespace, while type names all share a different namespace. This means that typenames can be the same as tag names.

That means that your example is legal, but the following isn't, as the three tag names (for the struct, union and enum) are all the same:

typedef struct _VECTOR {} _VECTOR;
union _VECTOR {};
enum _VECTOR {};

GeneralRe: Possible violation in typedefs Pin
6Qing889-Jan-09 3:06
6Qing889-Jan-09 3:06 
GeneralRe: Possible violation in typedefs Pin
Luc Pattyn9-Jan-09 2:44
sitebuilderLuc Pattyn9-Jan-09 2:44 
Questionurgrntly required Pin
kir_MFC9-Jan-09 2:04
kir_MFC9-Jan-09 2:04 
QuestionRe: urgrntly required Pin
CPallini9-Jan-09 2:11
mveCPallini9-Jan-09 2:11 
JokeRe: urgrntly required Pin
Jijo.Raj9-Jan-09 4:27
Jijo.Raj9-Jan-09 4:27 
QuestionNeed help to get list of files in a directory... Pin
Thilek9-Jan-09 0:50
Thilek9-Jan-09 0:50 
AnswerRe: Need help to get list of files in a directory... Pin
Hamid_RT9-Jan-09 0:54
Hamid_RT9-Jan-09 0:54 
AnswerRe: Need help to get list of files in a directory... Pin
Jijo.Raj9-Jan-09 0:58
Jijo.Raj9-Jan-09 0:58 
GeneralRe: Need help to get list of files in a directory... Pin
Thilek9-Jan-09 2:16
Thilek9-Jan-09 2:16 
GeneralRe: Need help to get list of files in a directory... Pin
David Crow9-Jan-09 3:15
David Crow9-Jan-09 3:15 
GeneralRe: Need help to get list of files in a directory... Pin
Thilek9-Jan-09 3:25
Thilek9-Jan-09 3:25 
GeneralRe: Need help to get list of files in a directory... Pin
David Crow9-Jan-09 3:28
David Crow9-Jan-09 3:28 
GeneralRe: Need help to get list of files in a directory... Pin
Thilek9-Jan-09 3:44
Thilek9-Jan-09 3:44 
QuestionRe: Need help to get list of files in a directory... Pin
David Crow9-Jan-09 3:47
David Crow9-Jan-09 3:47 
AnswerRe: Need help to get list of files in a directory... Pin
Thilek9-Jan-09 3:56
Thilek9-Jan-09 3:56 
GeneralRe: Need help to get list of files in a directory... Pin
David Crow9-Jan-09 4:06
David Crow9-Jan-09 4:06 
GeneralRe: Need help to get list of files in a directory... Pin
Thilek9-Jan-09 4:14
Thilek9-Jan-09 4:14 

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.