最简单的VC++6.0编译器,亲测win10 64位可用,附教程很详细,有问题请私聊我提供帮助。仅供学习,侵权联系删。
代码片段和文件信息
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 4602 1999-05-27 12:37 vc++6.0安装包filetoolCommands.cpp
文件 1022 1999-01-05 15:26 vc++6.0安装包filetoolCommands.h
文件 90895 2019-02-10 22:40 vc++6.0安装包filetoolDebugCommands.obj
文件 34165 2019-02-10 22:40 vc++6.0安装包filetoolDebugCommands.sbr
文件 77607 2019-02-10 22:40 vc++6.0安装包filetoolDebugDSAddIn.obj
文件 23943 2019-02-10 22:40 vc++6.0安装包filetoolDebugDSAddIn.sbr
文件 134788 2019-02-10 22:40 vc++6.0安装包filetoolDebugFileTool.dll
文件 1018 2019-02-10 22:40 vc++6.0安装包filetoolDebugFileTool.exp
文件 1768 2019-02-10 22:40 vc++6.0安装包filetoolDebugFileTool.lib
文件 71443 2019-02-10 22:40 vc++6.0安装包filetoolDebugFileTool.map
文件 158420 2019-02-11 21:21 vc++6.0安装包filetoolDebugFileTool.obj
文件 6663236 2019-02-11 21:21 vc++6.0安装包filetoolDebugFileTool.pch
文件 877568 2019-02-11 21:20 vc++6.0安装包filetoolDebugFileTool.pdb
文件 4580 2019-02-10 22:40 vc++6.0安装包filetoolDebugFileTool.res
文件 28120 2019-02-10 22:40 vc++6.0安装包filetoolDebugFileTool.sbr
文件 1724 2019-02-10 22:40 vc++6.0安装包filetoolDebugFileTool.tlb
文件 118078 2019-02-10 22:40 vc++6.0安装包filetoolDebugStdAfx.obj
文件 1536767 2019-02-10 22:40 vc++6.0安装包filetoolDebugStdAfx.sbr
文件 254976 2019-02-11 21:21 vc++6.0安装包filetoolDebugvc60.idb
文件 462848 2019-02-11 21:21 vc++6.0安装包filetoolDebugvc60.pdb
文件 4296 1999-01-05 15:54 vc++6.0安装包filetoolDSAddIn.cpp
文件 1333 1999-01-05 15:23 vc++6.0安装包filetoolDSAddIn.h
文件 4602 1999-05-27 12:37 vc++6.0安装包filetoolFileToolCommands.cpp
文件 1022 1999-01-05 15:26 vc++6.0安装包filetoolFileToolCommands.h
文件 4296 1999-01-05 15:54 vc++6.0安装包filetoolFileToolDSAddIn.cpp
文件 1333 1999-01-05 15:23 vc++6.0安装包filetoolFileToolDSAddIn.h
文件 4506 1999-01-05 15:17 vc++6.0安装包filetoolFileToolFileTool.cpp
文件 302 1999-01-05 15:17 vc++6.0安装包filetoolFileToolFileTool.def
文件 4752 1999-09-10 12:44 vc++6.0安装包filetoolFileToolFileTool.dsp
文件 539 1999-01-05 15:17 vc++6.0安装包filetoolFileToolFileTool.dsw
............此处省略46个文件信息
// Commands.cpp : implementation file
//
#include “stdafx.h“
#include “FileTool.h“
#include “Commands.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CCommands
CCommands::CCommands()
{
m_pApplication = NULL;
}
CCommands::~CCommands()
{
ASSERT (m_pApplication != NULL);
m_pApplication->Release();
}
void CCommands::SetApplicationobject(IApplication* pApplication)
{
// This function assumes pApplication has already been AddRef‘d
// for us which CDSAddIn did in its QueryInterface call
// just before it called us.
m_pApplication = pApplication;
}
/////////////////////////////////////////////////////////////////////////////
// CCommands methods
STDMETHODIMP CCommands::AddFileToProject()
{
AFX_MANAGE_STATE(AfxGetStaticModuleState());
// TODO: Replace this with the actual code to execute this command
// Use m_pApplication to access the Developer Studio Application object
// and VERIFY_OK to see error strings in DEBUG builds of your add-in
// (see stdafx.h)
VERIFY_OK(m_pApplication->EnableModeless(VARIANT_FALSE));
HRESULT hr;
CComPtr m_pDispatch(NULL);
hr=m_pApplication->get_Projects(&m_pDispatch);
if(FAILED(hr))
{
AfxMessageBox(“Unable to obtain the IProject‘s pointer“);
return S_FALSE;
}
CComQIPtr m_Project(m_pDispatch);
long count;
hr=m_Project->get_Count(&count);
if(FAILED(hr))
{
AfxMessageBox(“Unable to obtain the number of projects in the workspace“);
return S_FALSE;
}
if(count > 0)
{
CFileDialog AddFiles(TRUE);
AddFiles.m_ofn.lpstrtitle = “Add Files To Project“;
AddFiles.m_ofn.lpstrFilter = “All Files(*.*) *.* “;
AddFiles.m_ofn.Flags = AddFiles.m_ofn.Flags | OFN_ALLOWMULTISELECT;
char test[2000];
test[0]=‘ ‘;
AddFiles.m_ofn.lpstrFile = test;
AddFiles.m_ofn.nMaxFile = 2000;
if(AddFiles.DoModal() == IDOK)
{
POSITION position=AddFiles.GetStartPosition();
CString file_name;
m_pDispatch=NULL;
hr=m_pApplication->get_ActiveProject(&m_pDispatch);
if(FAILED(hr))
{
AfxMessageBox(“Unable to obtain the ActiveProject pointer“);
return S_FALSE;
}
CComQIPtr m_ActiveProject(m_pDispatch);
CComBSTR type;
hr=m_ActiveProject->get_Type(&type);
if(FAILED(hr))
{
AfxMessageBox(“Unable to obtain the ActiveProject type“);
return S_FALSE;
}
CString s_type(type);
CComQIPtr m_BuildProject;
m_BuildProject=m_ActiveProject;
CComVariant reserved=NULL;
while(position != NULL)
{
file_name=AddFiles.GetNextPathName(position);
if(s_type == “Build“)
{
hr=m_BuildProject->AddFile(CComBSTR(file_name) reserved);
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 4602 1999-05-27 12:37 vc++6.0安装包filetoolCommands.cpp
文件 1022 1999-01-05 15:26 vc++6.0安装包filetoolCommands.h
文件 90895 2019-02-10 22:40 vc++6.0安装包filetoolDebugCommands.obj
文件 34165 2019-02-10 22:40 vc++6.0安装包filetoolDebugCommands.sbr
文件 77607 2019-02-10 22:40 vc++6.0安装包filetoolDebugDSAddIn.obj
文件 23943 2019-02-10 22:40 vc++6.0安装包filetoolDebugDSAddIn.sbr
文件 134788 2019-02-10 22:40 vc++6.0安装包filetoolDebugFileTool.dll
文件 1018 2019-02-10 22:40 vc++6.0安装包filetoolDebugFileTool.exp
文件 1768 2019-02-10 22:40 vc++6.0安装包filetoolDebugFileTool.lib
文件 71443 2019-02-10 22:40 vc++6.0安装包filetoolDebugFileTool.map
文件 158420 2019-02-11 21:21 vc++6.0安装包filetoolDebugFileTool.obj
文件 6663236 2019-02-11 21:21 vc++6.0安装包filetoolDebugFileTool.pch
文件 877568 2019-02-11 21:20 vc++6.0安装包filetoolDebugFileTool.pdb
文件 4580 2019-02-10 22:40 vc++6.0安装包filetoolDebugFileTool.res
文件 28120 2019-02-10 22:40 vc++6.0安装包filetoolDebugFileTool.sbr
文件 1724 2019-02-10 22:40 vc++6.0安装包filetoolDebugFileTool.tlb
文件 118078 2019-02-10 22:40 vc++6.0安装包filetoolDebugStdAfx.obj
文件 1536767 2019-02-10 22:40 vc++6.0安装包filetoolDebugStdAfx.sbr
文件 254976 2019-02-11 21:21 vc++6.0安装包filetoolDebugvc60.idb
文件 462848 2019-02-11 21:21 vc++6.0安装包filetoolDebugvc60.pdb
文件 4296 1999-01-05 15:54 vc++6.0安装包filetoolDSAddIn.cpp
文件 1333 1999-01-05 15:23 vc++6.0安装包filetoolDSAddIn.h
文件 4602 1999-05-27 12:37 vc++6.0安装包filetoolFileToolCommands.cpp
文件 1022 1999-01-05 15:26 vc++6.0安装包filetoolFileToolCommands.h
文件 4296 1999-01-05 15:54 vc++6.0安装包filetoolFileToolDSAddIn.cpp
文件 1333 1999-01-05 15:23 vc++6.0安装包filetoolFileToolDSAddIn.h
文件 4506 1999-01-05 15:17 vc++6.0安装包filetoolFileToolFileTool.cpp
文件 302 1999-01-05 15:17 vc++6.0安装包filetoolFileToolFileTool.def
文件 4752 1999-09-10 12:44 vc++6.0安装包filetoolFileToolFileTool.dsp
文件 539 1999-01-05 15:17 vc++6.0安装包filetoolFileToolFileTool.dsw
............此处省略46个文件信息
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。
评论列表(条)