#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2010
    Posts
    121
    Rep Power
    21

    VC++ proj file analysis + VC++ beginner questions


    Hi

    I am beginner in VC++
    Is it possible to find out what type of VC project it is (dll, static library, console, etc) by lookking at the .proj file in Notepad?

    Also, how can I see the complete compiler options used when building the project using VC++ IDE?

    Also, what is the difference between project and solution? I heard solution can be a group of projects, but project itself is group of files so that we can work on codes spread on multiple files, so what is the point of having a group of groups?

    Also, VC++ seems to have _tmain instead of main, what is up with that?

    This is the VC++ proj file I am working with
    Please let me know if you have any ideas.

    Code:
    <?xml version="1.0" encoding="ks_c_5601-1987"?>
    <VisualStudioProject
    	ProjectType="Visual C++"
    	Version="7.10"
    	Name="OctopusTestDll"
    	ProjectGUID="{810A15C4-E0AB-4DB0-B3E2-2A47279DB50F}"
    	Keyword="Win32Proj">
    	<Platforms>
    		<Platform
    			Name="Win32"/>
    	</Platforms>
    	<Configurations>
    		<Configuration
    			Name="Debug|Win32"
    			OutputDirectory="Debug"
    			IntermediateDirectory="Debug"
    			ConfigurationType="1"
    			UseOfMFC="0"
    			CharacterSet="2">
    			<Tool
    				Name="VCCLCompilerTool"
    				Optimization="0"
    				AdditionalIncludeDirectories="C:\Projects\HCILab\OCTOPUS\OctopusDll"
    				PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"
    				MinimalRebuild="TRUE"
    				BasicRuntimeChecks="3"
    				RuntimeLibrary="3"
    				UsePrecompiledHeader="0"
    				WarningLevel="3"
    				Detect64BitPortabilityProblems="TRUE"
    				DebugInformationFormat="4"/>
    			<Tool
    				Name="VCCustomBuildTool"/>
    			<Tool
    				Name="VCLinkerTool"
    				AdditionalDependencies="OctopusD.lib Winmm.lib Dsound.lib"
    				OutputFile="$(OutDir)/OctopusTestDll.exe"
    				LinkIncremental="2"
    				AdditionalLibraryDirectories="C:\Projects\HCILab\OCTOPUS\OctopusDll\Debug"
    				IgnoreDefaultLibraryNames=""
    				GenerateDebugInformation="TRUE"
    				ProgramDatabaseFile="$(OutDir)/OctopusTestDll.pdb"
    				SubSystem="1"
    				TargetMachine="1"/>
    			<Tool
    				Name="VCMIDLTool"/>
    			<Tool
    				Name="VCPostBuildEventTool"/>
    			<Tool
    				Name="VCPreBuildEventTool"/>
    			<Tool
    				Name="VCPreLinkEventTool"/>
    			<Tool
    				Name="VCResourceCompilerTool"/>
    			<Tool
    				Name="VCWebServiceProxyGeneratorTool"/>
    			<Tool
    				Name="VCXMLDataGeneratorTool"/>
    			<Tool
    				Name="VCWebDeploymentTool"/>
    			<Tool
    				Name="VCManagedWrapperGeneratorTool"/>
    			<Tool
    				Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
    		</Configuration>
    		<Configuration
    			Name="Release|Win32"
    			OutputDirectory="Release"
    			IntermediateDirectory="Release"
    			ConfigurationType="1"
    			CharacterSet="2">
    			<Tool
    				Name="VCCLCompilerTool"
    				AdditionalIncludeDirectories="C:\Projects\HCILab\OCTOPUS\OctopusDll"
    				PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"
    				RuntimeLibrary="4"
    				UsePrecompiledHeader="0"
    				WarningLevel="3"
    				Detect64BitPortabilityProblems="TRUE"
    				DebugInformationFormat="3"/>
    			<Tool
    				Name="VCCustomBuildTool"/>
    			<Tool
    				Name="VCLinkerTool"
    				AdditionalDependencies="Octopus.lib Winmm.lib Dsound.lib"
    				OutputFile="$(OutDir)/OctopusTestDll.exe"
    				LinkIncremental="1"
    				AdditionalLibraryDirectories="C:\Projects\HCILab\OCTOPUS\OctopusDll\Release"
    				GenerateDebugInformation="TRUE"
    				SubSystem="1"
    				OptimizeReferences="2"
    				EnableCOMDATFolding="2"
    				TargetMachine="1"/>
    			<Tool
    				Name="VCMIDLTool"/>
    			<Tool
    				Name="VCPostBuildEventTool"/>
    			<Tool
    				Name="VCPreBuildEventTool"/>
    			<Tool
    				Name="VCPreLinkEventTool"/>
    			<Tool
    				Name="VCResourceCompilerTool"/>
    			<Tool
    				Name="VCWebServiceProxyGeneratorTool"/>
    			<Tool
    				Name="VCXMLDataGeneratorTool"/>
    			<Tool
    				Name="VCWebDeploymentTool"/>
    			<Tool
    				Name="VCManagedWrapperGeneratorTool"/>
    			<Tool
    				Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
    		</Configuration>
    	</Configurations>
    	<References>
    	</References>
    	<Files>
    		<Filter
    			Name="소스 파일"
    			Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx"
    			UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}">
    			<File
    				RelativePath=".\OctopusTestDll.cpp">
    			</File>
    		</Filter>
    		<Filter
    			Name="헤더 파일"
    			Filter="h;hpp;hxx;hm;inl;inc;xsd"
    			UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}">
    		</Filter>
    		<Filter
    			Name="리소스 파일"
    			Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx"
    			UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}">
    		</Filter>
    	</Files>
    	<Globals>
    	</Globals>
    </VisualStudioProject>
  2. #2
  3. Lord of the Dance
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Oct 2003
    Posts
    3,663
    Rep Power
    1945
    Originally Posted by mahaju
    Also, what is the difference between project and solution? I heard solution can be a group of projects, but project itself is group of files so that we can work on codes spread on multiple files, so what is the point of having a group of groups?
    Think about if you want to create a chat or FTP application, this will be the "solution".
    You will then create a project for the server application and a project for the client application.

    You can take a look at Windows operating system itself. It has several system (e.g. DLL) files. In broad term, you can see those files as "projects" inside the solution "Create Windows".

IMN logo majestic logo threadwatch logo seochat tools logo