2006.11.23
Hi All. I am COMPLETELY NEW to C/C++ so I how you will tolerate some
very basic questions and perhaps someone can help me get started.
I am currently using Visual Studio 6 C++.
I know it is very old and will be upgrading soon but for the time it
is good enough to get started.
Question #1
Is there any way to do the precompile and output it to a file ? I want
to look at the expanded source with all the includes and conditional
stuff.
Question #2
The demo "Hello World" program starts with -
int APIENTRY WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
I'm trying to figure out what the APIENTRY is ?
If it is a type then I looked in all the include files to see were it
might be defined and can find no reference to its definition.
#3
As a more general question, I see many references to types and am
trying to figure out an easy wasy to track them back to the source of
definition so that I might see what they are. Is there any easy way to
do this ?
#4
>From WIKIPEDIA -
x[i] = 1;
*(x + i) = 1;
*(i + x) = 1;
i[x] = 1; /* strange, but correct */
Supposedly all 4 examples yield the same results.
They listed the last example just because it demonstrates something
that doesn't seem correct but works. But they left the explanation out.
= = = =
I've got a bunch more questions, this is quite overwhelming at first.
If anyone wants to offer some tutoring, I wouldn't mind the help.
Thanks a lot.