Click here to Skip to main content
15,040,003 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Redirect to my struct Pin
_Flaviu7-Jan-20 22:38
Member_Flaviu7-Jan-20 22:38 
GeneralRe: Redirect to my struct Pin
_Flaviu8-Jan-20 0:29
Member_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
Member_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
Member_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
Memberleon de boer8-Jan-20 6:00 
The field names are not an issue you just need the struct, typedef and pointer to have different names

As Richard said it's going to bite you find a different name.

If you want to try a different name with minimal typing go to your file myheader.h and at the top after the guard put these
#define _SID _mySID
#define SID mySID
#define PISID myPISID

now go to the very bottom and put these
#undef _SID
#undef SID
#undef PISID

Now your SID is called mySID to all other units because it just does a text substitute Smile | :)

If you are happy it is all well the make the change permanently using Edit->find & replace on the file using Visual Studio.
In vino veritas

GeneralRe: Redirect to my struct Pin
_Flaviu8-Jan-20 7:09
Member_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
mvephil.o7-Jan-20 22:33 
GeneralRe: Redirect to my struct Pin
_Flaviu7-Jan-20 22:43
Member_Flaviu7-Jan-20 22:43 
AnswerRe: Redirect to my struct Pin
k50548-Jan-20 4:00
mvek50548-Jan-20 4:00 
GeneralRe: Redirect to my struct Pin
_Flaviu8-Jan-20 7:18
Member_Flaviu8-Jan-20 7:18 
AnswerRe: Redirect to my struct Pin
Stefan_Lang8-Jan-20 21:44
mveStefan_Lang8-Jan-20 21:44 
Questionerror C3861: 'major': identifier not found Pin
_Flaviu6-Jan-20 22:29
Member_Flaviu6-Jan-20 22:29 
AnswerRe: error C3861: 'major': identifier not found Pin
Victor Nijegorodov6-Jan-20 23:49
MemberVictor Nijegorodov6-Jan-20 23:49 
GeneralRe: error C3861: 'major': identifier not found Pin
_Flaviu7-Jan-20 0:29
Member_Flaviu7-Jan-20 0:29 
GeneralRe: error C3861: 'major': identifier not found Pin
Victor Nijegorodov7-Jan-20 0:40
MemberVictor Nijegorodov7-Jan-20 0:40 
GeneralRe: error C3861: 'major': identifier not found Pin
_Flaviu7-Jan-20 1:07
Member_Flaviu7-Jan-20 1:07 
GeneralRe: error C3861: 'major': identifier not found Pin
Victor Nijegorodov7-Jan-20 1:13
MemberVictor Nijegorodov7-Jan-20 1:13 
AnswerRe: error C3861: 'major': identifier not found Pin
Stefan_Lang8-Jan-20 21:58
mveStefan_Lang8-Jan-20 21:58 
GeneralRe: error C3861: 'major': identifier not found Pin
_Flaviu8-Jan-20 22:04
Member_Flaviu8-Jan-20 22:04 
GeneralRe: error C3861: 'major': identifier not found Pin
Stefan_Lang8-Jan-20 22:40
mveStefan_Lang8-Jan-20 22:40 
Questionsetw irrational behaviour Pin
Vaclav_5-Jan-20 8:25
MemberVaclav_5-Jan-20 8:25 

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.