|
What is the difference between including a file from a header file or from a source file in C++ in regards to performance during compilation?
What are the reasons to include files in the source file and not in the header file (except when absolutely required...
Started by jean on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
If you include it in the header file, and this header file gets included by quite a lot of other source files, compilation include headers....
Include it in the source file, it is only read where included and needed.
|
|
I have a situation where another developer is including source files from a project that I maintain in a project that he maintains. The nature of the files is such that each source file registers a "command" in an interpretive environment so all you have...
Started by Jon Trauntvein on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Just add it as an 'existing item' in VS.
There is no reason a source file can't be in multiple projects.
Could you simply write a source file containing nothing but #include directives? I'm not sure if VS.
|
|
When developing a .Net web application, if a run time error is generated, it shows some "extra" debug information that I can't find in the Exception class.
It shows a "Source Error" section which shows a code excerpt with line numbers showing exactly ...
Started by Michael La Voie on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
You should take a look at the ELMAH....
The page that threw the error should be in the Exception.StackTrace property
http://msdn.microsoft.com/en-us/library/system.exception.stacktrace.aspx
I'm not sure where the code-snippet you mention comes from though .
|
Ask your Facebook Friends
|
Here is a simple question.
I have cloned a project that includes some .csproj files.
I don't need/like my local csproj files being tracked by git (or being brought up when creating a patch), but clearly they are needed in the project.
I have added *.csproj...
Answer Snippets (Read the full thread at stackoverflow):
On the other hand.
Then I'd suggest they should simply never be source-controlled at all.
|
|
Basically what I want to do it this: a pdb file contains a location of source files (e.g. C:\dev\proj1\helloworld.cs ). Is it possible to modify that pdb file so that it contains a different location (e.g. \more\differenter\location\proj1\helloworld.cs...
Started by Trumpi on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
If you're looking to be more generic about the paths embedded in a pdb file, you could first use the MS your project relative to the N: ....
Move the source file in visual studio and rebuild the project to re-generate the .pdb.
|
|
I received a .swf (Flash) file and they asked me to modify some things. I don't know (yet) Flash. Is a .swf itself a source file or it is a compiled form of something other.
What is the suggested IDE to work with Flash, where to starts?
Started by Andrea Francia on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
You can find free flash decompilers that will disassemble it... .
The swf fileformat has not sourceswf is a flash package that can contain, among other things, source code.
Contains the source, so you can't (easily) edit an SWF file.
|
|
I got an error during creating a installer for my web application(c#). The error is
Error 19 'msado20.tlb' should be excluded because its source file 'C:\Program Files\Common Files\system\ado\msado20.tlb' is under Windows System File Protection.
what ...
Started by Sarathi1904 on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Including....
Protected system files are usually or Internet Explorer.
From MSDN
The specified file is a protected system file on Windows 2000, Windows XP, and Windows Server 2003.
You need to exclude the file from the installer.
|
|
(Assume that: application start-up time is absolutely critical; my application is started a lot; my application runs in an environment in which importing is slower than usual; many file need to be imported; and compilation to .pyc files is not available...
Started by Your Mom's Mom on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
= ['foo', 'bar', 'baz']
I would then use os.path utilities to read all lines in all files under the source directory and writes them all into a new file, filtering all import foo|bar|baz lines since all code is now within a single....
|
|
I'm using VSS 2008 and Visual Studio 2008. When my source files are checked in, the VSS property dialog shows them as type "Unicode (UTF-8)". But if I check one out from within Visual Studio, then do a compare, it says "binary files differ". Is anyone...
Started by AndrewCr on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
RatherFrom this old (20....
Change the type to text, you should be able to perform the visual the options menu in visual source safe, to set the default behavior for various file types there.
Menu for the file in source safe.
|
|
Possible Duplicate:
main.cpp access member function of another .cpp witin same source file
i use two cpp files within same sourcefile another.cpp here i use one class and member function like ,
Another.cpp class A { public : int Add(); }; int A::Add()...
Started by Rajakumar on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
If you really don't want to use an .h file - just include the Another.cpp file but then you will have to take care to not include it into any other file....
Your best bet is to create an .h file and move the class A declaration there.
|