• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

              C++博客 :: 首頁 :: 聯(lián)系 ::  :: 管理
              163 Posts :: 4 Stories :: 350 Comments :: 0 Trackbacks

            常用鏈接

            留言簿(48)

            我參與的團隊

            搜索

            •  

            積分與排名

            • 積分 - 398977
            • 排名 - 59

            最新評論

            閱讀排行榜

            評論排行榜

            該宏放置一個注釋到對象文件或者可執(zhí)行文件。
            #pragma comment( comment-type [,"commentstring"] )

            comment-type是一個預(yù)定義的標(biāo)識符,指定注釋的類型,應(yīng)該是compiler,exestr,lib,linker之一。
            commentstring是一個提供為comment-type提供附加信息的字符串,
            Remarks:
            1、compiler:放置編譯器的版本或者名字到一個對象文件,該選項是被linker忽略的。
            2、exestr:在以后的版本將被取消。
            3、lib:放置一個庫搜索記錄到對象文件中,這個類型應(yīng)該是和commentstring(指定你要Liner搜索的lib的名稱和路徑)
            這個庫的名字放在Object文件的默認(rèn)庫搜索記錄的后面,linker搜索這個這個庫就像你在命令行輸入這個命令一樣。你可以
            在一個源文件中設(shè)置多個庫記錄,它們在object文件中的順序和在源文件中的順序一樣。如果默認(rèn)庫和附加庫的次序是需要
            區(qū)別的,使用Z編譯開關(guān)是防止默認(rèn)庫放到object模塊。
            4、linker:指定一個連接選項,這樣就不用在命令行輸入或者在開發(fā)環(huán)境中設(shè)置了。
            只有下面的linker選項能被傳給Linker.
            • /DEFAULTLIB

            • /EXPORT

            • /INCLUDE

            • /MANIFESTDEPENDENCY

            • /MERGE

            • /SECTION

            (1)/DEFAULTLIB:library

            /DEFAULTLIB 選項將一個 library 添加到 LINK 在解析引用時搜索的庫列表。用 /DEFAULTLIB 指定的庫在命令行上指定的庫之后和 .obj 文件中指定的默認(rèn)庫之前被搜索。

            忽略所有默認(rèn)庫 (/NODEFAULTLIB) 選項重寫 /DEFAULTLIB:library。如果在兩者中指定了相同的 library 名稱,忽略庫 (/NODEFAULTLIB:library) 選項將重寫 /DEFAULTLIB:library

            (2)/EXPORT:entryname[,@ordinal[,NONAME]][,DATA]

            使用該選項,可以從程序?qū)С龊瘮?shù),以便其他程序可以調(diào)用該函數(shù)。也可以導(dǎo)出數(shù)據(jù)。通常在 DLL 中定義導(dǎo)出。entryname 是調(diào)用程序要使用的函數(shù)或數(shù)據(jù)項的名稱。ordinal 在導(dǎo)出表中指定范圍在 1 至 65,535 的索引;如果沒有指定 ordinal,則 LINK 將分配一個。NONAME 關(guān)鍵字只將函數(shù)導(dǎo)出為序號,沒有 entryname

            DATA 關(guān)鍵字指定導(dǎo)出項為數(shù)據(jù)項。客戶程序中的數(shù)據(jù)項必須用 extern __declspec(dllimport) 來聲明。
            有三種導(dǎo)出定義的方法,按照建議的使用順序依次為:

            1. 源代碼中的 __declspec(dllexport)

            2. .def 文件中的 EXPORTS 語句

            3. LINK 命令中的 /EXPORT 規(guī)范

            所有這三種方法可以用在同一個程序中。LINK 在生成包含導(dǎo)出的程序時還創(chuàng)建導(dǎo)入庫,除非生成中使用了 .exp 文件。
            LINK 使用標(biāo)識符的修飾形式。編譯器在創(chuàng)建 .obj 文件時修飾標(biāo)識符。如果 entryname 以其未修飾的形式指定給鏈接器(與其在源代碼中一樣),則 LINK 將試圖匹配該名稱。如果無法找到唯一的匹配名稱,則 LINK 發(fā)出錯誤信息。當(dāng)需要將標(biāo)識符指定給鏈接器時,請使用 Dumpbin 工具獲取該標(biāo)識符的修飾名形式。

            (3)/INCLUDE:symbol

            /INCLUDE 選項通知鏈接器將指定的符號添加到符號表。

            若要指定多個符號,請在符號名稱之間鍵入逗號 (,)、分號 (;) 或空格。在命令行上,對每個符號指定一次 /INCLUDE:symbol
            鏈接器通過將包含符號定義的對象添加到程序來解析 symbol。該功能對于添包含不會鏈接到程序的庫對象非常有用。用該選項指定符號將通過 /OPT:REF 重寫該符號的移除。



            我們經(jīng)常用到的是#pragma   comment(lib,"*.lib")這類的。
            #pragma   comment(lib,"Ws2_32.lib")表示鏈接Ws2_32.lib這個庫。  
            和在工程設(shè)置里寫上鏈入Ws2_32.lib的效果一樣,不過這種方法寫的  
            程序別人在使用你的代碼的時候就不用再設(shè)置工程settings了


            posted on 2008-01-10 11:23 sdfasdf 閱讀(62569) 評論(36)  編輯 收藏 引用 所屬分類: C++

            Feedback

            # re: pragma comment的使用 2009-02-12 09:20 sven
            受益,謝謝,  回復(fù)  更多評論
              

            # re: pragma comment的使用 2009-03-05 14:17 ym.luo
            不錯,繼續(xù)發(fā)揚光大!  回復(fù)  更多評論
              

            # re: pragma comment的使用 2009-06-01 16:14 EVE
            Package thre Yangchun in March, the dofus power leveling in this lineage 2 power leveling season, Shenzhen Shijiazhuang domain Jia Ming offices and international co-joined to organize activities for the players carefully ----" Plextor optical storage invite you together "QQ Huaxia" world ", to welcome all of you players come to participate.

              回復(fù)  更多評論
              

            # re: pragma comment的使用 2009-09-30 09:58 brada
            很不錯,賜教了  回復(fù)  更多評論
              

            # re: pragma comment的使用 2010-07-21 09:05 Uniker
            學(xué)習(xí)  回復(fù)  更多評論
              

            # re: pragma comment的使用 2010-07-21 11:20 essay papers
            Your topic is supreme, but that could take a lot of time to create such of essay papers for not professional persons. Therefore the essay writing services will suggest to buy essay paper in such case.   回復(fù)  更多評論
              

            # Custom Essay 2010-09-27 14:58 SarahAngelinaJolie
            Very impressive, thank you for posting!
            I appreciate the information you provided is excellent post. Thank you for sharing you do.  回復(fù)  更多評論
              

            # Custom Essay 2010-09-27 15:00 Essay writing
            I found your blogs after read topic's related post now I feel my research is almost completed. Thanks to share this nice information.  回復(fù)  更多評論
              

            # custom essays 2010-10-22 13:38 termpaper99@gmail.com
            good job keep it up i like it to much so it is fantastic job you did this is such kinds of good work which always be good forever  回復(fù)  更多評論
              

            # re: pragma comment的使用 2010-10-25 20:05 research papers
            Such a nice article,Very impressive,I appreciate the information you provided is excellent post. Thank you for sharing you do.  回復(fù)  更多評論
              

            # dress[未登錄] 2010-11-29 10:29 dress
            I can't believe how much of this I just wasn't aware of. Thank you for bringing moreinformation to this topic for me. I'm truly grateful and really impressed.   回復(fù)  更多評論
              

            # re: pragma comment的使用 2010-12-16 10:51 dog treats
            What a great article, you're really talented, hope to see more exciting  回復(fù)  更多評論
              

            # re: pragma comment的使用 2011-01-09 20:25 天之驕子'
            學(xué)習(xí)了,受益匪淺。  回復(fù)  更多評論
              

            # re: pragma comment的使用 2011-01-26 18:47 Access Healthcare
            How can I translate this ?  回復(fù)  更多評論
              

            # re: pragma comment的使用 2011-06-02 18:56 xzzzz1234
            great.
            <a href="http://www.realessaywriting.com/">essay</a> | <a href="http://www.realdissertationwriting.com/">dissertation</a> | <a href="http://www.realthesiswriting.com/">thesis</a> | <a href="http://www.realassignmentwriting.com/">assignment</a> | <a href="http://www.realcourseworkwriting.com/">coursework</a>  回復(fù)  更多評論
              

            # re: pragma comment的使用 2011-07-22 22:00 essay
            Didn't determine whether to buy history essay paper or to create it by yourself? I could recommend to receive free essays from the custom papers writing company, when you were pressured by time.   回復(fù)  更多評論
              

            # re: pragma comment的使用 2011-07-25 17:14 jis117
            弱弱的問一句,lib是不是指操作系統(tǒng)提供的庫,謝謝  回復(fù)  更多評論
              

            # re: pragma comment的使用 2011-09-02 18:31 chanel watches

            Sorry, but she won't be able to enjoy them anymore, while FSF can. XD  回復(fù)  更多評論
              

            # re: pragma comment的使用 2011-09-02 18:33 replica hermes

            -gden compass trilogy by phillip pullman  回復(fù)  更多評論
              

            # re: pragma comment的使用 2011-11-09 15:32 mosjin
            額。,謝謝。  回復(fù)  更多評論
              

            # re: pragma comment的使用 2012-01-05 11:14 Haiying_TT
            Good, thanks!  回復(fù)  更多評論
              

            # re: pragma comment的使用[未登錄] 2012-01-13 05:14 ZZ
            非常好的網(wǎng)站

            <a href="http://www.neojogos.com">Jogos online</a> | <a href="http://www.neojocuri.com">Jocuri online</a>

            <a href="http://proxy-list.co.uk" target="_blank">Proxy List</a>  回復(fù)  更多評論
              

            # re: pragma comment的使用 2012-01-18 19:44 essay
            Students’ life seems to be very strange thing and very often you have to opt for one thing at one time, then you do not have time to work on some else action. For example, different students should select between job and ancient essay paper writing. In that situation, we suggest to find the trusworthy cheap essay writing service to order the free essays in.   回復(fù)  更多評論
              

            # re: pragma comment的使用 2012-02-06 15:29 business loans
            The loans are very useful for guys, which are willing to start their company. As a fact, this is comfortable to get a small business loan.   回復(fù)  更多評論
              

            # re: pragma comment的使用 2012-05-25 23:19 xephi
            xiexie,hen you yong   回復(fù)  更多評論
              

            # re: pragma comment的使用 2012-07-02 14:46 Buy an essays uk
            Don't understand how to start your academic assignment? Bother no more, just because you have got an opportunity to buy writing services "bestcustompapers.com" and focus on your affairs.   回復(fù)  更多評論
              

            # re: pragma comment的使用 2012-07-02 14:52 Online essay scholarships
            Whenever you are sick and tired of completing writing assignments, a perfect suggestion for you will be to buy article writing bestcustompapers.com.  回復(fù)  更多評論
              

            # re: pragma comment的使用 2012-09-14 22:33 聽雨軒
            謝謝, 學(xué)習(xí)了受益很大  回復(fù)  更多評論
              

            # re: pragma comment的使用 2012-09-21 16:04 buy essays uk
            Open bestwritingservice.co.uk to order high quality uk essays online.  回復(fù)  更多評論
              

            # re: pragma comment的使用 2012-09-21 16:07 custom writing uk
            Select this home page if you have a need to purchase original essays uk. An A+ is secured!  回復(fù)  更多評論
              

            # re: pragma comment的使用[未登錄] 2012-09-22 09:22 lin
            為什么*.lib不行啊?  回復(fù)  更多評論
              

            # re: pragma comment的使用[未登錄] 2013-01-04 15:24 小明
            據(jù)我所知,至少#pragma comment(linker, "/ENTRY:main")這種的是可以的。  回復(fù)  更多評論
              

            # re: pragma comment的使用 2013-04-14 00:10 professional CV writing services
            Are you seeking how to write a resume or where to obtain resume formats and professional CV writing services? Or you just want to buy CV from certified resume writers? Only contact Resume company (perfect-resume.com).  回復(fù)  更多評論
              

            # re: pragma comment的使用 2013-04-14 00:12 professional CV writing services
            If you don’t know how to land the job of your dream, opt for bureaus available on the Internet which propose to buy resume perfect-resume.com done by leading experts.  回復(fù)  更多評論
              

            # re: pragma comment的使用 2013-04-14 00:30 essay writing reviews
            On the home page of this online resource you will be able to read extensive writing services reviews best-essay-sites.com. Therefore, you will discover respectable custom paper writing service to buy essays at.   回復(fù)  更多評論
              

            # re: pragma comment的使用 2013-04-14 00:35 WritingsCentre rewiew
            When learners contact Best Essay Sites firm, they will find informative essay writing reviews of superior quality.  回復(fù)  更多評論
              

            # re: pragma comment的使用 2013-04-18 08:31 Click here
            Collaborate with certified resume writers and astonish your the HR manager with the masterly done curriculum vitae.  回復(fù)  更多評論
              

            # re: pragma comment的使用 2014-04-07 07:58 site
            Are you seeking how to write a resume or where to obtain resume templates and professional CV writing services? Or you merely would like to buy resumes from certified resume writers? Merely contact Resume company.  回復(fù)  更多評論
              

            # re: pragma comment的使用 2014-04-07 07:59 professional resume service
            Go to Exclusive-resume company if you are in need of professional resume writing. Having worked with this dependable writing agency, you will be aware of which service to choose for buying resume and where to run over resume writing samples. Don’t hesitate, order resume of good quality from certified resume writers.  回復(fù)  更多評論
              

            中文字幕久久亚洲一区| 久久精品国产亚洲欧美| 嫩草影院久久国产精品| 色婷婷综合久久久久中文| 久久久SS麻豆欧美国产日韩| 欧美性猛交xxxx免费看久久久| 四虎国产永久免费久久| 国产精品久久久久久久午夜片 | 久久国语露脸国产精品电影| 香蕉久久AⅤ一区二区三区| 无码任你躁久久久久久久| 午夜精品久久久久成人| 久久久久亚洲AV成人网人人网站 | 狠狠色婷婷久久综合频道日韩| 久久婷婷是五月综合色狠狠| 欧美精品乱码99久久蜜桃| 亚洲中文久久精品无码| 国产精品久久久久jk制服| 久久综合久久综合久久| 日本久久久久久久久久| 久久精品国产亚洲AV蜜臀色欲 | 久久国产精品无码HDAV| 欧美综合天天夜夜久久| 色天使久久综合网天天| 东方aⅴ免费观看久久av| 精品国产乱码久久久久久1区2区| 亚洲国产精品久久66| 欧美午夜A∨大片久久 | 噜噜噜色噜噜噜久久| 无码八A片人妻少妇久久| 无码国内精品久久人妻蜜桃| 久久精品国产精品青草| 伊人久久大香线蕉无码麻豆| 久久精品一本到99热免费| 久久久久国产成人精品亚洲午夜| 国产精品久久久久久久久软件 | 国产成人99久久亚洲综合精品| 国产精品久久久久久久人人看| a级成人毛片久久| 国产精品99久久久精品无码 | AAA级久久久精品无码片|