EXE shi ne tsari ba software ba zai iya yi ba tare da. Yana gudanar da dukkan matakai na farawa ko shigar da shirye-shirye. Zai iya zama aikace-aikacen cikakken tsari, ko zama ɓangare na shi.
Hanyoyi don ƙirƙirar
Akwai zaɓi biyu don ƙirƙirar fayil ɗin EXE. Na farko shine amfani da wurare don shirye-shiryen, kuma na biyu shine amfani da masu shigarwa na musamman, tare da taimakon wanda "sauyawa" daban-daban da kuma kunshe da aka sanya a danna daya aka halicce su. Bugu da ƙari a kan misalai za mu yi la'akari da duk zaɓuka
Hanyar 1: Kayayyakin Ayyukan Gidan Lura
Yi la'akari da yadda ake samar da tsari mai sauƙi wanda ya danganci harshe shirye-shirye. "Kayayyakin C ++" da kuma tattara shi a cikin Kayayyakin Gidan Hanya.
Sauke kyauta na Kayayyakin Gidan Lantarki daga shafin yanar gizon
- Gudun aikace-aikacen, je zuwa menu "Fayil"sannan danna abu "Ƙirƙiri"sannan kuma a cikin jerin "Shirin".
- Window yana buɗe "Samar da wani aikin", wanda kana buƙatar danna farko akan lakabin "Samfura"sa'an nan kuma "Kayayyakin C ++". Kusa, zaɓi "Aikace-aikacen Console Win32", sanya sunan da wuri na aikin. Ta hanyar tsoho, an ajiye shi a cikin aikin sarrafawa na Kayayyakin Gidan Gida, a cikin tsarin tsarin Takardunkuamma yana yiwuwa a zabi wani shugabanci idan an so. Bayan kammala saitunan, danna "Ok".
- Fara "Wizard na Kanfigareshan Win32"wanda muke danna kawai "Gaba".
- A cikin taga mai zuwa za mu ayyana sigogi na aikace-aikacen. Musamman, za mu zabi "Aikace-aikacen kayan aiki"da kuma a filin "Advanced Zabuka" - "Tsarin Mahimmanci"ta hanyar cire akwatin tare da "Rubutun da aka ƙaddara".
- An fara aikin da ake bukata don ƙara yankin don rubutu na code. Don yin wannan a shafin "Magani Magani" Danna maɓallin linzamin maɓallin dama akan rubutun "Fayiloli Masu Fayil". Yanayin mahallin yana bayyana a cikin abin da muka danna kan sa "Ƙara" kuma Ƙirƙiri Ƙari.
- A cikin taga bude "Ƙara sabon abu" zabi abu "Fayil C ++". Gaba, za mu sanya sunan fayil ɗin don code na aikace-aikacen gaba da tsawo ".C". Don canja babban fayil ɗin ajiya, danna kan "Review".
- Binciken mai bincike ya buɗe, wanda muke ƙayyade wurin kuma danna kan "Zaɓi Jaka".
- A sakamakon haka, shafin yana bayyana tare da take. "Source.s, wanda akwai saiti da lambar gyaran rubutu.
- Kusa, kana buƙatar kwafin rubutu na lambar kuma a ɗe shi a cikin yanki da aka nuna a cikin hoton. A matsayin misali, ɗauka kamar haka:
- Don gina aikin danna kan "Fara Debugging" a kan jerin zaɓuka Debugging. Kuna iya latsa maɓalli "F5".
- Bayan haka sanarwar gargadi ta nuna cewa aikin na yanzu yana da dadewa. Anan kuna buƙatar danna kan "I".
- Bayan kammalawar tarihin, aikace-aikacen yana nuna wata taga mai kwakwalwa wanda za a rubuta shi "Sannu, Duniya!".
- Fayil ɗin da aka tsara a cikin tsarin EXE za a iya duba ta amfani da Windows Explorer a cikin babban fayil na aikin.
int main (int argc, char * argv []) {#include
#include
bugawa ("Sannu, Duniya!");
Sakamakon ();
dawo 0;
}
Lura: Lamba a sama shine kawai misali. Maimakon haka, dole ne ka yi amfani da lambarka don ƙirƙirar shirin a cikin "Kayayyakin C ++".
Hanyar 2: Masu sakawa
Don haɓaka tsarin shigarwa na software, masu kira da ake kira installers suna samun rinjaye masu yawa. Tare da taimakonsu, an halicci software, babban aikin shi ne don sauƙaƙe tsarin aiwatar da software akan kwamfutar. Yi la'akari da yadda ake samar da fayil EXE a misali na Smart Install Maker.
Sauke Mai Tsaro Mai Shigarwa daga shafin yanar gizon.
- Gudun shirin da a shafin "Bayani" Shirya sunan aikace-aikace na gaba. A cikin filin Ajiye As danna kan madogarar fayil don ƙayyade wurin da za a ajiye fayil din kayan sarrafawa.
- Explorer ya buɗe inda kuka zaɓi wuri da ake so kuma danna "Ajiye".
- Jeka shafin "Fayilolin"inda kake buƙatar ƙara fayiloli daga abin da za'a kunshi kunshin. Anyi wannan ta danna kan gunkin. «+» a kasa na neman karamin aiki. Haka ma za a iya ƙara cikakken jagoranci, wanda kake buƙatar danna kan gunkin, wanda yake nuna babban fayil tare da ƙarin.
- Kusa, maɓallin zaɓi na fayil ya buɗe, inda kake buƙatar danna kan gunkin fayil.
- A cikin burauzar da take buɗewa, muna nuna aikace-aikacen da ake buƙata (a cikin yanayinmu, wannan shine "Torrent", zaka iya samun wani) kuma danna kan "Bude".
- A sakamakon haka, a cikin taga "Ƙara shigarwa" Fayil din yana nuna nuna wurinta. Zaɓuɓɓukan da aka bar ta tsoho kuma latsa "Ok".
- Hanyar ƙara ainihin asali zuwa aikace-aikacen yana faruwa da shigarwar da aka dace daidai a cikin wani ɓangare na musamman na software.
- Kusa, danna "Bukatun" kuma shafin yana buɗewa inda kake buƙatar yin alama da jerin ayyukan sarrafawa. Mun bar kaska a cikin filayen "Windows XP" da duk abin da ke tafiya a kasa. A duk sauran fannoni, bar abubuwan da aka ba da shawarar.
- Sa'an nan kuma bude shafin "Tattaunawa"ta latsa kalma mai dacewa a gefen hagu na dubawa. A nan mun bar komai ta hanyar tsoho. Domin shigarwa ya faru a bango, zaka iya duba akwatin "Shigar da aka boye".
- Bayan duk an kammala saitunan, za mu fara tattara ta danna kan gunkin tare da maɓallin ƙasa.
- Dokar da aka ƙayyade ya auku kuma halin halin yanzu yana nunawa a cikin taga. Bayan kammalawa ya cika, zaku iya jarraba kunshin kunshin ko kun rufe taga gaba daya ta latsa maɓallin da aka dace.
- Za a iya samun software mai haɗawa ta amfani da Windows Explorer a babban fayil wanda aka ƙayyade a lokacin saitin.
Saboda haka, a cikin wannan labarin, mun gano cewa za a iya ƙirƙirar wata hanyar EXE ta hanyar amfani da ƙwarewar fasahar software, irin su Kayayyakin Ayyuka, da kuma masu shigarwa na musamman, kamar Smart Install Maker.