亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? start.html

?? This tutorial attempts to get you started developing with the Win32 API as quickly and clearly as po
?? HTML
字號:
<HTML><LINK HREF="style.css" REL="STYLESHEET" TYPE="text/css"><HEAD><TITLE>Tutorial: Getting Started</TITLE></HEAD><BODY><FONT SIZE="-1">[ <A HREF="./index.html">contents</A>| <A HREF="http://www.winprog.org/">#winprog</A>]</FONT><HR><H1>Getting Started</H1><H2>What this tutorial is all about</H2>This tutorial is intended to present to you the basics (and common extras)of writing programs using the Win32 API.  The language used is C, most C++ compilerswill compile it as well.  As a matter of fact, most of the information is applicableto any language that can access the API, inlcuding Java, Assembly and Visual Basic.I will not however present any code relating to these languages and you're on yourown in that regard, but several people have previously used this document in saidlanguages with quite a bit of success.<P>This tutorial <I>will not</I> teach you the C language, nor will it tell you how torun your perticular compiler (Borland C++, Visual C++, LCC-Win32, etc...)  I willhowever take a few moments in the appendix to provide some notes on using the compilersI have knowledge of.<P>If you don't know what a <I>macro</I> or a <I>typedef</I> are, or how a <CODE>switch()</CODE>statement works, then turn back now and read a good book or tutorial on the C language first.<H2>Important notes</H2>Sometimes throughout the text I will indicate certain things are IMPORANT to read.  Because they screw up so many people, if you don't read it, you'll likely get caughttoo.  The first one is this: <P><B>The source provided in the example ZIP file is not optional!</B>   I don't include all the code in the text itself, only that which is relevant to whatever I'mcurrently discussing.  In order to see how this code fits in with the rest of theprogram, you <I>must</I> take a look at the source provided in the ZIP file.<P>And here's the second one:<P><B>Read the whole thing!</B>  If you have a question during one section of the tutorialjust have a little patience and it might just be answered later on.  If you just can'tstand the thought of not knowing, at least skim or search (yes computers can do that) the rest of the document before asking the nice folks on IRC or by email.<P>Another thing to remember is that a question you might have about subject A might end up being answered in a discussion of B or C, or maybe L.  So just look around a little.<P>Ok I think that's all the ranting I have to do for the moment, lets try some actual code.<H2>The simplest Win32 program</H2>If you are a complete beginner lets make sure you are capable of compiling abasic windows application.  Slap the following code into your compiler andif all goes well you should get one of the lamest programs ever written.<P>Remember to compile this as C, not C++.  It probably doesn't matter, but sinceall the code here is C only, it makes sense to start off on the right track.In most cases, all this requires if you add your code to a <CODE>.c</CODE> file instead ofa <CODE>.cpp</CODE> file.  If all of this hurts your head, just call the file <CODE>test.c</CODE> and be done with it.<PRE CLASS="LIST">#include &lt;windows.h&gt;int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,     LPSTR lpCmdLine, int nCmdShow){    MessageBox(NULL, "Goodbye, cruel world!", "Note", MB_OK);    return 0;}</PRE><P>If that doesn't work, your first step is to read whatever errors you get andif you don't understand them, look them up in the help or whatever documentsaccompany your compiler.  <B>Make sure you havespecified a Win32 GUI (NOT "Console") project/makefile/target, whatever appliesto your compiler.</B>  Unfortunately I can't help much with this part either, aserrors and how to fix them vary from compiler to compiler (and person to person).<P>You may get some warnings about you not using the parameters supplied to<CODE>WinMain()</CODE>.  This is OK.Now that we've established you can in fact compile a program, lets go throughthat little bit of code....<PRE CLASS="SNIP">int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,   LPSTR lpCmdLine, int nCmdShow)</PRE><CODE>WinMain()</CODE> is windows equivalent of <CODE>main()</CODE> from DOS or UNIX.This is where your program starts execution.  The parameters are as follows:<DL><DT><CODE>HINSTANCE hInstance</CODE><DD>Handle to the programs executable module (the .exe file in memory)<DT><CODE>HINSTANCE hPrevInstance</CODE><DD>Always <CODE>NULL</CODE> for Win32 programs.<DT><CODE>LPSTR lpCmdLine</CODE><DD>The command line arguments as a single string. NOT including the program name.<DT><CODE>int nCmdShow</CODE><DD>An integer value which may be passed to <CODE>ShowWindow()</CODE>.  We'll get to this later.</DL><P><CODE>hInstance</CODE> is used for things like loading resources and any other task which isperformed on a per-module basis.  A module is either the EXE or a DLL loaded into your program.For most (if not all) of this tutorial, there will only be one module to worry about, the EXE.<P><CODE>hPrevInstance</CODE> used to be the handle to the previously run instanceof your program (if any) in Win16.  This no longer applies.  In Win32 you ignorethis parameter.<H3>Calling Conventions</H3><P><CODE>WINAPI</CODE> specifies the calling convention and is definedas <CODE>_stdcall</CODE>.  If you don't know what this means, don't worry about itas it will not really affect us for the scope of this tutorial.  Just remember thatit's needed here.<H3>Win32 Data Types</H3>You will find that many of the normal keywords ortypes have windows specific definitions, <CODE>UINT</CODE> for <CODE>unsignedint</CODE>, <CODE>LPSTR</CODE> for <CODE>char*</CODE> etc... Which youchoose is really up to you.  If you are more comfortable using <CODE>char*</CODE>instead of <CODE>LPSTR</CODE>, feel free to do so.  Just make sure that you know what a type is before you substitute something else.<P>Just remember a few things and they will be easy to interpret.  An <CODE>LP</CODE>prefix stands for <I>Long Pointer</I>.  In Win32 the <I>Long</I> part is obsolete sodon't worry about it.  And if you don't know what a pointer is, you can either 1) Gofind a book or tutorial on C, or 2) just go ahead anyway and screw up a lot.  I'dreally recommend #1, but most people go with #2 (I would :).  But don't say I didn'twarn you.<P>Next thing is a <CODE>C</CODE> following a <CODE>LP</CODE> indicates a <CODE>const</CODE>pointer.  <CODE>LPCSTR</CODE> indicates a pointer to a const string, one that can not or will not be modified.  <CODE>LPSTR</CODE> on the other hand is not <CODE>const</CODE> andmay be changed.<P>You might also see a <CODE>T</CODE> mixed in there.  Don't worry about this for now, unless you are intentionally working with <I>Unicode</I>, it means nothing.<HR><FONT SIZE="-1">Copyright &copy; 1998-2003, Brook Miles (<A HREF="mailto:forger(nospam)winprog.org">theForger</A>).  All rights reserved.</FONT><SCRIPT language="JavaScript"><!--   var re = /\(nospam\)/ig;   var str;   for(i = 0;i < document.links.length;i++)    {      str = "" + document.links(i).href;      if(str.search(re) != -1)         document.links(i).href = str.replace(re, "@");      str = "" + document.links(i).innerHTML;      if(str.search(re) != -1)         document.links(i).innerHTML = str.replace(re, "@");   }--></SCRIPT></BODY></HTML>

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
最近日韩中文字幕| 一本大道久久a久久综合婷婷| 亚洲天天做日日做天天谢日日欢| 亚洲免费视频成人| 亚洲日本中文字幕区| 免费观看成人鲁鲁鲁鲁鲁视频| 石原莉奈一区二区三区在线观看| 天使萌一区二区三区免费观看| 国产精品88888| 成人av在线资源网站| 97se亚洲国产综合自在线观| 在线中文字幕不卡| 欧美男女性生活在线直播观看| 91精品国产91热久久久做人人| 欧美一区二区三区视频在线观看| 中文字幕佐山爱一区二区免费| 久久97超碰国产精品超碰| 国产91色综合久久免费分享| 97精品电影院| 国产欧美一区二区精品性| 亚洲精品ww久久久久久p站| 亚洲h动漫在线| 精品在线免费视频| 7777精品伊人久久久大香线蕉经典版下载 | 91黄视频在线| 国产精品全国免费观看高清| 一区二区三区四区五区视频在线观看 | 国产日韩v精品一区二区| 免费成人在线视频观看| 欧美一区二区三区爱爱| 日韩二区在线观看| www.av精品| 欧美一区二区观看视频| 亚洲自拍都市欧美小说| 国产精品一区久久久久| 日韩精品一区二区三区视频 | 亚洲午夜视频在线| 国产成人综合自拍| 欧美日韩一级大片网址| 欧美激情艳妇裸体舞| 日韩中文字幕不卡| 欧美男生操女生| 看电视剧不卡顿的网站| 色婷婷综合久久久久中文一区二区| 中文字幕成人av| 91丝袜美女网| 国产日产欧产精品推荐色 | 天堂蜜桃91精品| 欧美日韩免费一区二区三区视频| 亚洲自拍偷拍九九九| 欧美美女一区二区在线观看| 国产精品毛片无遮挡高清| 成人动漫av在线| 亚洲综合色成人| 欧美日本在线观看| 精品一区二区三区在线播放| 国产欧美一区二区精品性色超碰 | 国产精品综合网| 国产亚洲1区2区3区| 国内精品写真在线观看| 欧美丰满美乳xxx高潮www| 激情综合网最新| 一区二区中文视频| 99久久免费国产| 婷婷综合另类小说色区| 欧美性猛交xxxx乱大交退制版 | 99久久综合99久久综合网站| 亚洲一卡二卡三卡四卡| 日韩欧美一二三区| 91女人视频在线观看| 日本大胆欧美人术艺术动态| 久久久.com| 欧美精品久久久久久久多人混战 | 日产国产高清一区二区三区| 久久久国产精品麻豆| 国产精品一区二区久久精品爱涩| 成人欧美一区二区三区1314| 欧美精品成人一区二区三区四区| 国产露脸91国语对白| 亚洲自拍偷拍麻豆| 国产午夜精品在线观看| 在线视频一区二区免费| 午夜激情综合网| 国产日韩三级在线| 91精品国产免费| 日本道精品一区二区三区| 国产久卡久卡久卡久卡视频精品| 亚洲图片自拍偷拍| 国产精品福利一区二区| 在线观看国产精品网站| 国产黄人亚洲片| 日韩精品电影在线| 亚洲免费观看高清完整版在线| 精品欧美黑人一区二区三区| 国产suv精品一区二区883| 天堂va蜜桃一区二区三区漫画版 | 午夜精品久久久久久久| 亚洲人成7777| 中文字幕在线一区免费| 久久精品一区二区三区不卡牛牛| 91精品在线免费观看| 一本久久综合亚洲鲁鲁五月天| 国产成人在线免费| 国产麻豆精品在线观看| 国产精品卡一卡二| 久久久国际精品| 久久久久九九视频| 26uuu精品一区二区在线观看| 99精品热视频| 成人黄色综合网站| 国产成人在线视频免费播放| 国产一区二区电影| 国产一区 二区 三区一级| 麻豆一区二区99久久久久| 一区视频在线播放| 国产精品黄色在线观看| 国产女人18毛片水真多成人如厕| 2020日本不卡一区二区视频| 精品三级av在线| 精品福利一区二区三区免费视频| 色一情一乱一乱一91av| 色哟哟一区二区三区| 色94色欧美sute亚洲13| 欧美视频在线观看一区| 欧美精品第1页| 日韩欧美的一区| 精品国产伦一区二区三区观看体验 | 亚洲男女毛片无遮挡| 亚洲免费视频中文字幕| 性久久久久久久久久久久| 日韩综合小视频| 韩国视频一区二区| 国产.精品.日韩.另类.中文.在线.播放| 国产成人午夜视频| 99久久99久久精品国产片果冻| 99精品欧美一区二区蜜桃免费| 色猫猫国产区一区二在线视频| 欧美四级电影网| 这里只有精品视频在线观看| 欧美大片拔萝卜| 国产片一区二区| 一区二区三区小说| 韩国欧美国产一区| 成人教育av在线| 欧美日本一区二区在线观看| 日韩精品一区二区三区蜜臀| 欧美激情在线一区二区三区| 亚洲综合无码一区二区| 伦理电影国产精品| 99视频在线精品| 欧美久久一二区| 日本一区二区视频在线观看| 一区二区欧美视频| 国产精品综合一区二区三区| 日本道免费精品一区二区三区| 精品国产91乱码一区二区三区| 国产精品理论在线观看| 蜜臀久久99精品久久久久久9 | 欧美日韩日本视频| 久久久精品国产免大香伊| 亚洲国产一区二区视频| 国产在线精品一区二区| 欧美性感一区二区三区| 国产精品美女久久久久av爽李琼| 亚洲777理论| 97国产精品videossex| 精品乱人伦小说| 亚洲国产视频在线| 99免费精品视频| 久久久精品免费观看| 免费欧美在线视频| 欧美专区在线观看一区| 国产精品私人影院| 久久草av在线| 欧美区视频在线观看| 国产精品成人午夜| 国产美女精品人人做人人爽| 91精品国产一区二区三区香蕉| 亚洲人成在线播放网站岛国| 国产一区91精品张津瑜| 日韩亚洲电影在线| 国产亚洲精品超碰| 久草在线在线精品观看| 欧美精品成人一区二区三区四区| 亚洲女同ⅹxx女同tv| 成人福利视频网站| 国产日韩v精品一区二区| 国产永久精品大片wwwapp| 欧美一二三四在线| 日韩福利电影在线观看| 欧美剧情片在线观看| 三级亚洲高清视频| 欧美视频完全免费看| 亚洲自拍另类综合| 欧美三级蜜桃2在线观看| 玉足女爽爽91| 欧美无砖砖区免费| 亚洲国产欧美另类丝袜| 欧美手机在线视频| 午夜久久久影院|