Click here to Skip to main content
15,880,651 members
Articles / Desktop Programming / MFC

Implementing MFC-Style Serialization in .NET - Part 1

Rate me:
Please Sign up or sign in to vote.
4.50/5 (9 votes)
21 Jan 2009CPOL7 min read 49.9K   446   23  
This article shows how to implement MFC-style object serialization in .NET.

Microsoft Visual Studio Solution File, Format Version 9.00
# Visual Studio 2005
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ArchiveTest", "ArchiveTest\ArchiveTest.csproj", "{716F86C9-5D9D-4044-A1B2-1C616E41D532}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ArchiveSerialization", "ArchiveSerialization\ArchiveSerialization.csproj", "{41E595A2-2E11-418B-B2B7-334BBFDB0A29}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FileSystemTester", "FileSystemTester\FileSystemTester.csproj", "{A632EB93-6E5B-49E4-82F3-BDB65953BFB4}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MfcSerialization", "MfcSerialization\MfcSerialization.csproj", "{6C8A98B4-CBED-49C7-A491-CE283F4B77ED}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MfcDocumentSerialization", "MfcDocumentSerialization\MfcDocumentSerialization.csproj", "{8DA19128-D946-49BB-AD4B-A28F0563D62C}"
EndProject
Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|Any CPU = Debug|Any CPU
		Release|Any CPU = Release|Any CPU
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{716F86C9-5D9D-4044-A1B2-1C616E41D532}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{716F86C9-5D9D-4044-A1B2-1C616E41D532}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{716F86C9-5D9D-4044-A1B2-1C616E41D532}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{716F86C9-5D9D-4044-A1B2-1C616E41D532}.Release|Any CPU.Build.0 = Release|Any CPU
		{41E595A2-2E11-418B-B2B7-334BBFDB0A29}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{41E595A2-2E11-418B-B2B7-334BBFDB0A29}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{41E595A2-2E11-418B-B2B7-334BBFDB0A29}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{41E595A2-2E11-418B-B2B7-334BBFDB0A29}.Release|Any CPU.Build.0 = Release|Any CPU
		{A632EB93-6E5B-49E4-82F3-BDB65953BFB4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{A632EB93-6E5B-49E4-82F3-BDB65953BFB4}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{A632EB93-6E5B-49E4-82F3-BDB65953BFB4}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{A632EB93-6E5B-49E4-82F3-BDB65953BFB4}.Release|Any CPU.Build.0 = Release|Any CPU
		{6C8A98B4-CBED-49C7-A491-CE283F4B77ED}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{6C8A98B4-CBED-49C7-A491-CE283F4B77ED}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{6C8A98B4-CBED-49C7-A491-CE283F4B77ED}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{6C8A98B4-CBED-49C7-A491-CE283F4B77ED}.Release|Any CPU.Build.0 = Release|Any CPU
		{8DA19128-D946-49BB-AD4B-A28F0563D62C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{8DA19128-D946-49BB-AD4B-A28F0563D62C}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{8DA19128-D946-49BB-AD4B-A28F0563D62C}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{8DA19128-D946-49BB-AD4B-A28F0563D62C}.Release|Any CPU.Build.0 = Release|Any CPU
	EndGlobalSection
	GlobalSection(SolutionProperties) = preSolution
		HideSolutionNode = FALSE
	EndGlobalSection
EndGlobal

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, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
President Starpoint Software Inc.
United States United States
Bob Pittenger is founder and President of Starpoint Software Inc. He holds a B.A. degree from Miami University, M.S. and Ph.D. degrees from Purdue University, and an MBA from Xavier University. He has been programming since 1993, starting with Windows application development in C++/MFC and moving to C# and .NET around 2005 and is a .NET Microsoft Certified Professional Developer.

Bob is the author of two books:
Billionaire: How the Ultra-Rich Built Their Fortunes Through Good and Evil and What You Can Learn from Them
and
Wealthonomics: The Most Important Economic and Financial Concepts that Can Make You Rich Fast.
Visit http://www.billionairebook.net for more information.

Comments and Discussions