Re: Some questions about VC++ Express
Pat wrote:
I'm a newbie to VC++ Express as well as C++. I thought VC++ Express
would be a good (i.e. easy to use) environment to lean C++, but I'm
finding some parts of it confusing.
For example, when building a project I get the message:
"This project is out of date:
ProjectName -Debug win32
Would you like to build it?"
Does this just means that the project has changed since the last time
it was built (compiled?)?
More likely that some targets in that project are out of date (like
a source file or a header has the timestamp later than the object
file made from them).
If so, why bother?
What do you mean by "why bother"? If you attempt to run your project,
don't you want to have it up to date? You made changes, you supposedly
want to see the result in action, no?
One of the reasons I'm learning C++ is so I can create some dll's for
use by another application. I tried doing this with a test file (one
that I knew was correct). It compiled fine, but I had a little
trouble finding it at first (I assumed it would show up in the
"Solution Explorer" but it didn't).
What do you mean by "show up"?
I also assumed the resulting dll
would have the same name as the file (i.e. test.dll) but instead
found it had the same name as the project (project.dll). So what
happens if you have several *.cpp files within the same project? Are
they all compiled together?
They compiled one by one, but then they are usually _linked_ together
to form the executable. You can also change the name of the executable
in the properties of the project.
I'm guessing a lot my confusion with this is a result of not
understanding C++ that well.
What you're asking has really nothing to do with C++ itself. It is
more related to how Visual Studio organizes its projects and targets.
Hopefully as I become more familiar with
it, the rationale for why things are structured the way they are will
begin to make more sense.
What book are you reading about Visual Studio, by the way?
V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask