• <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>
            隨筆-60  評(píng)論-262  文章-1  trackbacks-0

            http://blog.tinybrowser.net/archives/564

            posted on 2009-01-08 15:34 free2000fly 閱讀(9074) 評(píng)論(18)  編輯 收藏 引用

            評(píng)論:
            # re: 能用于 VC6 的 CImage 類(lèi) 2009-01-08 16:12 | kuafoo
            樓主能不能打個(gè)包啊  回復(fù)  更多評(píng)論
              
            # re: 能用于 VC6 的 CImage 類(lèi) 2009-01-08 16:31 | Layabout
            這么復(fù)雜?不是包含GDI+就行了嘛  回復(fù)  更多評(píng)論
              
            # re: 能用于 VC6 的 CImage 類(lèi) 2009-01-08 17:18 | 飯中淹
            用VC6的理由有點(diǎn)牽強(qiáng)。。。  回復(fù)  更多評(píng)論
              
            # re: 能用于 VC6 的 CImage 類(lèi) 2009-01-08 17:44 | lwan
            可以使用IImgCtx或者OleLoadImage(這個(gè)名字不一定正確),IImgCtx除了alpha通道不支持,其他尚可。  回復(fù)  更多評(píng)論
              
            # re: 能用于 VC6 的 CImage 類(lèi) 2009-01-08 20:11 | free2000fly
            @kuafoo
            對(duì)不起, 目的就是用這么長(zhǎng)的代碼撐門(mén)面, 呵呵  回復(fù)  更多評(píng)論
              
            # re: 能用于 VC6 的 CImage 類(lèi) 2009-01-09 10:50 | 肥仔
            強(qiáng),支持
            對(duì)VC6這東西太有感情,完全不可割舍。  回復(fù)  更多評(píng)論
              
            # re: 能用于 VC6 的 CImage 類(lèi) 2009-01-09 13:46 | 回復(fù)
            卻一定要在 VC6 的圈子里混(因?yàn)榫幾g出來(lái)的可執(zhí)行文件不用帶一大堆什么.Net框架

            誰(shuí)說(shuō)的VC7、8、9編譯出來(lái)的東西一定要帶.NET的RUNTIME
              回復(fù)  更多評(píng)論
              
            # re: 能用于 VC6 的 CImage 類(lèi) 2009-01-09 14:51 | free2000fly
            @回復(fù)
            你真可愛(ài)  回復(fù)  更多評(píng)論
              
            # re: 能用于 VC6 的 CImage 類(lèi) 2009-04-25 10:00 | phcole
            前幾天就在想辦法讓VC6能用上CImage,沒(méi)想到就找到了您的文章……不過(guò)寫(xiě)的太模糊了,能不能貼個(gè)實(shí)例出來(lái)呢?先謝過(guò)了。  回復(fù)  更多評(píng)論
              
            # re: 能用于 VC6 的 CImage 類(lèi) 2009-05-29 18:50 | hufz
            試了一下,編譯總是出錯(cuò),能不能給出個(gè)實(shí)例啊.謝謝  回復(fù)  更多評(píng)論
              
            # re: 能用于 VC6 的 CImage 類(lèi) 2009-12-10 14:45 | wwjjjj
            USES_ATL_SAFE_ALLOCA、USES_CONVERSION_EX、T2CW_EX等未定義,樓主能否解決一下  回復(fù)  更多評(píng)論
              
            # re: 能用于 VC6 的 CImage 類(lèi) 2009-12-17 11:26 | mzwang123
            樓主,blog左上角的小老鼠flash特別可愛(ài),能否給我傳一個(gè)。感激不盡。mzwang123@163.com  回復(fù)  更多評(píng)論
              
            # re: 能用于 VC6 的 CImage 類(lèi) 2009-12-17 13:32 | free2000fly
            # re: 能用于 VC6 的 CImage 類(lèi) 2010-01-13 09:00 | janeyre
            不能用的
            比如前面的幾行

            #pragma once

            //#include
            #include
            //#include
            //#include
            //#include

            #ifndef __TSTRING__
            #define __TSTRING__
            #include
            namespace std {
            typedef basic_string _tstring;
            }; // namespace std
            #endif // __TSTRING__

            這是什么語(yǔ)法,#include后面是空的  回復(fù)  更多評(píng)論
              
            # re: 能用于 VC6 的 CImage 類(lèi) 2010-01-13 10:40 | free2000fly
            @janeyre
            I'm sorry, 只能通過(guò)"查看源碼"取得源碼. 網(wǎng)頁(yè)編輯器的問(wèn)題.  回復(fù)  更多評(píng)論
              
            # re: 能用于 VC6 的 CImage 類(lèi) 2010-01-31 23:15 | Turtle
            我按照您的設(shè)定完成之后
            從這里copy下來(lái)的atlimage.h 檔經(jīng)過(guò) VC6 compile
            會(huì)發(fā)生以下的error message
            C:\Program Files\Microsoft Visual Studio\VC98\ATL\INCLUDE\ATLIMAGE.H(435) : error C2065: 'InterlockedExchangePointer' : undeclared identifier
            C:\Program Files\Microsoft Visual Studio\VC98\ATL\INCLUDE\ATLIMAGE.H(435) : error C2440: 'static_cast' : cannot convert from 'int' to 'struct HDC__ *'
            Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
            C:\Program Files\Microsoft Visual Studio\VC98\ATL\INCLUDE\ATLIMAGE.H(453) : error C2440: 'static_cast' : cannot convert from 'int' to 'struct HDC__ *'
            Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
            Error executing cl.exe.

            請(qǐng)問(wèn)一下該如何解決?
              回復(fù)  更多評(píng)論
              
            # re: 能用于 VC6 的 CImage 類(lèi) 2010-11-09 13:40 | Turtle
            @free2000fly

            Actually, it is beacuse the VC6 compliler didn't recognize the identifier "InterlockedExchangePointer," which is claimed in 'Wdm.h."

            So we can find the header file, and then copy the code in regarding of the "InterlockedExchangePointer" and then paste into atlimage.h.

            Here is the code:
            #ifndef InterlockedExchangePointer
            // NT's new InterlockedExchangePointer() takes care of 32 bit/64 bit pointers.
            // whereas the old InterlockedExchange() only work on 32 bit pointers.
            //
            __inline PVOID InterlockedExchangePointer( PVOID *Target, PVOID Value ) {
            return (PVOID) InterlockedExchange( (LPLONG)Target, (LONG)Value );
            }
            #endif

            I have placed in the head of the file "atlimage.h" and it can pass the compilation.

            F.Y.I.  回復(fù)  更多評(píng)論
              

            只有注冊(cè)用戶(hù)登錄后才能發(fā)表評(píng)論。
            網(wǎng)站導(dǎo)航: 博客園   IT新聞   BlogJava   博問(wèn)   Chat2DB   管理


            精品久久久久久中文字幕人妻最新 | 国产真实乱对白精彩久久| 国产69精品久久久久777| 久久久久久免费一区二区三区 | 精品久久久久一区二区三区| 精品久久久久久久久久中文字幕| 久久人搡人人玩人妻精品首页| 久久亚洲精品国产亚洲老地址| 亚洲av成人无码久久精品| 一本大道久久a久久精品综合| 久久精品国产第一区二区| 热re99久久6国产精品免费| 久久精品国产只有精品66| 日韩精品久久久久久久电影蜜臀| 91精品国产91久久久久久| 久久人人添人人爽添人人片牛牛| 久久精品国产99国产电影网 | 精品久久久久成人码免费动漫| 日日噜噜夜夜狠狠久久丁香五月| 久久夜色精品国产亚洲| 久久丫精品国产亚洲av不卡| 亚洲精品综合久久| 久久精品国产色蜜蜜麻豆| 久久久久久九九99精品| 人妻无码αv中文字幕久久琪琪布 人妻无码精品久久亚瑟影视 | 国产精品99久久久久久www| 伊人久久综合无码成人网| 亚洲国产日韩综合久久精品| 国产综合成人久久大片91| 久久久久中文字幕| 99久久精品午夜一区二区| 亚洲精品美女久久久久99| 一本综合久久国产二区| 久久久免费观成人影院| 一本一道久久精品综合| 国产精品美女久久久| 久久er99热精品一区二区| 久久男人Av资源网站无码软件| 伊人久久大香线蕉亚洲五月天| 久久婷婷五月综合97色直播| 精品国产乱码久久久久久人妻|