资源简介
这个程序我开始时网上下的,实现了注册表管理的动作,然后再加在网上搜了一个图标关联的加了进去,可以用的,也比较简单
代码片段和文件信息
// REG.cpp : Defines the class behaviors for the application.
//
#include “stdafx.h“
#include “REG.h“
#include “REGDlg.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CREGApp
BEGIN_MESSAGE_MAP(CREGApp CWinApp)
//{{AFX_MSG_MAP(CREGApp)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG
ON_COMMAND(ID_HELP CWinApp::onhelp)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CREGApp construction
CREGApp::CREGApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CREGApp object
CREGApp theApp;
/////////////////////////////////////////////////////////////////////////////
// CREGApp initialization
BOOL CREGApp::InitInstance()
{
AfxEnableControlContainer();
CCommandLineInfo cmdInfo;
ParseCommandLine(cmdInfo);
//获取命令行传过来的参数:双击打开的文件的文件路径名称
CString strFilePathName = cmdInfo.m_strFileName;
AfxMessageBox(strFilePathName);
// Standard initialization
// If you are not using these features and wish to reduce the size
// of your final executable you should remove from the following
// the specific initialization routines you do not need.
#ifdef _AFXDLL
Enable3dControls(); // Call this when using MFC in a shared DLL
#else
Enable3dControlsStatic(); // Call this when linking to MFC statically
#endif
CREGDlg dlg;
m_pMainWnd = &dlg;
int nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
// TODO: Place code here to handle when the dialog is
// dismissed with OK
}
else if (nResponse == IDCANCEL)
{
// TODO: Place code here to handle when the dialog is
// dismissed with Cancel
}
// Since the dialog has been closed return FALSE so that we exit the
// application rather than start the application‘s message pump.
return FALSE;
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 110678 2011-01-20 20:11 REG\Debug\REG.exe
文件 299108 2011-01-20 20:11 REG\Debug\REG.ilk
文件 14145 2011-01-15 09:45 REG\Debug\REG.obj
文件 402432 2011-01-20 20:11 REG\Debug\REG.pdb
文件 2592 2011-01-14 11:57 REG\Debug\REG.res
文件 0 2011-01-15 09:45 REG\Debug\REG.sbr
文件 43871 2011-01-20 20:11 REG\Debug\REGDlg.obj
文件 0 2011-01-20 20:11 REG\Debug\REGDlg.sbr
文件 105933 2011-01-14 11:57 REG\Debug\StdAfx.obj
文件 214016 2011-01-20 20:14 REG\Debug\vc60.idb
文件 364544 2011-01-20 20:11 REG\Debug\vc60.pdb
文件 3525 2009-03-14 15:39 REG\ReadMe.txt
文件 21084 2011-01-10 17:08 REG\REG.APS
文件 1185 2011-01-20 20:14 REG\REG.clw
文件 2247 2011-01-15 09:45 REG\REG.cpp
文件 4212 2011-01-14 16:25 REG\REG.dsp
文件 531 2009-03-14 15:39 REG\REG.dsw
文件 1291 2009-03-14 15:39 REG\REG.h
文件 74752 2011-01-20 20:14 REG\REG.ncb
文件 55808 2011-01-20 20:14 REG\REG.opt
文件 240 2011-01-20 20:14 REG\REG.plg
文件 5388 2009-09-13 21:09 REG\REG.rc
文件 13525 2011-01-20 20:11 REG\REGDlg.cpp
文件 1777 2011-01-14 12:12 REG\REGDlg.h
文件 1078 2009-03-14 15:39 REG\res\REG.ico
文件 395 2009-03-14 15:39 REG\res\REG.rc2
..A.SH. 3072 2011-01-10 17:08 REG\res\Thumbs.db
文件 957 2009-09-13 20:38 REG\resource.h
文件 205 2009-03-14 15:39 REG\StdAfx.cpp
文件 1054 2009-03-14 15:39 REG\StdAfx.h
............此处省略6个文件信息
评论
共有 条评论