LPSTR or *str
I am wondering is LPSTR:
typedef char* LPSTR or typedef char LPSTR?
I was reading Tricks of WGP Gurus and i couldn't figure out if the lp was just a indicator saying it's supposed to be a pointer or if LPSTR really is a pointer to a string (*str).
someone please tell me. this hungarian notation is weird at the least.
also i heard that there is a way to code in DX without using all this notation. is that true?
[edited by - Alpha_ProgDes on September 25, 2002 6:10:42 PM]
[edited by - Alpha_ProgDes on September 25, 2002 6:34:18 PM]
thank you, Sabreman.
so... LPSTR* == **str (or better yet char**). cool. great. thanks again.
and actually i would have, but my old computer HDD had a meltdown and my disk is lost. so i couldn't.
[edited by - Alpha_ProgDes on September 25, 2002 6:35:55 PM]
so... LPSTR* == **str (or better yet char**). cool. great. thanks again.
and actually i would have, but my old computer HDD had a meltdown and my disk is lost. so i couldn't.
[edited by - Alpha_ProgDes on September 25, 2002 6:35:55 PM]
oh so as i asked before is it possible to NOT use the hungarian notation when coding in DX and/or Win32? and still have your code work?
Your Code Doesn''t Give a Sh*t how your variable naming style is. It''s just easier for people to read Hungarian Notation and make sense of what the variables do.
--SuperRoy
[Google!][Stick Soldiers 2 Screenshot][E-Mail Me!]
[End Transmission]
--SuperRoy
[Google!][Stick Soldiers 2 Screenshot][E-Mail Me!]
[End Transmission]
Sup guys?
....ok...... i just wanted to know because...
because if one day i wanted to put char* in place of LPSTR (for any reason), then i know it would work. that's all.
so in other words when you see some Win32/DX code and see LPSTR replace it with char*, recompile it. then it should still work.
that's what i'm getting at. hope that was clearer.
[edited by - Alpha_ProgDes on September 25, 2002 8:41:02 PM]
because if one day i wanted to put char* in place of LPSTR (for any reason), then i know it would work. that's all.
so in other words when you see some Win32/DX code and see LPSTR replace it with char*, recompile it. then it should still work.
that's what i'm getting at. hope that was clearer.
[edited by - Alpha_ProgDes on September 25, 2002 8:41:02 PM]
Yeah that should work...though that''s not hungarian notation...hungarian notation is the naming of your variables like
int Count;
or
int iCount;
and
LPSTR AppName;
or
LPSTR lpzAppName;
--SuperRoy
[Google!][Stick Soldiers 2 Screenshot][E-Mail Me!]
[End Transmission]
int Count;
or
int iCount;
and
LPSTR AppName;
or
LPSTR lpzAppName;
--SuperRoy
[Google!][Stick Soldiers 2 Screenshot][E-Mail Me!]
[End Transmission]
Sup guys?
oh i thought that their typedefs (LPSTR, UCHAR...) were part of the notation also.
thank you for clearing it up.
one more thing (if you can''t answer it, SuperRoy it''s cool) do you know of a better animation code than the Tricks/Dummies version?
i really couldn''t read (understand) it when i was going through the book. so my learning was stunted
or even do you have a better animation code?
thanks.
thank you for clearing it up.
one more thing (if you can''t answer it, SuperRoy it''s cool) do you know of a better animation code than the Tricks/Dummies version?
i really couldn''t read (understand) it when i was going through the book. so my learning was stunted
or even do you have a better animation code?
thanks.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement