CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - INT 1
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Sub Category
Oracle
SQL Server
MySQL
Other Databases
Search - INT 1 - List
[
Database system
]
222
DL : 0
这是在学习数据库时写的一个程序,采取DAO访问ACCESS数据库的方式 1:在程序中使用了CButtonStyle这个免费类库。 2:在InitButtonSytle()中,为了使代码更短小,用循环实现了位图按钮。 // 用循环实现必须手动改动Resource.h中的定义 // 具体细节请参看源代码 for ( int nIco = IDI_JUMP, nBtn = IDC_JUMP nBtn >= IDC_LISTITEM nIco--, nBtn-- ) { CButtonStyle *Button = ButtonList.RemoveTail() Button->SubclassDlgItem( nBtn, this ) Button->SetIcon( nIco ) Button->SetInactiveBgColor() Button->SetInactiveFgColor() Button->SetActiveBgColor() }-This is in learning to write a database procedure, visit the ACCESS database DAO take way 1: in the procedure used CButtonStyle This free class library. 2: InitButtonSytle () in order to make the code more short cycle achieved using bitmap button.// Use recycled Resource.h realize changes must be manually defined in// the specific details please see the source code for (int nIco = IDI_JUMP, nBtn = IDC_JUMP nBtn
Date
: 2026-01-06
Size
: 113kb
User
:
yang
[
Database system
]
splitA
DL : 0
Alter FUNCTION [dbo].[split](@expression VarChar(max),@delimiter VarChar(30) = ' ') RETURNS @TmpTable TABLE (RefNo VarChar(max)) AS BEGIN if rtrim(isnull(@expression,'')) > '' begin declare @cxml xml set @cxml = '<x_k><![CDATA['+replace(@expression,@delimiter,']]></x_k><x_k><![CDATA[')+']]></x_k>' insert into @TmpTable select ls.row.value('.[1]','varchar(max)') as refno--, identity(int,1,1) as idno from @cxml.nodes('/x_k') as ls(row) end RETURN END GO(A SQL imitates the split function in VB to achieve a high efficiency by turning a text string into a data table.)
Date
: 2026-01-06
Size
: 1kb
User
:
salonstarA
[
Database system
]
SQL作业
DL : 0
定义一个名为MyRectangle的矩形,类中有四个私有整型域,分别是矩形的左上角坐标(xUp,yUp)和右下角坐标(xDowm,yDown);类中定义没有参数的构造方法和有四个int参数的构造方法,用来初始化类对象。(A rectangle named MyRectangle is defined with four private integer domains in the class, the xUp (yUp) of the rectangle, and the xDowm (yDown) in the lower right corner (xDowm, yDown); in the class, a construction method with no parameters and a construction method with four int parameters are used to initialize the class object.)
Date
: 2026-01-06
Size
: 1.79mb
User
:
cc4
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.