Click here to Skip to main content
15,881,559 members
Articles / Desktop Programming / MFC

Develop MFC Doc/View Application Which Supports Any Number Document Template

Rate me:
Please Sign up or sign in to vote.
1.57/5 (3 votes)
2 Jun 20052 min read 36.4K   1.7K   26  
This article provides an introduction to TangramLittle, a C++ Framework for MFC and the .NET Framework. Knowledge in MFC and the .NET Framework is assumed.
#pragma once
#include "dotnetextimpl.h"

/***********************************************************************************
CDotNetServerImpl�Ǿ�̬�⹤��MfcDotNetExtLib�е�һ������࣬
����ʵ��TangramLittle�������������Լ��ĵ�ģ������Ķ�̬���أ���ˣ���һ������
TangramLittle��MFC��������Ҫ�����һ�������ʵ�֡�
��C[!output PROJECT_NAME]DotNetServerImpl������CDotNetServerImpl
��������Ա����������virtual HRESULT ConnectMainFrame(CString strMainFrameID)��
���ڶ�̬���������ڶ���virtual void AttachDocTemplate()��������һ��
������ĵ�ģ�����
***********************************************************************************/
class C[!output PROJECT_NAME]DotNetServerImpl :	public CDotNetServerImpl
{
public:
	C[!output PROJECT_NAME]DotNetServerImpl(void);
	~C[!output PROJECT_NAME]DotNetServerImpl(void);
	
	/***********************************************************
	virtual void AttachDocTemplate() ���ڼ���һ��MFC�ĵ�ģ�壬��
	�û�����һ���µ��ĵ����һ���Ѵ��ڵ��ĵ��ǣ����ȵõ����ĵ�
	���͵�IDֵ��Ȼ��������ֵ���ĵ�ģ������ֵ��м����ĵ�ģ�壬
	�������ʧ�ܣ�����øú������ع������ĵ�ģ�塣����Ĺ������
	��DotNetExtImpl::AttachDocTemplate(void)��ʵ�֡�
	***********************************************************/
	virtual void AttachDocTemplate();

	/***********************************************************
	virtual HRESULT ConnectMainFrame ���ڼ���һ��MFC�����ڶ���
	�ڻ���TangramLittle������������ļ�ʱ,����������ļ��ṩ����
	Ϣ���������ڶ���,ͨ�������ض��������ļ�,����õ�strMainFrameID,
	��������ַ���,���ö�̬���ؼ���,������������ڶ���,����ĵ���
	������ο�DotNetExtImpl::InitInstance(void)��ʵ�֡�
	***********************************************************/
	virtual HRESULT ConnectMainFrame(CString strMainFrameID);
};

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