重寫(xiě)了微軟提供SQLHelper(共用的數(shù)據(jù)庫(kù)調(diào)用接口) 1把SqlHelper的connectionString做成一個(gè)全局量,統(tǒng)一設(shè)置數(shù)據(jù)庫(kù)連接字符串 2增加了返回特定表名的DataSet的各接口。 可在項(xiàng)目的config文件設(shè)置數(shù)據(jù)庫(kù)連接字符串 Private static string connectionString = System.Configuration.ConfigurationSettings.AppSettings["ConnectionString"] <!-- application specific settings --> <appSettings> <add key="ConnectionString" value="packet size=4096 user id=sa data source=localhost persist security info=True initial catalog=NorthWind password= "/> </appSettings> 當(dāng)然可以把數(shù)據(jù)庫(kù)連接方法修改后直接用。
標(biāo)簽: connectionString SQLHelper SqlHelper 微軟
上傳時(shí)間: 2013-12-12
上傳用戶:釣鰲牧馬
WebServices_WebSphere_Version_5 Objectives § Web Services Overview • What are Web Services? • Roles and Functions of Web Services § Web Services Runtime • Base Support • IBM WebSphere UDDI Registry (Private UDDI) • Web Services Gateway (WSGW) § Problem Determination § Web Services Security § Technical Previews § Summary
標(biāo)簽: Services WebServices_WebSphere_Version Objectives Web
上傳時(shí)間: 2015-06-15
上傳用戶:cx111111
第三章列出了Windows CE執(zhí)行緒在排程時(shí)的幾個(gè)主要函數(shù),在本章中將藉著分析這些函數(shù)的流程,來(lái)了解執(zhí)行緒在排程過(guò)程中的行為。本章所節(jié)選的程式碼全部來(lái)自[CEROOT]\Private\WINCEOS\COREOS\NK\KERNEL目錄下的 schedule.c檔
標(biāo)簽: Windows
上傳時(shí)間: 2015-07-01
上傳用戶:xiaodu1124
KVM (for Kernel-based Virtual Machine) is a full virtualization solution for Linux on x86 hardware. It consists of a loadable kernel module (kvm.ko) and a userspace component. Using KVM, one can run multiple virtual machines running unmodified Linux or Windows images. Each virtual machine has Private virtualized hardware: a network card, disk, graphics adapter, etc. The kernel component of KVM is included in mainline Linux, and will appear in Linux 2.6.20. KVM is open source software.
標(biāo)簽: virtualization Kernel-based for hardware
上傳時(shí)間: 2015-08-20
上傳用戶:lijianyu172
Visual Basic 6.0可以通過(guò)調(diào)用API函數(shù)格式化一個(gè)磁盤(pán),無(wú)論是軟盤(pán)還是硬盤(pán)。 打開(kāi)一個(gè)新的項(xiàng)目(工程1) ,如果你沒(méi)有更改過(guò)缺省模式,那么Visual Basic 6.0會(huì)自動(dòng)添加一個(gè)form1文件,在form1上添加一個(gè)命令控件,將下面的代碼拷入。 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 運(yùn)行此程序。 注意FormatDisk函數(shù)的第一個(gè)變量很重要,他的值是0,1,2時(shí)代表格式化的分別是:A、B、C盤(pán)。
標(biāo)簽: Visual Basic 6.0 API
上傳時(shí)間: 2015-10-05
上傳用戶:kytqcool
第一個(gè)是path 和 CLASSPATH的問(wèn)題 第二個(gè)是package和import問(wèn)題 第三個(gè)是public,protected,Private,static,什 么時(shí)候用,為什么要用,怎么用 第四個(gè)是制作jar文件
標(biāo)簽: CLASSPATH package import public
上傳時(shí)間: 2014-01-18
上傳用戶:qlpqlq
利用WM5 實(shí)現(xiàn)電話功能 在程序中進(jìn)行電話撥號(hào) “項(xiàng)目”—“添加引用”—“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
標(biāo)簽: Microsoft WindowsMobile Telephony Imports
上傳時(shí)間: 2013-12-20
上傳用戶:hasan2015
問(wèn)題描述:編寫(xiě)一個(gè)JAVA程序,用面向?qū)ο笤O(shè)計(jì)的方法編寫(xiě)一個(gè)電話卡的類。包括卡號(hào)、密碼、余額、撥入號(hào)碼等 b)基本要求:類的屬性有卡號(hào)、密碼、余額、撥入號(hào)碼,電話卡的常用操作可以用連接電話方法、返回余額方法與通電話方法來(lái)實(shí)現(xiàn)。 c)方法功能描述: 構(gòu)造方法(PhoneCard(卡號(hào),密碼,余額,撥入號(hào)碼))可以完成屬性值初始化賦值,并判斷余額,余額為負(fù)就退出系統(tǒng),請(qǐng)?jiān)跇?gòu)造方法中將初始時(shí)的連接置為false即表示沒(méi)有連接。 卡號(hào)long cardNumber 密碼Private int password,余額double balance,撥入號(hào)碼string connectNumber boolean connected(一個(gè)布爾類型變量表示電話卡連接狀態(tài),初始時(shí)默認(rèn)沒(méi)有連接,值為false,當(dāng)調(diào)用連接電話方法()后,在判斷卡號(hào)和密碼相匹配后值置為true) 連接電話方法(performConnection(卡號(hào),密碼))可以完成檢查卡號(hào)和密碼,它是只有在卡號(hào)和密碼相匹配時(shí)才連接 返回余額方法(getBalance())得到電話卡的余額 通電話方法(performDial())是模擬通過(guò)過(guò)程中,余額會(huì)不斷減少,每調(diào)用此方法,電話卡的余額減少0。5元,打一次電話調(diào)用一次
上傳時(shí)間: 2014-01-20
上傳用戶:1109003457
請(qǐng)將OpenPet.ico 放在c盤(pán)文件下 當(dāng)然你也可以放在程序目錄,那就要修改程序 將Private Icon img = new Icon(@"C:\OpenPet.ico") 改為Private Icon img = new Icon("OpenPet.ico")
上傳時(shí)間: 2014-01-21
上傳用戶:qiaoyue
Dijkstra算法求最短路徑(C#版) using System using System.Collections using System.Text namespace Greedy { class Marx { Private int[] distance Private int row Private ArrayList ways = new ArrayList() public Marx(int n,params int[] d) { this.row = n distance = new int[row * row] for (int i = 0 i < row * row i++) { this.distance[i] = d[i]
標(biāo)簽: System using Collections namespace
上傳時(shí)間: 2013-12-29
上傳用戶:liglechongchong
蟲(chóng)蟲(chóng)下載站版權(quán)所有 京ICP備2021023401號(hào)-1