Search Wiki:

Welcome to the All-In-One Code Framework!


All-In-One Code Framework code-name CodeFx delineates the framework and skeleton of most Microsoft development techniques (e.g. COM, Data Access, IPC) using typical sample codes in different programming languages (e.g. Visual C#, VB.NET, Visual C++). For instance, the code example ATLDllCOMServer shows the skeleton of an ATL ActiveX DLL as its name implies. Each example is elaborately selected, composed, and documented to demonstrate one frequently-asked, tested or used scenario based on our experience as support engineers. If you are a software developer, you can fill the skeleton with blood, muscle and soul. If you are a software tester or a support engineer like us, you may extend the sample codes a little to fit your specific test scenario or refer your customer to this project if the customer's question coincides with what we collected.

Project Site: http://cfx.codeplex.com
All available examples: http://cfx.codeplex.com/Wiki/View.aspx?title=All-In-One%20Code%20Framework%20Examples
Latest Release: http://cfx.codeplex.com/Release/ProjectReleases.aspx

Project Scope


The target of the project is to sketch the skeleton of most Microsoft development techniques using typical sample codes that are frequently-asked, tested or used. You can imagine each technique as a building. The foundation of the building (the basics of the technique) and the facilities inside the building (the details of the technique) are not in the scope. Instead, you will find the structure of the building (the framework and skeleton of the technique) in the scope.

Features

  • All-In-One: All examples for all Microsoft development techniques are in one Visual Studio solution. All source codes, documents, and reference materials can be viewed or tested in one instance of Visual Studio.
  • Uniform:
    • All examples follow a uniform naming convention. The convention applies to the name of the projects, variables, methods, types, etc.
    • All examples have a uniform style of coding, commenting and documentation. For instance, each code example has a ReadMe.txt file that documents the example. The content of ReadMe.txt follows this structure: Use (the purpose of the example), Project Relation (the relation between the current example and the rest), Build (how to build the example), Creation (the detailed steps to create such a example), and References (the reference materials).
    • All examples of the same technique manage to provide a uniform output or export. For instance, ATLActiveXDll, ATLActiveXExe, CSDllCOMServer, VBDllCOMServer, MFCActiveX, MFCSafeActiveX, CSActiveX, VBActiveX are COM components in different forms. However, they export a uniform set of methods, properties and events.
  • Mutually Dependent: The code examples are mutually dependent or related, and many are efficiently reused by other examples to demonstrate the techniques. For instance, CppDllExport is a sample C++ DLL that exports the symbols of data, functions and classes. CppImplicitlyLinkDll depends on CppDllExport to demonstrate the implicit link of a DLL; CppDelayloadDll delay-loads the DLL; CppLoadLibrary dynamically loads the DLL; CSPInvokeDll uses CppDllExport to show the use of .NET Platform Invocation Service.
  • Source of Examples: The examples are refined out of our supports for developers in the newsgroups and the forums. You can think of the project as a collection of most frequently requested test scenarios in contrast with FAQs.
The above four features are highlighted because most sample code sites like www.codeproject.com and MSDN lack them. Besides, the code examples in All-In-One Code Framework are typical, extensible, structured, complete, and easy to understand.

Current Stage


In the pilot phase of the project, we focus on five techniques: COM, Library, IPC, Office and Data Access. Today is April 27, 2009. There have been 99 code examples in the project. The collection currently grows at a rate of seven examples per week.

The following diagrams are the epitome of CodeFx on 2009-4-11. For an up-to-date list, please refer to All-In-One Code Framework Examples.
  • Examples for COM
COM.png
  • Examples for Data Access
Data Access.png
  • Examples for Library
Library.png
  • Examples for IPC and RPC
IPC and RPC.png
  • Examples for Office
Office.png
  • Examples for WinForm
WinForm.png
  • Examples for Hook
Hook.png
  • Examples for Diagnostics
Diagnostics.png

Top Contributors


Jialiang Ge (Jialiang)
Jie Wang (midnightfrank)
Hongye Sun (hongyes)
Lingzhi Sun (LingzhiSun)
ZhiXin Ye (ZhiXin)
Riquel Dong (Riquel)
Rongchun Zhang (RongchunZhang)
Ji Zhou (Colbert)
Fisnik Hasani (Fisnik)

Special Thanks!


To Fisnik Hasani in Sweden who designed the beautiful "CodeFx" logo for the project!

Feedback


We look forward to hearing your feedback. Please post your suggestions and ideas in Discussions or contact us directly. Your comments on this project are appreciated.

Thanks!

-MSDN Forum Support Team 2009-03-16
Last edited Jun 4 2009 at 6:09 AM  by Jialiang, version 4
Updating...
Page view tracker