Discussion:
problem with scope and functions
(too old to reply)
Starglider 4
2010-01-28 01:04:33 UTC
Permalink
Hi,

I've got a problem with the visual studio 2k5 environment:
Above the main editing screen you have 2 lists:
scope and functions. I use a lot of source files, headers, resources,
plus 2 projects (one of which is the setup project).
The problem is, that in one of the source files the above
lists are empty.
How to fix this?

Thanks!

MK
Ulrich Eckhardt
2010-01-28 12:03:10 UTC
Permalink
Above the main editing screen you have 2 lists: scope and
functions. [...] The problem is, that in one of the source files
the above lists are empty. How to fix this?
No idea how to fix that, but if you delete the .BSC file which is typically
right next to your .SLN file, it forces the IDE to regenerate it and parse
the whole sources another time. Often this helps.

Uli
--
C++ FAQ: http://parashift.com/c++-faq-lite

Sator Laser GmbH
Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932
Starglider 4
2010-01-29 02:52:05 UTC
Permalink
I've tried the .bsc trick. It didn't work.
I suppose, if you add all .cpp files to the 'source files' in the
solution explorer, they will be processed into the .bsc info.
However, how do you specify, which .cpp is the <main> source file?

MK
Post by Ulrich Eckhardt
Above the main editing screen you have 2 lists: scope and
functions. [...] The problem is, that in one of the source files
the above lists are empty. How to fix this?
No idea how to fix that, but if you delete the .BSC file which is typically
right next to your .SLN file, it forces the IDE to regenerate it and parse
the whole sources another time. Often this helps.
Uli
--
C++ FAQ: http://parashift.com/c++-faq-lite
Sator Laser GmbH
Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932
Ulrich Eckhardt
2010-01-29 08:03:01 UTC
Permalink
Post by Starglider 4
I suppose, if you add all .cpp files to the 'source files' in the
solution explorer, they will be processed into the .bsc info.
Yes.
Post by Starglider 4
However, how do you specify, which .cpp is the <main> source file?
There is no such thing, what exactly do you mean? There must be exactly one
main() in your program (or WinMain or something like that) and that is the
place where your program starts.

Uli
--
C++ FAQ: http://parashift.com/c++-faq-lite

Sator Laser GmbH
Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932
Loading...