锘??xml version="1.0" encoding="utf-8" standalone="yes"?>久久只有这精品99,99久久精品影院老鸭窝,久久久久久久久久免免费精品http://www.shnenglu.com/cjz/category/4829.html......zh-cnTue, 20 May 2008 14:04:09 GMTTue, 20 May 2008 14:04:09 GMT60灝嗗姩鎬佸厜鏍?ani)鍔犲叆璧勬簮鏂囦歡鐨勬柟娉?/title><link>http://www.shnenglu.com/cjz/archive/2007/12/06/37902.html</link><dc:creator>椋涘ぉ</dc:creator><author>椋涘ぉ</author><pubDate>Thu, 06 Dec 2007 06:18:00 GMT</pubDate><guid>http://www.shnenglu.com/cjz/archive/2007/12/06/37902.html</guid><wfw:comment>http://www.shnenglu.com/cjz/comments/37902.html</wfw:comment><comments>http://www.shnenglu.com/cjz/archive/2007/12/06/37902.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/cjz/comments/commentRss/37902.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/cjz/services/trackbacks/37902.html</trackback:ping><description><![CDATA[<p>      鍦ㄧ▼搴忎腑浣跨敤鑷畾涔夊厜鏍?鑳戒嬌紼嬪簭澧炶壊涓嶅皯.濡傛灉浣跨敤澶栭儴鍏夋爣鏂囦歡,鍙鐢↙oadCursorFromFile()鍗沖彲璋冪敤.浣嗗鏋滄兂瑕佺敤璧勬簮鏂囦歡鏉ュ寘鍚厜鏍囨枃浠舵椂,涓鑸殑鍏夋爣鏂囦歡娌℃湁闂,浣嗘槸濡傛灉鏄姩鎬佸厜鏍囩殑璇?鍒欎笉鑳介氳繃LoadCursor()鏉ヨ皟鐢?<br> 瑙f焙鏂規硶:<br>      1.璧勬簮鏂囦歡鐨勫緩绔?br>      鏂板緩涓鎵╁睍鍚嶄負rc鐨勬枃浠?璁頒簨鏈氨鍙垱寤?,娣誨姞璧勬簮璇存槑.<br>       濡?  C1  Cursor   aaa.Cur  <br>             C2   file         bbb.ani</p>       絎竴涓槸鏅氱殑鍏夋爣,絎簩涓槸鍔ㄦ佸厜鏍?<br>      2.灝嗚祫婧愬姞鍒板伐紼嬮噷.<br>      3.璁劇疆榧犳爣鍏夋爣<br>          <div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top><span style="COLOR: #000000">Screen</span><span style="COLOR: #000000">-></span><span style="COLOR: #000000">Cursors[</span><span style="COLOR: #000000">1</span><span style="COLOR: #000000">]</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">LoadCursor(C1);<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">Screen->Cursors[1]=LoadCursor(C2);<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">濡傛灉鎯寵澆鍏ュ姩鎬佸厜鏍?浼氬け璐?br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top><br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">鍔犺澆鍔ㄦ佸厜鏍?/span><span style="COLOR: #008000"><br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #000000">TResourceStream </span><span style="COLOR: #000000">*</span><span style="COLOR: #000000"> rs</span><span style="COLOR: #000000">=</span><span style="COLOR: #0000ff">new</span><span style="COLOR: #000000"> TResourceStream((</span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000">)HInstance,</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">C2</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">,</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">file);</span><span style="COLOR: #000000"><br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">鐢熸垚涓存椂鐨勫厜鏍囨枃浠?/span><span style="COLOR: #008000"><br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #0000ff">char</span><span style="COLOR: #000000"> temp_path[MAX_PATH];<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top>GetTempPath(MAX_PATH,temp_path);<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top>strcat(temp_path,</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">temp.ani</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">);<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top>rs->SaveToFile(temp_path);<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top><br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top>Screen</span><span style="COLOR: #000000">-></span><span style="COLOR: #000000">Cursors[</span><span style="COLOR: #000000">2</span><span style="COLOR: #000000">]</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">LoadCursorFromFile(temp_path);<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #0000ff">this</span><span style="COLOR: #000000">-></span><span style="COLOR: #000000">Cursor</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">TCursor(</span><span style="COLOR: #000000">2</span><span style="COLOR: #000000">);<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top>delete rs;<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top><br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top></span></div>      榪欓噷鍙槸閫氳繃闂存帴鐨勬柟娉?鍏堢敓鎴愭枃浠?鍦ㄨ澆鍏ユ枃浠?濡傛灉璋佹湁濂界殑鏂規硶,灝變笉瑕佸悵鍟簡. <img src ="http://www.shnenglu.com/cjz/aggbug/37902.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/cjz/" target="_blank">椋涘ぉ</a> 2007-12-06 14:18 <a href="http://www.shnenglu.com/cjz/archive/2007/12/06/37902.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>璇誨彇涓插彛紜洏搴忓垪鍙?鍑哄巶鍞竴鐨勫簭鍒楀彿)(csdn)http://www.shnenglu.com/cjz/archive/2007/12/03/37727.html椋涘ぉ椋涘ぉMon, 03 Dec 2007 13:29:00 GMThttp://www.shnenglu.com/cjz/archive/2007/12/03/37727.htmlhttp://www.shnenglu.com/cjz/comments/37727.htmlhttp://www.shnenglu.com/cjz/archive/2007/12/03/37727.html#Feedback0http://www.shnenglu.com/cjz/comments/commentRss/37727.htmlhttp://www.shnenglu.com/cjz/services/trackbacks/37727.html#define  IDENTIFY_BUFFER_SIZE  512

#define  IDE_ATAPI_IDENTIFY  0xA0
#define  IDE_ATA_IDENTIFY    0xEC
#define  DFP_RECEIVE_DRIVE_DATA   0x0007c088

#pragma pack(1)
typedef
struct _IDSECTOR
{
    USHORT  wGenConfig;
    USHORT  wNumCyls;
    USHORT  wReserved;
    USHORT  wNumHeads;
    USHORT  wBytesPerTrack;
    USHORT  wBytesPerSector;
    USHORT  wSectorsPerTrack;
    USHORT  wVendorUnique[
3];
    CHAR    sSerialNumber[
20];
    USHORT  wBufferType;
    USHORT  wBufferSize;
    USHORT  wECCSize;
    CHAR    sFirmwareRev[
8];
    CHAR    sModelNumber[
40];
    USHORT  wMoreVendorUnique;
    USHORT  wDoubleWordIO;
    USHORT  wCapabilities;
    USHORT  wReserved1;
    USHORT  wPIOTiming;
    USHORT  wDMATiming;
    USHORT  wBS;
    USHORT  wNumCurrentCyls;
    USHORT  wNumCurrentHeads;
    USHORT  wNumCurrentSectorsPerTrack;
    ULONG   ulCurrentSectorCapacity;
    USHORT  wMultSectorStuff;
    ULONG   ulTotalAddressableSectors;
    USHORT  wSingleWordDMA;
    USHORT  wMultiWordDMA;
    BYTE    bReserved[
128];
}IDSECTOR,
*PIDSECTOR;

typedef
struct _DRIVERSTATUS
{
    BYTE  bDriverError;
    BYTE  bIDEStatus;
    BYTE  bReserved[
2];
    DWORD  dwReserved[
2];
} DRIVERSTATUS,
*PDRIVERSTATUS, *LPDRIVERSTATUS;

typedef
struct _SENDCMDOUTPARAMS
{
    DWORD         cBufferSize;
    DRIVERSTATUS  DriverStatus;
    BYTE          bBuffer[
1];
} SENDCMDOUTPARAMS,
*PSENDCMDOUTPARAMS, *LPSENDCMDOUTPARAMS;

typedef
struct _IDEREGS
{
    BYTE bFeaturesReg;
    BYTE bSectorCountReg;
    BYTE bSectorNumberReg;
    BYTE bCylLowReg;
    BYTE bCylHighReg;
    BYTE bDriveHeadReg;
    BYTE bCommandReg;
    BYTE bReserved;
} IDEREGS,
*PIDEREGS, *LPIDEREGS;

typedef
struct _SENDCMDINPARAMS
{
    DWORD     cBufferSize;
    IDEREGS   irDriveRegs;
    BYTE bDriveNumber;
    BYTE bReserved[
3];
    DWORD     dwReserved[
4];
    BYTE      bBuffer[
1];
} SENDCMDINPARAMS,
*PSENDCMDINPARAMS, *LPSENDCMDINPARAMS;

#pragma pack()

void ChangeByteOrder(LPSTR lpString, int nLen)
{
    USHORT i;
    CHAR c;

   
// 63 63 72 75 6E 2E 63 6F 6D
    for(int i = 0; i < nLen; i += 2)
    {
        c
= lpString[i];
        lpString[i]
= lpString[i+1];
        lpString[i
+1] = c;
    }
}

bool CrnGetHDSerialNumber(LPSTR lpBuf)
{
    strcpy(lpBuf,
"");

    HANDLE hDevice;

   
if(Win32Platform == VER_PLATFORM_WIN32_NT)
       
// 鑾峰彇絎竴涓‖鐩橈紝濡傛灉鏈夊涓紝鏇存敼PhysicalDrive?灝卞彲浠ヤ簡銆?/span>
        hDevice = CreateFile("\\\\.\\PhysicalDrive0",
                GENERIC_READ
| GENERIC_WRITE,
                FILE_SHARE_READ
| FILE_SHARE_WRITE,
                NULL,
                OPEN_EXISTING,
               
0,
               
0);
   
else
        hDevice
= CreateFile("\\\\.\\SMARTVSD", 0, 0, NULL, CREATE_NEW, 0, 0);

   
if(hDevice == INVALID_HANDLE_VALUE) return false;

    SENDCMDINPARAMS scip
= { 0 };
   
char szBuffer[sizeof(SENDCMDOUTPARAMS) + IDENTIFY_BUFFER_SIZE] = { 0 };
    DWORD dwBytesRet
= 0;
   
bool bSuccess = false;
   
try
    {
        scip.cBufferSize
= IDENTIFY_BUFFER_SIZE;

        scip.irDriveRegs.bSectorCountReg
= 1;
        scip.irDriveRegs.bSectorNumberReg
= 1;
        scip.irDriveRegs.bDriveHeadReg
= IDE_ATAPI_IDENTIFY;
        scip.irDriveRegs.bCommandReg
= IDE_ATA_IDENTIFY;

       
if(DeviceIoControl(hDevice,
                DFP_RECEIVE_DRIVE_DATA,
               
&scip,
               
sizeof(SENDCMDINPARAMS) - 1,
                szBuffer,
               
sizeof(szBuffer),
               
&dwBytesRet,
                NULL))
        {
            PSENDCMDOUTPARAMS pOut
= (PSENDCMDOUTPARAMS)szBuffer;
            PIDSECTOR pIdSec
= (PIDSECTOR)(pOut->bBuffer);
            ChangeByteOrder(pIdSec
->sSerialNumber, sizeof(pIdSec->sSerialNumber));
            strncpy(lpBuf, pIdSec
->sSerialNumber, 20);
            bSuccess
= true;
        }
    }
    __finally
    {
        CloseHandle(hDevice);
    }

   
return bSuccess;
}
//---------------------------------------------------------------------------
// 嫻嬭瘯涓鍝?/span>
void __fastcall TForm1::Button2Click(TObject *Sender)
{
   
char sz[255];
    CrnGetHDSerialNumber(sz);
    ShowMessage(String(sz).Trim());
}
http://topic.csdn.net/u/20071120/01/ace8c302-4260-4be2-99d7-faba80c68e8e.html


椋涘ぉ 2007-12-03 21:29 鍙戣〃璇勮
]]>
WindowAPI SystemParametersInfo 璁劇疆宸ヤ綔鍖哄ぇ灝?/title><link>http://www.shnenglu.com/cjz/archive/2007/11/29/37512.html</link><dc:creator>椋涘ぉ</dc:creator><author>椋涘ぉ</author><pubDate>Thu, 29 Nov 2007 13:22:00 GMT</pubDate><guid>http://www.shnenglu.com/cjz/archive/2007/11/29/37512.html</guid><wfw:comment>http://www.shnenglu.com/cjz/comments/37512.html</wfw:comment><comments>http://www.shnenglu.com/cjz/archive/2007/11/29/37512.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/cjz/comments/commentRss/37512.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/cjz/services/trackbacks/37512.html</trackback:ping><description><![CDATA[   涓銆?璇存槑 BOOL SystemParametersInfo(<br>               UINT   uiAction,<br>               UINT    uiParam,<br>               Pointer   pvParam,<br>               UINT    fWinlni<br>         );<br>      uiAction   鍔ㄤ綔浠g爜,鍙夋嫨嬈叉埅鏂垨璁懼畾鍝竴涓郴緇熷弬鏁般?br>      uiParam   瑙嗗姩浣滆屽畾<br>      pvParam   Pointer鍙傛暟,瑙嗗姩浣滆屽畾<br>      fWinIni  錛歋PIF_UPDATEINIFILE   灝嗘柊鐨勮瀹氬啓鍏ョ郴緇?br>                        SPIF_SENDWININICHANGE   騫挎挱WM_SETTINGCHANGE 鍒扮郴緇熶腑鎵鏈夋渶涓婂眰瑙嗙獥銆?br><br>    浜屻佸弬鏁拌瀹?br>      SPI_SETWORKAREA    ,SPI_GETWORKAREA<br>      璁懼畾鎴栧彇寰楀伐浣滃尯澶у皬錛宲vParam鎸囧悜璁懼畾宸ヤ綔鍖哄煙鐨凾Rect緇撴瀯<br>      渚嬶細<br>        <span style="COLOR: #42b432">    <div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top><span style="COLOR: #000000"><img src="http://www.shnenglu.com/Images/dot.gif"><img src="http://www.shnenglu.com/Images/dot.gif"><br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top>TRect R</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">BoundsRect;<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top>SystemParametersInfo(SPI_SETWORKAREA,</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">,</span><span style="COLOR: #000000">&</span><span style="COLOR: #000000">R,SPIF_UPDATEINIFILE);<br><img src="http://www.shnenglu.com/Images/OutliningIndicators/None.gif" align=top><img src="http://www.shnenglu.com/Images/dot.gif"><img src="http://www.shnenglu.com/Images/dot.gif"></span></div> <br></span> <img src ="http://www.shnenglu.com/cjz/aggbug/37512.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/cjz/" target="_blank">椋涘ぉ</a> 2007-11-29 21:22 <a href="http://www.shnenglu.com/cjz/archive/2007/11/29/37512.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>BCB鎻愪緵鐨勬枃浠舵搷浣滃嚱鏁?/title><link>http://www.shnenglu.com/cjz/archive/2007/11/04/35845.html</link><dc:creator>椋涘ぉ</dc:creator><author>椋涘ぉ</author><pubDate>Sun, 04 Nov 2007 02:48:00 GMT</pubDate><guid>http://www.shnenglu.com/cjz/archive/2007/11/04/35845.html</guid><wfw:comment>http://www.shnenglu.com/cjz/comments/35845.html</wfw:comment><comments>http://www.shnenglu.com/cjz/archive/2007/11/04/35845.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/cjz/comments/commentRss/35845.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/cjz/services/trackbacks/35845.html</trackback:ping><description><![CDATA[        鍦˙CB鎻愪緵鐨勮繖緇勬枃浠舵搷浣滃嚱鏁頒腑錛屽彲鍒嗕負涓夌綾誨瀷錛屽氨鏄細<span style="COLOR: #800080">1</span><span style="COLOR: #000000">銆佹枃浠跺悕鍑芥暟錛?/span><span style="COLOR: #800080">2</span><span style="COLOR: #000000">銆佹枃浠剁鐞嗗嚱鏁幫紱</span><span style="COLOR: #800080">3</span><span style="COLOR: #000000">銆佹枃浠禝</span><span style="COLOR: #000000">/</span><span style="COLOR: #000000">O鍑芥暟銆?br><br></span><span style="COLOR: #800080">1</span><span style="COLOR: #000000">銆佹枃浠跺悕鍑芥暟<br>銆銆鏂囦歡鍚嶅嚱鏁板彲浠ュ鏂囦歡鐨勫悕縐般佹墍鍦ㄥ瓙鐩綍銆侀┍鍔ㄥ櫒鍜屾墿灞曞悕絳夎繘琛屾搷浣溿備笅琛ㄥ垪鍑鴻繖浜涘嚱鏁板強鍏跺姛鑳姐?br><br>鍑芥暟 璇存槑 <br>ExpandFileName() 榪斿洖鏂囦歡鐨勫叏璺緞(鍚┍鍔ㄥ櫒銆佽礬寰? <br>ExtractFileExt() 浠庢枃浠跺悕涓娊鍙栨墿灞曞悕 <br>ExtractFileName() 浠庢枃浠跺悕涓娊鍙栦笉鍚礬寰勭殑鏂囦歡鍚?<br>ExtractFilePath() 浠庢枃浠跺悕涓娊鍙栬礬寰勫悕 <br>ExtractFileDir() 浠庢枃浠跺悕涓娊鍙栫洰褰曞悕 <br>ExtractFileDrive() 浠庢枃浠跺悕涓娊鍙栭┍鍔ㄥ櫒鍚?<br>ChangeFileExt() 鏀瑰彉鏂囦歡鐨勬墿灞曞悕 <br>ExpandUNCFileName() 榪斿洖鍚湁緗戠粶椹卞姩鍣ㄧ殑鏂囦歡鍏ㄨ礬寰?<br>ExtractRelativePath() 浠庢枃浠跺悕涓娊鍙栫浉瀵硅礬寰勪俊鎭?<br>ExtractShortPathName() 鎶婃枃浠跺悕杞寲涓篋OS鐨?·3鏍煎紡 <br>MatchesMask() 媯鏌ユ枃浠舵槸鍚︿笌鎸囧畾鐨勬枃浠跺悕鏍煎紡鍖歸厤 <br><br>銆銆涓嬮潰灝辨妸榪欎簺鍑芥暟浣滀竴涓浠嬬粛錛?br><br>鈶碋xpandFileName() <br>銆銆鍘熷瀷錛?/span><span style="COLOR: #0000ff">extern</span><span style="COLOR: #000000"> PACKAGE AnsiString __fastcall ExpandFileName(</span><span style="COLOR: #0000ff">const</span><span style="COLOR: #000000"> AnsiString FileName);<br><br>銆銆鍔熻兘錛氳繑鍥炴枃浠剁殑鍏ㄨ礬寰?鍚┍鍔ㄥ櫒銆佽礬寰?<br><br>銆銆鍙傛暟錛欶ileName:瑕佸鐞嗙殑鏂囦歡鍚?br><br>銆銆渚嬶細ShowMessage(ExpandFileName(Application</span><span style="COLOR: #000000">-></span><span style="COLOR: #000000">ExeName));</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">鏄劇ず浣犵殑紼嬪簭鏂囦歡鍚嶏紝濡侰:\MyBCB\Sample1.EXE</span><span style="COLOR: #008000"><br></span><span style="COLOR: #000000"><br>鈶礒xtractFileExt()<br>銆銆鍘熷瀷錛?/span><span style="COLOR: #0000ff">extern</span><span style="COLOR: #000000"> PACKAGE AnsiString __fastcall ExtractFileExt(</span><span style="COLOR: #0000ff">const</span><span style="COLOR: #000000"> AnsiString FileName);<br><br>銆銆鍔熻兘錛氫粠鏂囦歡鍚嶄腑鎶藉彇鎵╁睍鍚?br><br>銆銆鍙傛暟錛欶ileName:瑕佸鐞嗙殑鏂囦歡鍚嶏紙鍏ㄨ礬寰勶級<br><br>銆銆渚嬶細ShowMessage(ExtractFileExt(Application</span><span style="COLOR: #000000">-></span><span style="COLOR: #000000">ExeName));</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">鏄劇ず".exe"</span><span style="COLOR: #008000"><br></span><span style="COLOR: #000000"><br>鈶禘xtractFileName()<br>銆銆鍘熷瀷錛?/span><span style="COLOR: #0000ff">extern</span><span style="COLOR: #000000"> PACKAGE AnsiString __fastcall ExtractFileName(</span><span style="COLOR: #0000ff">const</span><span style="COLOR: #000000"> AnsiString FileName); <br><br>銆銆鍔熻兘錛氫粠鏂囦歡鍚嶄腑鎶藉彇涓嶅惈璺緞鐨勬枃浠跺悕<br><br>銆銆鍙傛暟錛欶ileName:瑕佸鐞嗙殑鏂囦歡鍚?br><br>銆銆渚嬶細ShowMessage(ExtractFileExt(</span><span style="COLOR: #800000">"</span><span style="COLOR: #800000">c:\\Winnt\\SOL.EXE</span><span style="COLOR: #800000">"</span><span style="COLOR: #000000">));</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">鏄劇ず"SOL.EXE"</span><span style="COLOR: #008000"><br></span><span style="COLOR: #000000"><br>鈶稥xtractFilePath()<br>銆銆鍘熷瀷錛?/span><span style="COLOR: #0000ff">extern</span><span style="COLOR: #000000"> PACKAGE AnsiString __fastcall ExtractFilePath(</span><span style="COLOR: #0000ff">const</span><span style="COLOR: #000000"> AnsiString FileName); <br><br>銆銆鍔熻兘錛氫粠鏂囦歡鍚嶄腑鎶藉彇璺緞鍚?br><br>銆銆鍙傛暟錛欶ileName:瑕佸鐞嗙殑鏂囦歡鍚?br><br>銆銆渚嬶細ShowMessage(ExtractFilePath(</span><span style="COLOR: #800000">"</span><span style="COLOR: #800000">Winnt\\SOL.EXE</span><span style="COLOR: #800000">"</span><span style="COLOR: #000000">));</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">鏄劇ず"Winnt\"</span><span style="COLOR: #008000"><br></span><span style="COLOR: #000000"><br>鈶窫xtractFileDir()<br>銆銆鍘熷瀷錛?/span><span style="COLOR: #0000ff">extern</span><span style="COLOR: #000000"> PACKAGE AnsiString __fastcall ExtractFileDir(</span><span style="COLOR: #0000ff">const</span><span style="COLOR: #000000"> AnsiString FileName); <br><br>銆銆鍔熻兘錛氫粠鏂囦歡鍚嶄腑鎶藉彇鐩綍鍚?鍜屼笂涓嚱鏁頒笉鍚岋紝涓嶅寘鎷渶鍚庣殑</span><span style="COLOR: #800000">"</span><span style="COLOR: #800000">\")</span><span style="COLOR: #800000"><br></span><span style="COLOR: #000000"><br>銆銆鍙傛暟錛欶ileName:瑕佸鐞嗙殑鏂囦歡鍚?br><br>銆銆渚嬶細ShowMessage(ExtractFileDir(</span><span style="COLOR: #800000">"</span><span style="COLOR: #800000">Winnt\\SOL.EXE</span><span style="COLOR: #800000">"</span><span style="COLOR: #000000">));</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">鏄劇ず"Winnt",娉ㄦ剰鍜屼笂涓嚱鏁扮殑鍖哄埆 </span><span style="COLOR: #008000"><br></span><span style="COLOR: #000000"><br>鈶笶xtractFileDrive()<br>銆銆鍘熷瀷錛?/span><span style="COLOR: #0000ff">extern</span><span style="COLOR: #000000"> PACKAGE AnsiString __fastcall ExtractFileDrive(</span><span style="COLOR: #0000ff">const</span><span style="COLOR: #000000"> AnsiString FileName); <br><br>銆銆鍔熻兘錛氫粠鏂囦歡鍚嶄腑鎶藉彇椹卞姩鍣ㄥ悕<br><br>銆銆鍙傛暟錛欶ileName:瑕佸鐞嗙殑鏂囦歡鍚?br><br>銆銆渚嬶細ShowMessage(ExtractFileDrive(</span><span style="COLOR: #800000">"</span><span style="COLOR: #800000">c:\\Winnt\\SOL.EXE</span><span style="COLOR: #800000">"</span><span style="COLOR: #000000">));</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">鏄劇ず"c:"</span><span style="COLOR: #008000"><br></span><span style="COLOR: #000000"><br>鈶篊hangeFileExt()<br>銆銆鍘熷瀷錛?/span><span style="COLOR: #0000ff">extern</span><span style="COLOR: #000000"> PACKAGE System::AnsiString __fastcall ChangeFileExt(</span><span style="COLOR: #0000ff">const</span><span style="COLOR: #000000"> System::AnsiString FileName, </span><span style="COLOR: #0000ff">const</span><span style="COLOR: #000000"> System::AnsiString Extension); <br><br>銆銆鍔熻兘錛氭洿鏀規枃浠跺悕鐨勬墿灞曞悕錛屼笉鏄鐪熸鐨勬枃浠惰繘琛屾敼鍚嶏紝鍙槸瀵規枃浠跺悕榪欎釜瀛楃涓茶繘琛屽鐞?br><br>銆銆鍙傛暟錛欶ileName:瑕佹敼鍚嶇殑鏂囦歡鍚嶏紝Extension錛氭柊鐨勬墿灞曞悕<br><br>銆銆渚嬶細ShowMessage(ChangeFileExt(</span><span style="COLOR: #800000">"</span><span style="COLOR: #800000">c:\\Winnt\\SOL.EXE</span><span style="COLOR: #800000">"</span><span style="COLOR: #000000">,</span><span style="COLOR: #800000">"</span><span style="COLOR: #800000">.OOO</span><span style="COLOR: #800000">"</span><span style="COLOR: #000000">));</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">鏄劇ず"c:\winnt\SOL.OOO"</span><span style="COLOR: #008000"><br></span><span style="COLOR: #000000"><br>鈶籈xpandUNCFileName()<br>銆銆鍘熷瀷錛?/span><span style="COLOR: #0000ff">extern</span><span style="COLOR: #000000"> PACKAGE AnsiString __fastcall ExpandUNCFileName(</span><span style="COLOR: #0000ff">const</span><span style="COLOR: #000000"> AnsiString FileName);<br><br>銆銆鍔熻兘錛氳繑鍥炲惈鏈夌綉緇滈┍鍔ㄥ櫒鐨勬枃浠跺叏璺緞錛屾牸寮忎負錛歕\鏈哄櫒鍚峔鍏變韓鍚峔鏂囦歡鍚?br><br>銆銆鍙傛暟錛欶ileName:瑕佸鐞嗙殑鏂囦歡鍚?br><br>銆銆渚嬶細ShowMessage(ExpandUNCFileName(</span><span style="COLOR: #800000">"</span><span style="COLOR: #800000">F:\\Winnt\\SOL.EXE</span><span style="COLOR: #800000">"</span><span style="COLOR: #000000">));</span><span style="COLOR: #008000">/*</span><span style="COLOR: #008000">濡傛灉F:鏄槧灝勭殑緗戠粶椹卞姩鍣╘\NT40\WINNT錛屽垯鏄劇ず"\\NT40\WINNT\SOL.EXE"</span><span style="COLOR: #008000">*/</span><span style="COLOR: #000000"><br><br>鈶糆xtractRelativePath()<br>銆銆鍘熷瀷錛?/span><span style="COLOR: #0000ff">extern</span><span style="COLOR: #000000"> PACKAGE AnsiString __fastcall ExtractRelativePath(</span><span style="COLOR: #0000ff">const</span><span style="COLOR: #000000"> AnsiString BaseName, </span><span style="COLOR: #0000ff">const</span><span style="COLOR: #000000"> AnsiString DestName); <br><br>銆銆鍔熻兘錛氫粠鏂囦歡鍚嶄腑鎶藉彇鐩稿璺緞淇℃伅錛屽</span><span style="COLOR: #800000">"</span><span style="COLOR: #800000">..\sss\ss.asd</span><span style="COLOR: #800000">"</span><span style="COLOR: #000000">榪欑褰㈠紡<br><br>銆銆鍙傛暟錛欱aseName錛氬熀鍑嗘枃浠跺悕錛汥estName錛氱洰鏍囨枃浠跺悕<br><br>銆銆渚嬶細ShowMessage(ExtractRelativePath(</span><span style="COLOR: #800000">"</span><span style="COLOR: #800000">D:\\Source\\c\\1.123</span><span style="COLOR: #800000">"</span><span style="COLOR: #000000">,</span><span style="COLOR: #800000">"</span><span style="COLOR: #800000">D:\\Source\\Asm\\dz.asm</span><span style="COLOR: #800000">"</span><span style="COLOR: #000000">));</span><span style="COLOR: #008000">/*</span><span style="COLOR: #008000">鏄劇ず"..\asm\dz.asm"</span><span style="COLOR: #008000">*/</span><span style="COLOR: #000000"><br><br>鈶紼xtractShortPathName()<br>銆銆鍘熷瀷錛?/span><span style="COLOR: #0000ff">extern</span><span style="COLOR: #000000"> PACKAGE AnsiString __fastcall ExtractShortPathName(</span><span style="COLOR: #0000ff">const</span><span style="COLOR: #000000"> AnsiString FileName); <br><br>銆銆鍔熻兘錛氭妸鏂囦歡鍚嶈漿鎹負DOS鐨?銆?鏍煎紡<br><br>銆銆鍙傛暟錛欶ileName:瑕佸鐞嗙殑鏂囦歡鍚?br><br>銆銆渚嬶細ShowMessage(ExtractShortPathName(</span><span style="COLOR: #800000">"</span><span style="COLOR: #800000">E:\\Program Files\\Dual Wheel Mouse\\4dmain.exe</span><span style="COLOR: #800000">"</span><span style="COLOR: #000000">));</span><span style="COLOR: #008000">/*</span><span style="COLOR: #008000">鏄劇ず"E:\Progra~1\dualwh~1\4dmain.exe"</span><span style="COLOR: #008000">*/</span><span style="COLOR: #000000"><br><br>鈶綧atchesMask()<br>銆銆鍘熷瀷錛?/span><span style="COLOR: #0000ff">extern</span><span style="COLOR: #000000"> PACKAGE </span><span style="COLOR: #0000ff">bool</span><span style="COLOR: #000000"> __fastcall MatchesMask(</span><span style="COLOR: #0000ff">const</span><span style="COLOR: #000000"> AnsiString Filename, </span><span style="COLOR: #0000ff">const</span><span style="COLOR: #000000"> AnsiString Mask);<br><br>銆銆鍔熻兘錛氭鏌ユ枃浠舵槸鍚︿笌鎸囧畾鐨勬枃浠跺悕鏍煎紡鍖歸厤<br><br>銆銆鍙傛暟錛欶ileName:瑕佸鐞嗙殑鏂囦歡鍚嶏紱Mask:鏂囦歡鍚嶆牸寮忥紝鏀寔閫氶厤絎?br><br>銆銆渚嬶細ShowMessage(MatchesMask(</span><span style="COLOR: #800000">"</span><span style="COLOR: #800000">Lxf.exe</span><span style="COLOR: #800000">"</span><span style="COLOR: #000000">,</span><span style="COLOR: #800000">"</span><span style="COLOR: #800000">*.?x?));//鏄劇ず</span><span style="COLOR: #800000">"</span><span style="COLOR: #0000ff">true</span><span style="COLOR: #800000">"</span> <img src ="http://www.shnenglu.com/cjz/aggbug/35845.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/cjz/" target="_blank">椋涘ぉ</a> 2007-11-04 10:48 <a href="http://www.shnenglu.com/cjz/archive/2007/11/04/35845.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鏈榪戜唬紕?/title><link>http://www.shnenglu.com/cjz/archive/2007/08/13/29903.html</link><dc:creator>椋涘ぉ</dc:creator><author>椋涘ぉ</author><pubDate>Mon, 13 Aug 2007 05:30:00 GMT</pubDate><guid>http://www.shnenglu.com/cjz/archive/2007/08/13/29903.html</guid><wfw:comment>http://www.shnenglu.com/cjz/comments/29903.html</wfw:comment><comments>http://www.shnenglu.com/cjz/archive/2007/08/13/29903.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/cjz/comments/commentRss/29903.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/cjz/services/trackbacks/29903.html</trackback:ping><description><![CDATA[         涓.閬告搰鏂囦歡澶懼皪瑭辨銆?br>          #include <shlobj.h><br>         ........<br>          BROWSEINFO   bi;<br>          LPITEMIDLIST   pDir;<br>          char   path[MAX_PATH]={"C:\\"};<br>          bi.hwndOwner   =Handle;<br>          bi.lpszTitle   ="璜嬮伕鎿囦竴鍊嬬洰閷勶紝瑭茬洰閷勬槸浣犺淇濆瓨鏁告摎鐨勭洰閷?";<br>          bi.pszDisplayName   =path;<br>          bi.ulFlags   =BIF_RETURNONLYFSDIRS;//BIF_BROWSEFORCOMPUTER   ;<br>          bi.pidlRoot   =NULL;<br>          bi.lpfn   =NULL;<br>          bi.lParam   =124;<br>          pDir=SHBrowseForFolder(&bi);<br>          if(pDir!=NULL)<br>          {<br>                  SHGetPathFromIDList(pDir,path);<br>                  edtFileName->Text=(AnsiString)path;<br>          }<br><br><span style="FONT-SIZE: 10pt">Public Const BIF_BROWSEFORCOMPUTER = &H1000 銆銆銆銆銆銆娉ㄩ噴錛氬厑璁告祻瑙堣綆楁満<br>Public Const BIF_BROWSEFORPRINTER = &H2000 銆銆銆銆銆銆 娉ㄩ噴錛氬厑璁告祻瑙堟墦鍗版満鏂囦歡澶?br>Public Const BIF_BROWSEINCLUDEFILES = &H4000 銆銆銆銆銆 娉ㄩ噴錛氬厑璁稿悓鏃舵祻瑙堟枃浠訛紙闇IE4錛?br>Public Const BIF_DONTGOBELOWDOMAIN = &H2 銆銆銆銆銆銆銆 娉ㄩ噴錛氬己鍒剁敤鎴峰仠鐣欏湪緗戜笂閭誨眳涓?br>Public Const BIF_EDITBOX = &H10 銆銆銆銆銆銆銆銆銆銆銆銆娉ㄩ噴錛氬彲鍦ㄨ緭鍏ユ涓洿鎺ヨ緭鍏ユ枃浠跺す鍚嶏紙闇IE4錛?br>Public Const BIF_RETURNFSANCESTORS = &H8 銆銆銆銆銆銆銆 娉ㄩ噴錛氳繑鍥炴枃浠剁郴緇熺鍏堬紵<br>Public Const BIF_RETURNONLYFSDIRS = &H1 銆銆銆銆銆銆銆銆娉ㄩ噴錛氫粎鍏佽嫻忚鏂囦歡緋葷粺<br>Public Const BIF_STATUSTEXT = &H4 銆銆銆銆銆銆銆銆銆銆銆娉ㄩ噴錛氭樉紺虹姸鎬佹爮<br>Public Const BIF_USENEWUI = &H40 銆銆銆銆銆銆銆銆銆銆銆 娉ㄩ噴錛氫嬌鐢ㄦ柊鐣岄潰錛堜粎鏀寔Win2000銆乄inME錛?br>Public Const BIF_VALIDATE = &H20銆銆銆銆銆銆銆銆銆銆銆銆娉ㄩ噴錛氳嫢杈撳叆涓涓潪娉曟枃浠跺す鍚嶏紝灝辮繑鍥?br>銆銆銆銆銆銆銆銆銆銆銆銆銆銆銆銆銆銆銆銆銆銆銆銆銆 銆銆銆BFFM_VALIDATEFAILED 緇欏洖璋冨嚱鏁?nbsp;<br>          浜?鍓靛緩澶氬堡鏂囦歡澶?br><br>             1.鍙互鐢ˋPI CreateDirectory.<br>                 CreateDirectory鍙兘鍓靛緩鍠堡鐩寗銆?br>             2.浣跨敤BCB涓嚜甯剁殑鍑芥暩ForceDirectories(AnsiString path);<br>                #include <filectrl.hpp><br></span>         涓?鎿嶄綔ini鏂囦歡<br>            #incldue <inifiles.hpp><br>              1.璁鎿嶄綔<br>             AnsiString strPath,strFile;<br>    strPath=ExtractFilePath(Application->ExeName);<br>    strFile=strPath+"reademail.ini";<br>    TIniFile *ini=new TIniFile(strFile);<br>    //ini-><br>    edtFileName->Text=ini->ReadString("Config","FileName","");<br>    edtSheet->Text=ini->ReadString("Config","Sheet","1");<br>    edtColumn->Text=ini->ReadString("Config","Column","1");<br>    edtEmailPath->Text=ini->ReadString("Config","EmailPath",strPath);<br>    delete ini;<br>           2.瀵搷浣?br>                AnsiString strPath,strFile;<br>    strPath=ExtractFilePath(Application->ExeName);<br>    strFile=strPath+"reademail.ini";<br>    TIniFile *ini=new TIniFile(strFile);<br>    //ini-><br>    ini->WriteString("Config","FileName",edtFileName->Text);<br>    ini->WriteString("Config","Sheet",edtSheet->Text);<br>    ini->WriteString("Config","Column",edtColumn->Text);<br>    ini->WriteString("Config","EmailPath",edtEmailPath->Text);<br>    delete ini; <img src ="http://www.shnenglu.com/cjz/aggbug/29903.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/cjz/" target="_blank">椋涘ぉ</a> 2007-08-13 13:30 <a href="http://www.shnenglu.com/cjz/archive/2007/08/13/29903.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Bcb涓殑Excel鎿嶄綔欏?/title><link>http://www.shnenglu.com/cjz/archive/2007/08/03/29256.html</link><dc:creator>椋涘ぉ</dc:creator><author>椋涘ぉ</author><pubDate>Fri, 03 Aug 2007 02:29:00 GMT</pubDate><guid>http://www.shnenglu.com/cjz/archive/2007/08/03/29256.html</guid><wfw:comment>http://www.shnenglu.com/cjz/comments/29256.html</wfw:comment><comments>http://www.shnenglu.com/cjz/archive/2007/08/03/29256.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/cjz/comments/commentRss/29256.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/cjz/services/trackbacks/29256.html</trackback:ping><description><![CDATA[     鎽樿:       鏈榪戝仛涓鍊嬪皥妗堬紝瑕佹眰鑳藉皣Excel琛ㄤ腑鐨勬暩鎿氳綁鍏ユ暩鎿氬韓錛屽弽涔嬪皣鏁告摎搴殑鍏у灝庡叆鍒癊xcel琛ㄤ腑銆傜湅浜嗙恫涓婂鐨勯棞浜庢搷浣淓xcel鐨勬柟娉曪紝瀵簡涓鍊嬬啊鍠殑Excel鎿嶄綔欏炪傚姛鑳介倓涓嶆槸寰堝畬鍠勶紝浠ュ悗鍐嶆參鎱慨鏀廣?nbsp;     *************************************...  <a href='http://www.shnenglu.com/cjz/archive/2007/08/03/29256.html'>闃呰鍏ㄦ枃</a><img src ="http://www.shnenglu.com/cjz/aggbug/29256.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/cjz/" target="_blank">椋涘ぉ</a> 2007-08-03 10:29 <a href="http://www.shnenglu.com/cjz/archive/2007/08/03/29256.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <p>感谢您访问我们的网站,您可能还对以下资源感兴趣:</p> <a href="http://www.shnenglu.com/" title="精品视频久久久久">精品视频久久久久</a> <div class="friend-links"> </div> </div> </footer> <a href="http://www.mianfei100.cn" target="_blank">亚洲伊人久久大香线蕉综合图片</a>| <a href="http://www.hybdh.cn" target="_blank">99久久超碰中文字幕伊人</a>| <a href="http://www.bbctp.cn" target="_blank">久久国产成人午夜AV影院</a>| <a href="http://www.iyuhu.cn" target="_blank">久久精品国产亚洲Aⅴ香蕉</a>| <a href="http://www.kottbac.cn" target="_blank">久久久国产精品</a>| <a href="http://www.lihd.cn" target="_blank">麻豆AV一区二区三区久久 </a>| <a href="http://www.fzlqb.cn" target="_blank">国産精品久久久久久久</a>| <a href="http://www.oxygeniclife.com.cn" target="_blank">久久国产综合精品五月天</a>| <a href="http://www.the-music-cable.cn" target="_blank">一极黄色视频久久网站</a>| <a href="http://www.ggjkb.cn" target="_blank">久久―日本道色综合久久</a>| <a href="http://www.xkeir8vz.cn" target="_blank">久久久久九九精品影院</a>| <a href="http://www.taozhenyuan.cn" target="_blank">久久久久久久97</a>| <a href="http://www.dpww.net.cn" target="_blank">大香伊人久久精品一区二区 </a>| <a href="http://www.gaguni.cn" target="_blank">色综合久久久久网</a>| <a href="http://www.chcrw.cn" target="_blank">丁香色欲久久久久久综合网</a>| <a href="http://www.vgunu.cn" target="_blank">国产香蕉97碰碰久久人人</a>| <a href="http://www.evane.cn" target="_blank">色综合久久无码五十路人妻</a>| <a href="http://www.ouhly.cn" target="_blank">日韩电影久久久被窝网</a>| <a href="http://www.zysun.com.cn" target="_blank">久久综合九色综合欧美狠狠</a>| <a href="http://www.love20.com.cn" target="_blank">色综合久久久久久久久五月</a>| <a href="http://www.baojingqi88.org.cn" target="_blank">久久99精品久久久久久不卡</a>| <a href="http://www.madouwang.cn" target="_blank">精品熟女少妇a∨免费久久</a>| <a href="http://www.xn88.cn" target="_blank">久久精品国产色蜜蜜麻豆</a>| <a href="http://www.kyj123.cn" target="_blank">久久精品无码一区二区app</a>| <a href="http://www.ejjn.cn" target="_blank">久久精品国产精品亚洲精品</a>| <a href="http://www.gangzheng.net.cn" target="_blank">99久久国产宗和精品1上映</a>| <a href="http://www.kpqo.cn" target="_blank">无夜精品久久久久久</a>| <a href="http://www.scqpw.cn" target="_blank">久久亚洲电影</a>| <a href="http://www.kanqiuwang.cn" target="_blank">久久人人超碰精品CAOPOREN</a>| <a href="http://www.17349.cn" target="_blank">久久精品国产亚洲精品</a>| <a href="http://www.djlf.net.cn" target="_blank">国产真实乱对白精彩久久</a>| <a href="http://www.mdeditor.cn" target="_blank">激情久久久久久久久久</a>| <a href="http://www.9r6.com.cn" target="_blank">AAA级久久久精品无码区</a>| <a href="http://www.52wysq.cn" target="_blank">国产免费久久精品99久久</a>| <a href="http://www.zhoucheng888.cn" target="_blank">精品午夜久久福利大片</a>| <a href="http://www.umw.net.cn" target="_blank">亚洲狠狠综合久久</a>| <a href="http://www.dbwlcom.cn" target="_blank">93精91精品国产综合久久香蕉</a>| <a href="http://www.cq928.cn" target="_blank">一本大道久久a久久精品综合</a>| <a href="http://www.tvhhm.cn" target="_blank">国产AV影片久久久久久</a>| <a href="http://www.kuaiyanapp.com.cn" target="_blank">国产2021久久精品</a>| <a href="http://www.xnhtml.com.cn" target="_blank">欧美成a人片免费看久久</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>