--- draco7013 <[EMAIL PROTECTED]> wrote: > 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.
Check the documentation to see how you can stop the file after the preprocessor step. Not really sure you would want to do this. You can end up with a very large file. When you do #include <iostream> you will end up including about 60 different files (iostream includes files which include files which include files...) > > 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. > It is probably defined with the Visual C++ compiler. When you see WinMain you have a Windows program. The APIENTRY is the type of call that the function is making. > #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 ? > No > > #4 > > From WIKIPEDIA - > > x[i] = 1; > *(x + i) = 1; > *(i + x) = 1; > i[x] = 1; /* strange, but correct */ I have no explanation. Ray > > 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. > > > ____________________________________________________________________________________ Yahoo! Music Unlimited Access over 1 million songs. http://music.yahoo.com/unlimited
