Visual Basic 6.0可以通過調(diào)用API函數(shù)格式化一個磁盤,無論是軟盤還是硬盤。
打開一個新的項目(工程1) ,如果你沒有更改過缺省模式,那么Visual Basic 6.0會自動添加一個form1文件,在form1上添加一個命令控件,將下面的代碼拷入。
Option Explicit
Private Declare Function SHFormatDrive Lib"shell32"( ByVal Hend AS Long,ByVal Drive AS Long,ByVal FormatID AS Long,ByVal Options AS Long) as Long
Private Sub FormatDisk(intDrive as integer,blnQuickFormat as Boolean)
dim lngReturn As Long
if (blnQuickFormat) then
lngReturn= SHFormatDrive(0,intDrive,0&,1&)
else
lngReturn= SHFormatDrive(0,intDrive,0&,0&)
end if
end Sub
Private Sub Command1_Click()
call FormatDisk(0,True)
End Sub
運行此程序。
注意FormatDisk函數(shù)的第一個變量很重要,他的值是0,1,2時代表格式化的分別是:A、B、C盤。
利用WM5 實現(xiàn)電話功能
在程序中進行電話撥號
“項目”—“添加引用”—“Microsoft.WindowsMobile.Telephony”—“確定”
Imports Microsoft.WindowsMobile.Telephony
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim TestPhone As New Phone
TestPhone.Talk("1001")
End Sub
OpenSS7 This the fourth public release of the OpenSS7 Master Package. See README in the release for a sub-package listing. Most of the sub-packages in the release are production grade for Linux Fast-STREAMS. All existing validation test suites run clean on supported distributions and architectures.
It is unlikely that the OpenSS7 Master Package will be released as frequently as before. Sub-packages will be released more often. To rebuild the master package with a new sub-package release, simply replace the directory to which the sub-package belongs with the unpacked sub-package release and then rebuild the master package. This release provides support for recent distributions and tool chains.
Samples are organized by chapter, and then by "application" or example name. You should open a project in Visual Studio .NET through the .sln (solution) file.
Note that Visual Studio .NET automatically creates various temporary and debugging files in the obj and bin sub-directory for each project. The actual uncompiled code is only the .vb files that are contained in the root project directory.
The present document specifies the CAMEL Application Part (CAP) supporting the fourth phase of the network feature Customized Applications for Mobile network Enhanced Logic. CAP is based on a sub-set of the ETSI Core INAP CS-2 as specified by ETSI EN 301 140 1 [26]. Descriptions and definitions provided by ETSI EN 301 140 1 [26] are directly referenced by this standard in the case no additions or clarifications are needed for the use in the CAP.
其中:ClientInfor.inf 文件:
第一行的數(shù)據(jù)表示: 客戶端游戲版本號
第一行的數(shù)據(jù)表示: 更新文件存放的網(wǎng)絡(luò)路徑
UpdateInfor.inf文件:
第一行的數(shù)據(jù)表示: 最新游戲版本號
第二行的數(shù)據(jù)表示: 有多少文件需要更新
后面每行的數(shù)據(jù)表示: 需要更新的文件的名稱
frmUpdate.frm窗體: 負責(zé)下載
modZip.BAS模塊: 只負責(zé)用來壓縮文件和解壓縮文件的
其中的 UnZipTo 函數(shù)用來解壓縮的
zlib.dll: 為WinZip的dll文件
更新完畢后,ClientInfor.inf文件的第一行的數(shù)據(jù)會變?yōu)樽钚掳姹咎?
frmUpdate.frm窗體代碼如下:
Private Sub cmdExit_Click()
Unload Me
End Sub
Private Sub cmdUpdate_Click()
Dim strClientInfor() As String
Dim strUpdateInfor() As String
Dim nNum As Integer 存
SDRAM 參考設(shè)計:主要包括The following figure shows a high-level block diagram for this reference design followed by a brief
description of each sub-section. The design consists of:
· PowerPC processor
· PLB-OPB bridge
· BlockRAM Memory Controller
· SDRAM Controller
· Two GPIO ports
· A UART Port
· External SDRAM