Cov kev tsim cov programmes uas tsim los khiav hauv Windows operating systems yog PE cov ntaub ntawv, feem ntau yog nrog.exe txuas ntxiv. Txhawm rau los tsim ib qho exe-format program, nws yog qhov tsim nyog los sau cov cai ntawm qhov twg hauv cov lus programming uas muaj peev xwm ua kom muaj peev xwm ua tau ntawm PE cov qauv. Piv txwv, koj tuaj yeem siv Microsoft Visual C ++ 6.0 IDE thiab nws cov compiler tso kom tsim tau cov exe programs.
Tsim nyog
Microsoft Daim Duab C ++ 6.0
Cov Lus Qhia
Kauj ruam 1
Pib tsim txoj haujlwm tshiab hauv Microsoft Visual C ++. Nias Ctrl + N lossis xaiv qhov "Cov Ntawv" rau hauv cov ntawv thov zaub mov tseem ceeb, thiab tom qab ntawd nyem rau ntawm "Tshiab …" yam khoom.
Kauj ruam 2
Xaiv hom ntawm qhov project los tsim thiab nws qhov chaw nyob. Hauv cov npe ntawm "Kev Sib Tham Tshiab", hais kom meej hom phiaj xwm sib piv rau daim ntawv thov raug tsim. Xaiv cov khoom "Win32 Console Application" yog tias koj xav tau tsim qhov program uas yuav tawm los rau cov ntawv nyeem. Xaiv cov khoom "Win32 Daim Ntawv Thov" los tsim qhov project thov nrog graphical interface siv ntawm Win API (yav tom ntej, qhov project no tuaj yeem yoog tau siv WTL). Xaiv "MFC AppWizard (exe)" kom tau txais GUI thov ua haujlwm tsim rau saum MFC lub moj khaum. Hauv "Peb lub npe", sau lub npe rau qhov project. Hauv qhov chaw teb, xaiv cov ntawv qhia chaw uas txhua cov ntaub ntawv tsim tawm yuav raug muab tso. Nyem rau khawm "OK".
Kauj ruam 3
Tsim ib qhov project. Tom qab txhaj "OK" nyob rau hauv cov ntawv sib tham dhau los, ib qhov kev txawj ntse yuav qhib, kom koj nkag mus rau cov kev xaiv ntxiv. Tus naj npawb thiab hom ntawm cov nplooj ntawv wizard nyob ntawm hom ntawm qhov project. Ua raws li cov lus qhia hauv lub wizard qhia kom meej cov kev xaiv uas xav tau. Txawm li cas los xij, koj tuaj yeem nias lub pob "Finish" kom thiaj li tau txais qhov project nrog qhov tsis raug ntawm cov kev xaiv.
Kauj ruam 4
Ntxiv cov khoom siv uas tsim nyog rau txoj haujlwm, tsim kom muaj kev sib tshuam. Siv Cov Khoom Siv tab ntawm qhov project project suav nrog bitmaps, cim, cov ntawv qhia, cov cuab yeej, cov lus qhib, thiab lwm yam. Siv lub peev txheej txheej txheej sau los tsim cov haujlwm ntau ntawm cov neeg siv interface.
Kauj ruam 5
Sau cov code txoj kev sau. Ua tiav cov cai tsim tawm los ntawm Txoj Haujlwm Tshiab tshaj tawm los ntawm kev siv lub lag luam kev sib cav, kev xaib pab rau qhov sib cuam tshuam, kev sib tham rau kev ua haujlwm nrog cov ntaub ntawv sab nraud, theem tsis meej rau kev sib cuam tshuam ntawm cov ntawv thov, thiab lwm yam.
Kauj Ruam 6
Ua daim ntawv thov. Nias F7 lossis xaiv Tsim los ntawm cov ntawv qhia tsim. Tos kom kawg ntawm kev tso ua ke thiab cov txheej txheem sib txuas. Nco ntsoov tias tsis muaj qhov yuam kev.
Kauj Ruam 7
Nrhiav cov generated exe module. Xaiv "Project" thiab "Settings …" los ntawm cov ntawv qhia zaub mov, lossis nias Alt + F7. Hauv kab ntawv "Cov Kev Tshawb Nrhiav Cov Haujlwm" sib pauv mus rau "txuas" tab. Tshawb nrhiav qhov chaw nyob ntawm executable los ntawm cov ntsiab lus ntawm "Output file name" teb.
Kauj ruam 8
Ntsuas cov program tsim. Hloov mus rau phau ntawv sau npe nrog tus coj ua exe. Khiav nws rau kev tua. Nco ntsoov tias cov haujlwm ua haujlwm raws li xav tau.