Click here to Skip to main content
15,922,574 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: srandom and random Pin
phil.o9-Jan-20 1:03
professionalphil.o9-Jan-20 1:03 
GeneralRe: srandom and random Pin
_Flaviu9-Jan-20 2:29
_Flaviu9-Jan-20 2:29 
AnswerRe: srandom and random Pin
Richard MacCutchan9-Jan-20 1:26
mveRichard MacCutchan9-Jan-20 1:26 
SuggestionRe: srandom and random Pin
David Crow9-Jan-20 3:25
David Crow9-Jan-20 3:25 
GeneralRe: srandom and random Pin
_Flaviu9-Jan-20 6:42
_Flaviu9-Jan-20 6:42 
GeneralRe: srandom and random Pin
k50549-Jan-20 9:03
mvek50549-Jan-20 9:03 
GeneralRe: srandom and random Pin
_Flaviu9-Jan-20 21:03
_Flaviu9-Jan-20 21:03 
GeneralRe: srandom and random Pin
Victor Nijegorodov9-Jan-20 22:51
Victor Nijegorodov9-Jan-20 22:51 
QuestionRedirect to my struct Pin
_Flaviu7-Jan-20 21:58
_Flaviu7-Jan-20 21:58 
AnswerRe: Redirect to my struct Pin
Afzaal Ahmad Zeeshan7-Jan-20 22:11
professionalAfzaal Ahmad Zeeshan7-Jan-20 22:11 
GeneralRe: Redirect to my struct Pin
_Flaviu7-Jan-20 22:38
_Flaviu7-Jan-20 22:38 
GeneralRe: Redirect to my struct Pin
_Flaviu8-Jan-20 0:29
_Flaviu8-Jan-20 0:29 
GeneralRe: Redirect to my struct Pin
Richard MacCutchan8-Jan-20 2:21
mveRichard MacCutchan8-Jan-20 2:21 
GeneralRe: Redirect to my struct Pin
_Flaviu8-Jan-20 3:15
_Flaviu8-Jan-20 3:15 
GeneralRe: Redirect to my struct Pin
k50548-Jan-20 3:38
mvek50548-Jan-20 3:38 
GeneralRe: Redirect to my struct Pin
_Flaviu8-Jan-20 18:59
_Flaviu8-Jan-20 18:59 
GeneralRe: Redirect to my struct Pin
Richard MacCutchan8-Jan-20 3:44
mveRichard MacCutchan8-Jan-20 3:44 
GeneralRe: Redirect to my struct Pin
leon de boer8-Jan-20 6:00
leon de boer8-Jan-20 6:00 
GeneralRe: Redirect to my struct Pin
_Flaviu8-Jan-20 7:09
_Flaviu8-Jan-20 7:09 
AnswerRe: Redirect to my struct Pin
Richard MacCutchan7-Jan-20 22:14
mveRichard MacCutchan7-Jan-20 22:14 
AnswerRe: Redirect to my struct Pin
phil.o7-Jan-20 22:33
professionalphil.o7-Jan-20 22:33 
GeneralRe: Redirect to my struct Pin
_Flaviu7-Jan-20 22:43
_Flaviu7-Jan-20 22:43 
AnswerRe: Redirect to my struct Pin
k50548-Jan-20 4:00
mvek50548-Jan-20 4:00 
This doesn't do what you think it does:
C++
typedef struct_SID {
   ...
} SID, *PISID

 #ifdef SID
typedef struct {
   ...
}SID;
 #endif
#ifdef,#undef etc only refers to preprocessor tokens. In C/C++, you can not undefine (or redefine) a previously defined item. e.g. the following is not valid
C++
int x;
 #ifdef x                    // only if preprocessor token 'x' exists
 #undef x                    // doesn't undefine int x 
 struct {                    // compiler error if branch taken, redifines type of x
   int i;
   double d;
 } x;
 #endif

 ...
    x myX;  //compiler error: typeof x unknown

GeneralRe: Redirect to my struct Pin
_Flaviu8-Jan-20 7:18
_Flaviu8-Jan-20 7:18 
AnswerRe: Redirect to my struct Pin
Stefan_Lang8-Jan-20 21:44
Stefan_Lang8-Jan-20 21: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.