資源簡介
C++ 創(chuàng)建讀寫PDF例程,適合輸出個(gè)性化設(shè)計(jì)的PDF報(bào)表、文檔!!

代碼片段和文件信息
//?InstallPrinter.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“InstallPrinter.h“
#include?“InstallPrinterDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#endif
//?CInstallPrinterApp
BEGIN_MESSAGE_MAP(CInstallPrinterApp?CWinApp)
ON_COMMAND(ID_HELP?CWinApp::onhelp)
END_MESSAGE_MAP()
//?CInstallPrinterApp?construction
CInstallPrinterApp::CInstallPrinterApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
//?The?one?and?only?CInstallPrinterApp?object
CInstallPrinterApp?theApp;
//?CInstallPrinterApp?initialization
BOOL?CInstallPrinterApp::InitInstance()
{
//?InitCommonControls()?is?required?on?Windows?XP?if?an?application
//?manifest?specifies?use?of?ComCtl32.dll?version?6?or?later?to?enable
//?visual?styles.??Otherwise?any?window?creation?will?fail.
InitCommonControls();
CWinApp::InitInstance();
AfxEnableControlContainer();
//?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
//?Change?the?registry?key?under?which?our?settings?are?stored
//?TODO:?You?should?modify?this?string?to?be?something?appropriate
//?such?as?the?name?of?your?company?or?organization
SetRegistryKey(_T(“Local?AppWizard-Generated?Applications“));
CInstallPrinterDlg?dlg;
m_pMainWnd?=?&dlg;
INT_PTR?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;
}
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2006-03-16?10:55??InstallPrinter\
?????文件????????1962??2006-01-12?11:20??InstallPrinter\InstallPrinter.cpp
?????文件?????????550??2006-01-12?11:20??InstallPrinter\InstallPrinter.h
?????文件????????1142??2006-03-16?09:02??InstallPrinter\InstallPrinter.log.txt
?????文件????????5798??2006-03-14?16:02??InstallPrinter\InstallPrinter.rc
?????文件?????????917??2006-01-12?11:20??InstallPrinter\InstallPrinter.sln
?????文件????????4803??2006-03-14?15:07??InstallPrinter\InstallPrinter.vcproj
?????文件??????????22??2006-03-16?09:02??InstallPrinter\InstallPrinter.ver
?????文件???????19706??2006-03-15?16:54??InstallPrinter\InstallPrinterDlg.cpp
?????文件????????1008??2006-03-14?16:19??InstallPrinter\InstallPrinterDlg.h
?????目錄???????????0??2006-03-16?09:40??InstallPrinter\pdfwriter_cfg_file\
?????文件?????????179??2006-03-15?15:12??InstallPrinter\pdfwriter_cfg_file\pdfwrite.rsp
?????文件????????4580??2006-01-12?11:20??InstallPrinter\ReadMe.txt
?????目錄???????????0??2006-03-16?09:05??InstallPrinter\redmon17\
?????文件??????116224??2001-10-28?17:42??InstallPrinter\redmon17\redmonnt.dll
?????文件???????40960??2006-01-16?09:57??InstallPrinter\redmon17\unredmon.exe
?????目錄???????????0??2006-03-16?09:03??InstallPrinter\Release\
?????文件???????53248??2006-03-16?09:02??InstallPrinter\Release\InstallPrinter.exe
?????目錄???????????0??2006-03-16?09:03??InstallPrinter\res\
?????文件???????21630??2001-04-20?00:48??InstallPrinter\res\InstallPrinter.ico
?????文件?????????704??2006-01-12?11:20??InstallPrinter\res\InstallPrinter.manifest
?????文件?????????405??2006-01-12?11:20??InstallPrinter\res\InstallPrinter.rc2
?????文件????????1054??2006-03-14?16:02??InstallPrinter\resource.h
?????文件?????????214??2006-01-12?11:20??InstallPrinter\stdafx.cpp
?????文件????????1864??2006-01-12?11:20??InstallPrinter\stdafx.h
評論
共有 條評論