slnprocess.h

来自「将VC7.0和VC.NET的工程转换到VC6.0的工程,内有详细的介绍做法(自己」· C头文件 代码 · 共 54 行

H
54
字号

#pragma once

/////////////////////////////////////////////////////////////////////////////////
//
// slnprocess class
//
// S.Rodriguez - Sept 2002
//
//
// purpose : convert a .sln file format to a .dsw file format
//           (a .sln file is the main file of a VisualStudio solution)
//
//

#include "CString.h"
#include "CFile.h"
#include "Templates.h"



class slnprocess
{

	// Members
protected:
	CString m_szSolutionName; // .sln fully qualified filename
	CStdioFile m_inputFile;
	CFile m_outputFile;
	ProjectArray m_projects;

	// Constructor
public:
	slnprocess();
	~slnprocess();

	// Methods
public:
	void process(CString &szSolutionName); // *.sln passed as parameter in the cmdline
	void processProjectOnly(CString &szProjectFullPath); // *.vcproj passed as parameter in the cmdline


	// Helpers
protected:
	void processProject(CString &sFirstLine);
	void processProjectDependencies(CString &sFirstLine);
	
	void writeDswHeader();
	void writeDswProject(PROJECTPARAM *p);
	void writeDswFooter();

	BOOL isFullPath(CString &szFilepath);
};

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?