Click here to Skip to main content
15,897,334 members
Articles / Desktop Programming / ATL

Using Visual C++ .NET to build a program integrated with Microsoft Visual Basic for Application (VBA)

Rate me:
Please Sign up or sign in to vote.
3.07/5 (11 votes)
4 Dec 20022 min read 57.3K   766   20  
Create a MFC Program which integrates with Microsoft Visual Basic for Application.
<?xml version="1.0" encoding = "gb2312"?>
<VisualStudioProject
	ProjectType="Visual C++"
	Version="7.00"
	Name="TangramAppDemo"
	ProjectGUID="{5A659AB7-9BD4-4720-835B-01A6123C1469}"
	Keyword="MFCProj">
	<Platforms>
		<Platform
			Name="Win32"/>
	</Platforms>
	<Configurations>
		<Configuration
			Name="Debug|Win32"
			OutputDirectory="Debug"
			IntermediateDirectory="Debug"
			ConfigurationType="1"
			UseOfMFC="2"
			CharacterSet="2">
			<Tool
				Name="VCCLCompilerTool"
				Optimization="0"
				PreprocessorDefinitions="WIN32;_WINDOWS;_DEBUG"
				MinimalRebuild="TRUE"
				BasicRuntimeChecks="3"
				RuntimeLibrary="3"
				TreatWChar_tAsBuiltInType="TRUE"
				UsePrecompiledHeader="3"
				WarningLevel="3"
				Detect64BitPortabilityProblems="TRUE"
				DebugInformationFormat="4"/>
			<Tool
				Name="VCCustomBuildTool"/>
			<Tool
				Name="VCLinkerTool"
				AdditionalDependencies=" ObjManagerD.lib"
				LinkIncremental="2"
				GenerateDebugInformation="TRUE"
				SubSystem="2"
				TargetMachine="1"/>
			<Tool
				Name="VCMIDLTool"
				PreprocessorDefinitions="_DEBUG"
				MkTypLibCompatible="FALSE"
				HeaderFileName="$(ProjectName)_i.h"
				InterfaceIdentifierFileName="$(ProjectName)_i.c"/>
			<Tool
				Name="VCPostBuildEventTool"
				Description="ִ��ע��"
				CommandLine="&quot;$(TargetPath)&quot; /RegServer"/>
			<Tool
				Name="VCPreBuildEventTool"/>
			<Tool
				Name="VCPreLinkEventTool"/>
			<Tool
				Name="VCResourceCompilerTool"
				PreprocessorDefinitions="_DEBUG"
				Culture="1033"
				AdditionalIncludeDirectories="$(IntDir)"/>
			<Tool
				Name="VCWebServiceProxyGeneratorTool"/>
			<Tool
				Name="VCWebDeploymentTool"/>
		</Configuration>
		<Configuration
			Name="Release|Win32"
			OutputDirectory="Release"
			IntermediateDirectory="Release"
			ConfigurationType="1"
			UseOfMFC="2"
			CharacterSet="2">
			<Tool
				Name="VCCLCompilerTool"
				Optimization="2"
				InlineFunctionExpansion="1"
				OmitFramePointers="TRUE"
				PreprocessorDefinitions="WIN32;_WINDOWS;NDEBUG"
				StringPooling="TRUE"
				MinimalRebuild="FALSE"
				RuntimeLibrary="2"
				EnableFunctionLevelLinking="TRUE"
				TreatWChar_tAsBuiltInType="TRUE"
				UsePrecompiledHeader="3"
				WarningLevel="3"
				Detect64BitPortabilityProblems="TRUE"
				DebugInformationFormat="3"/>
			<Tool
				Name="VCCustomBuildTool"/>
			<Tool
				Name="VCLinkerTool"
				AdditionalDependencies=" ObjManager.lib"
				LinkIncremental="1"
				GenerateDebugInformation="TRUE"
				SubSystem="2"
				OptimizeReferences="2"
				EnableCOMDATFolding="2"
				TargetMachine="1"/>
			<Tool
				Name="VCMIDLTool"
				PreprocessorDefinitions="NDEBUG"
				MkTypLibCompatible="FALSE"
				HeaderFileName="$(ProjectName)_i.h"
				InterfaceIdentifierFileName="$(ProjectName)_i.c"/>
			<Tool
				Name="VCPostBuildEventTool"
				Description="ִ��ע��"
				CommandLine="&quot;$(TargetPath)&quot; /RegServer"/>
			<Tool
				Name="VCPreBuildEventTool"/>
			<Tool
				Name="VCPreLinkEventTool"/>
			<Tool
				Name="VCResourceCompilerTool"
				PreprocessorDefinitions="NDEBUG"
				Culture="1033"
				AdditionalIncludeDirectories="$(IntDir)"/>
			<Tool
				Name="VCWebServiceProxyGeneratorTool"/>
			<Tool
				Name="VCWebDeploymentTool"/>
		</Configuration>
	</Configurations>
	<Files>
		<Filter
			Name="Source Files"
			Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm">
			<File
				RelativePath="AtlClass.cpp">
			</File>
			<File
				RelativePath="ChildFrm.cpp">
			</File>
			<File
				RelativePath="MainFrm.cpp">
			</File>
			<File
				RelativePath="TangramAppDemo.cpp">
			</File>
			<File
				RelativePath="TangramAppDemo.idl">
			</File>
			<File
				RelativePath="TangramAppDemoControlBar.cpp">
			</File>
			<File
				RelativePath="TangramAppDemoDataObj.cpp">
			</File>
			<File
				RelativePath="TangramAppDemoDoc.cpp">
			</File>
			<File
				RelativePath="TangramAppDemoDockingBarImpl.cpp">
			</File>
			<File
				RelativePath="TangramAppDemoView.cpp">
			</File>
			<File
				RelativePath="TangramAppDemodocument.cpp">
			</File>
			<File
				RelativePath="application.cpp">
			</File>
			<File
				RelativePath="stdafx.cpp">
				<FileConfiguration
					Name="Debug|Win32">
					<Tool
						Name="VCCLCompilerTool"
						UsePrecompiledHeader="1"/>
				</FileConfiguration>
				<FileConfiguration
					Name="Release|Win32">
					<Tool
						Name="VCCLCompilerTool"
						UsePrecompiledHeader="1"/>
				</FileConfiguration>
			</File>
			<File
				RelativePath="toolwndform.cpp">
			</File>
		</Filter>
		<Filter
			Name="Header Files"
			Filter="h;hpp;hxx;hm;inl;inc">
			<File
				RelativePath="AtlClass.h">
			</File>
			<File
				RelativePath="ChildFrm.h">
			</File>
			<File
				RelativePath="MainFrm.h">
			</File>
			<File
				RelativePath="Resource.h">
			</File>
			<File
				RelativePath="TangramAppDemo.h">
			</File>
			<File
				RelativePath="TangramAppDemoControlBar.h">
			</File>
			<File
				RelativePath="TangramAppDemoDataObj.h">
			</File>
			<File
				RelativePath="TangramAppDemoDoc.h">
			</File>
			<File
				RelativePath="TangramAppDemoDockingBarImpl.h">
			</File>
			<File
				RelativePath="TangramAppDemoView.h">
			</File>
			<File
				RelativePath="TangramAppDemocp.h">
			</File>
			<File
				RelativePath="TangramAppDemodocument.h">
			</File>
			<File
				RelativePath="_IAtlClassEvents_CP.h">
			</File>
			<File
				RelativePath="application.h">
			</File>
			<File
				RelativePath="stdafx.h">
			</File>
			<File
				RelativePath="toolwndform.h">
			</File>
		</Filter>
		<Filter
			Name="Resource Files"
			Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;jpg;jpeg;jpe;manifest">
			<File
				RelativePath="AtlClass.rgs">
			</File>
			<File
				RelativePath="Prairie Wind.bmp">
			</File>
			<File
				RelativePath="res\TangramAppDemo.ico">
			</File>
			<File
				RelativePath="res\TangramAppDemo.manifest">
			</File>
			<File
				RelativePath="TangramAppDemo.rc">
			</File>
			<File
				RelativePath="res\TangramAppDemo.rc2">
			</File>
			<File
				RelativePath="TangramAppDemo.rgs">
			</File>
			<File
				RelativePath="res\TangramAppDemoDoc.ico">
			</File>
			<File
				RelativePath="TangramAppDemodocument.rgs">
			</File>
			<File
				RelativePath="res\Toolbar.bmp">
			</File>
			<File
				RelativePath="application.rgs">
			</File>
			<File
				RelativePath="menuimg.bmp">
			</File>
		</Filter>
		<File
			RelativePath="ReadMe.txt">
		</File>
		<File
			RelativePath="script.htm"
			DeploymentContent="TRUE">
		</File>
	</Files>
	<Globals>
	</Globals>
</VisualStudioProject>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here



Comments and Discussions