newbie question on App Name
Hi, all I just picked up Charles Petzold's Programming Windows book and I'm slowly studying it --- so far it seems to be a great book, but anyway...
In the third chapter I have a simple (sample) program that declares, inside of WinMain the following line:
Code:
static TCHAR szAppName[] = TEXT("HelloWin");
I understand pretty much everything about this line, that is TCHAR is a generic for of string of characters terminated with zero to be used in conversion between ASCII and UNICODE, if UNICODE identifier is defined ---- and obviously "HelloWin" is the name of the application, however my question is fairly simple ----
Does the identifier STATIC, in front of the AppName, make the string AppName available to all functions, in other words even thought it should be "local" but it makes it "global" ???? or am I a bit off here????
Thank you in advance for your help
............................
matheo917