91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 33.73MB
    文件類型: .rar
    金幣: 1
    下載: 0 次
    發布日期: 2023-07-28
  • 語言: C/C++
  • 標簽: c++??vc++??

資源簡介

最簡單的VC++6.0編譯器,親測win10 64位可用,附教程很詳細,有問題請私聊我提供幫助。僅供學習,侵權聯系刪。

資源截圖

代碼片段和文件信息

//?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(*.*)\0*.*\0\0“;
????AddFiles.m_ofn.Flags?=??AddFiles.m_ofn.Flags?|?OFN_ALLOWMULTISELECT;
????char?test[2000];
????test[0]=‘\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\安裝包\filetool\Commands.cpp

?????文件???????1022??1999-01-05?15:26??vc++6.0\安裝包\filetool\Commands.h

?????文件??????90895??2019-02-10?22:40??vc++6.0\安裝包\filetool\Debug\Commands.obj

?????文件??????34165??2019-02-10?22:40??vc++6.0\安裝包\filetool\Debug\Commands.sbr

?????文件??????77607??2019-02-10?22:40??vc++6.0\安裝包\filetool\Debug\DSAddIn.obj

?????文件??????23943??2019-02-10?22:40??vc++6.0\安裝包\filetool\Debug\DSAddIn.sbr

?????文件?????134788??2019-02-10?22:40??vc++6.0\安裝包\filetool\Debug\FileTool.dll

?????文件???????1018??2019-02-10?22:40??vc++6.0\安裝包\filetool\Debug\FileTool.exp

?????文件???????1768??2019-02-10?22:40??vc++6.0\安裝包\filetool\Debug\FileTool.lib

?????文件??????71443??2019-02-10?22:40??vc++6.0\安裝包\filetool\Debug\FileTool.map

?????文件?????158420??2019-02-11?21:21??vc++6.0\安裝包\filetool\Debug\FileTool.obj

?????文件????6663236??2019-02-11?21:21??vc++6.0\安裝包\filetool\Debug\FileTool.pch

?????文件?????877568??2019-02-11?21:20??vc++6.0\安裝包\filetool\Debug\FileTool.pdb

?????文件???????4580??2019-02-10?22:40??vc++6.0\安裝包\filetool\Debug\FileTool.res

?????文件??????28120??2019-02-10?22:40??vc++6.0\安裝包\filetool\Debug\FileTool.sbr

?????文件???????1724??2019-02-10?22:40??vc++6.0\安裝包\filetool\Debug\FileTool.tlb

?????文件?????118078??2019-02-10?22:40??vc++6.0\安裝包\filetool\Debug\StdAfx.obj

?????文件????1536767??2019-02-10?22:40??vc++6.0\安裝包\filetool\Debug\StdAfx.sbr

?????文件?????254976??2019-02-11?21:21??vc++6.0\安裝包\filetool\Debug\vc60.idb

?????文件?????462848??2019-02-11?21:21??vc++6.0\安裝包\filetool\Debug\vc60.pdb

?????文件???????4296??1999-01-05?15:54??vc++6.0\安裝包\filetool\DSAddIn.cpp

?????文件???????1333??1999-01-05?15:23??vc++6.0\安裝包\filetool\DSAddIn.h

?????文件???????4602??1999-05-27?12:37??vc++6.0\安裝包\filetool\FileTool\Commands.cpp

?????文件???????1022??1999-01-05?15:26??vc++6.0\安裝包\filetool\FileTool\Commands.h

?????文件???????4296??1999-01-05?15:54??vc++6.0\安裝包\filetool\FileTool\DSAddIn.cpp

?????文件???????1333??1999-01-05?15:23??vc++6.0\安裝包\filetool\FileTool\DSAddIn.h

?????文件???????4506??1999-01-05?15:17??vc++6.0\安裝包\filetool\FileTool\FileTool.cpp

?????文件????????302??1999-01-05?15:17??vc++6.0\安裝包\filetool\FileTool\FileTool.def

?????文件???????4752??1999-09-10?12:44??vc++6.0\安裝包\filetool\FileTool\FileTool.dsp

?????文件????????539??1999-01-05?15:17??vc++6.0\安裝包\filetool\FileTool\FileTool.dsw

............此處省略46個文件信息

評論

共有 條評論