///D:/daima/guidgen/aboutdlg.hclassCAboutDlg:publicCDialogImplCAboutDlg{public:enum{IDD=IDD_ABOUTBOX};BEGIN_MSG_MAP(CAboutDlg)MESSAGE_HANDLER(WM_INITDIALOG,OnInitDialog)COMMAND_ID_HANDLER(IDOK,OnCloseCmd)COMMAND_ID_HANDLER(IDCANCEL,OnCloseCmd)END_MSG_MAP()LRESULTOnInitDialog(UINT/*uMsg*/,WPARAM/*wParam*/,LPARAM/*lParam*/,BOOL&/*bHandled*/){CenterWindow(GetParent());returnTRUE;}LRESULTOnCloseCmd(WORD/*wNotifyCode*/,WORDwID,HWND/*hWndCtl*/,BOOL&/*bHandled*/){EndDialog(wID);return0;}};///D:/daima/guidgen/GuidGen.cpp//GuidGen.cpp://#includestdatl.h#includeatlframe.h#includeatlgdi.h#includeatlctrls.h#includeatldlgs.h#includeresource.h#includeaboutdlg.h#includemaindlg.hCAppModule_Module;intRun(LPTSTR/*lpCmdLine*/=NULL,intnCmdShow=SW_SHOWDEFAULT){CMessageLooptheLoop;_Module.AddMessageLoop(&theLoop);CMainDlgdlgMain;if(dlgMain.Create(NULL)==NULL){ATLTRACE(_T(Maindialogcreationfailed!\n));return0;}dlgMain.ShowWindow(nCmdShow);intnRet=theLoop.Run();_Module.RemoveMessageLoop();returnnRet;}intWINAPI_tWinMain(HINSTANCEhInstance,HINSTANCE/*hPrevInstance*/,LPTSTRlpCmdLine,intnCmdShow){#if(_WIN32_IE=0x0300)INITCOMMONCONTROLSEXiccx;iccx.dwSize=sizeof(iccx);iccx.dwICC=ICC_BAR_CLASSES;//changetosupportothercontrols::InitCommonControlsEx(&iccx);#else::InitCommonControls();#endif_Module.Init(NULL,hInstance);intnRet=Run(lpCmdLine,nCmdShow);_Module.Term();returnnRet;}///D:/daima/guidgen/GuidGen.rc//MicrosoftDeveloperStudiogeneratedresourcescript.//#includeresource.h#defineAPSTUDIO_READONLY_SYMBOLS/////////////////////////////////////////////////////////////////////////////////GeneratedfromtheTEXTINCLUDE2resource.//#includeatlres.h/////////////////////////////////////////////////////////////////////////////#undefAPSTUDIO_READONLY_SYMBOLS///////////////////////////////////////////////////////////////////////////////English(U.S.)resources#if!defined(AFX_RESOURCE_DLL)||defined(AFX_TARG_ENU)#ifdef_WIN32LANGUAGELANG_ENGLISH,SUBLANG_ENGLISH_US#pragmacode_page(1252)#endif//_WIN32#ifdefAPSTUDIO_INVOKED/////////////////////////////////////////////////////////////////////////////////TEXTINCLUDE//1TEXTINCLUDEDISCARDABLEBEGINresource.h\0END2TEXTINCLUDEDISCARDABLEBEGIN#includeatlres.h\r\n\0END3TEXTINCLUDEDISCARDABLEBEGINCREATEPROCESS_MANIFEST_RESOURCE_IDRT_MANIFESTres\\\\GuidGen.exe.manifest\r\n\0END#endif//APSTUDIO_INVOKED/////////////////////////////////////////////////////////////////////////////////Dialog//IDD_ABOUTBOXDIALOGDISCARDABLE0,0,187,102STYLEDS_MODALFRAME|WS_POPUP|WS_CAPTION|WS_SYSMENUCAPTIONAboutFONT8,MSSansSerifBEGINDEFPUSHBUTTONOK,IDOK,130,81,50,14CTEXTATLGUIDGENApplicationv1.0\n\n(c)Copyright1998,IDC_STATIC,25,57,78,32ICONIDR_MAINFRAME,IDC_STATIC,55,26,20,20GROUPBOX,IDC_STATIC,7,7,115,88ENDIDD_GUIDGEN_DIALOGDIALOGDISCARDABLE0,0,246,193STYLEWS_MINIMIZEBOX|WS_POPUP|WS_CAPTION|WS_SYSMENUCAPTIONCreateGUIDFONT8,MSSansSerifBEGINLTEXTChoosethedesiredformatbelow,thenselectCopytocopytheresultstotheclipboard(theresultscanthenbepastedintoyoursourcecode).ChooseExitwhendone.,IDC_STATIC,6,6,178,37GROUPBOXGUIDFormat,IDC_STATIC,4,43,178,73CONTROL&1.IMPLEMENT_OLECREATE(...),IDC_RADIO1,Button,BS_AUTORADIOBUTTON|WS_GROUP|WS_TABSTOP,9,57,167,10CONTROL&2.DEFINE_GUID(...),IDC_RADIO2,Button,BS_AUTORADIOBUTTON,9,71,167,10CONTROL&3.staticconststructGUID={...},IDC_RADIO3,Button,BS_AUTORADIOBUTTON,9,85,167,10CONTROL&4.RegistryFormat(ie.{xxxxxxx-xxxx...xxxx}),IDC_RADIO4,Button,BS_AUTORADIOBUTTON,9,99,167,10GROUPBOXResult,IDC_STATIC,4,121,238,59LTEXTplace-holderforresultingtext,IDC_RESULTS,9,134,229,41DEFPUSHBUTTON&Copy,IDOK,190,6,50,14PUSHBUTTON&NewGUID,IDC_NEWGUID,190,23,50,14PUSHBUTTONE&xit,IDCANCEL,190,40,50,14END/////////////////////////////////////////////////////////////////////////////////DESIGNINFO//#ifdefAPSTUDIO_INVOKEDGUIDELINESDESIGNINFODISCARDABLEBEGINIDD_ABOUTBOX,DIALOGBEGINLEFTMARGIN,7RIGHTMARGIN,180TOPMARGIN,7BOTTOMMARGIN,95ENDEND#endif//APSTUDIO_INVOKED#ifndef_MAC/////////////////////////////////////////////////////////////////////////////////Version//VS_VERSION_INFOVERSIONINFOFILEVERSION1,0,0,1PRODUCTVERSION1,0,0,1FILEFLAGSMASK0x3fL#ifdef_DEBUGFILEFLAGS0x1L#elseFILEFLAGS0x0L#endifFILEOS0x4LFILETYPE0x2LFILESUBTYPE0x0LBEGINBLOCKStringFileInfoBEGINBLOCK040904b0BEGINVALUECompanyName,\0VALUEFileDescription,ATLGUIDGENModule\0VALUEFileVersion,1,0,0,1\0VALUEInternalName,ATLGUIDGEN\0VALUELegalCopyright,Copyright1998\0VALUEOriginalFilename,GUIDGEN.EXE\0VALUEProductName,ATLGuidGenModule\0VALUEProductVersion,1,0,0,1\0ENDENDBLOCKVarFileInfoBEGINVALUETranslation,0x409,1200ENDEND#endif//!_MAC/////////////////////////////////////////////////////////////////////////////////Icon////IconwithlowestIDvalueplacedfirsttoensureapplicationicon//remainsconsistentonallsystems.IDR_MAINFRAMEICONDISCARDABLEres\\GuidGen.ico/////////////////////////////////////////////////////////////////////////////////StringTable//STRINGTABLEDISCARDABLEBEGINIDP_ERR_INIT_OLEUnabletoinitializeOLElibraries!IDS_FORMATS//{%08lX-%04X-%04x-%02X%02X-%02X%02X%02X%02X%02X%02X}\r