上一页 1 2 3 4 5 6 7 8 ··· 12 下一页
public class NativeWIN32 { public NativeWIN32() { } /* ------- using WIN32 Windows API in a C# application ------- */ [... Read More
posted @ 2014-06-15 22:50 梦醒心晴 Views(1399) Comments(0) Diggs(0)
最近一直想用VC#2005做个内嵌WORD/OFFICE的WINFORM程序,目前主要有以下解决途径:1、直接通过API把WORD/OFFICE的窗口句柄给放到WINFORM中(感觉较为复杂);2、通过WEB BROWSER;3、利用DSOFRAMER。本人都测试了一下,觉得DSOFRAMER更符合... Read More
posted @ 2014-05-17 16:08 梦醒心晴 Views(5109) Comments(0) Diggs(0)
1. a表中是否存在c的列IF COL_LENGTH('FeeType', 'ftName') IS NOT NULL select N'存在'as result ELSE select N'不存在' as result 2.通过代码插入列 Read More
posted @ 2014-04-23 10:40 梦醒心晴 Views(167) Comments(0) Diggs(0)
通过SQL Server,也可以发送邮件,而且配置过程也是非常的简单,只需要你有邮箱就行。下面就通过SQL Server来发送邮件。一、启用Database Mail XPs功能。查看Database Mail XPs功能是否打开,从返回结果来看,value为0说明没有打开,注意SQL Mail X... Read More
posted @ 2014-04-14 18:00 梦醒心晴 Views(661) Comments(0) Diggs(0)
-- =============================================-- Author: -- Create date: -- Description: -- =============================================ALTER PROCEDURE [dbo].[proGetCustomID] @TableName VARCHAR(50), @FieldName VARCHAR(50), @BeginChar VARCHAR(5), @NumberLen INT=10--默认10ASBEGI... Read More
posted @ 2014-04-04 11:29 梦醒心晴 Views(1494) Comments(0) Diggs(0)
ALTER PROCEDURE [dbo].[pro_backupDB] ASBEGIN SET NOCOUNT ON; declare @fileName nvarchar(255),@path nvarchar(255),@DataBase nvarchar(50); set @path='D:\webfile\dbBackFile\RMmsDB\'; set @DataBase='Ribecs'; set @fileName = @path+CONVERT(varchar(10), GETDATE(), 23)+'_Ribecs.BAK'; Read More
posted @ 2014-04-04 11:22 梦醒心晴 Views(322) Comments(0) Diggs(0)
using System;using System.IO.Ports;namespace Common{ public class LedHelper { private static int _baudRate = 2400; private static string _portName = "COM2"; /// /// 串型端口对象 /// private static SerialPort _serialPort; /// /// 波特率 /... Read More
posted @ 2014-03-16 16:28 梦醒心晴 Views(347) Comments(0) Diggs(0)
吃了可以加血的血块类import java.awt.*;public class Blood { //血块移动的路径 int[][] pos = { {450,250},{450,252},{450,254},{450,256},{450,258},{450,260}, {450,310},{452,300},{454,300},{456,300},{458,300},{460,300} }; int x,y,w,h; TankClient tc; int step = 0; private ... Read More
posted @ 2014-02-24 11:26 梦醒心晴 Views(398) Comments(0) Diggs(0)
主界面import java.awt.BorderLayout;import java.awt.Color;import java.awt.Container;import java.awt.Graphics;import java.awt.Toolkit;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import java.awt.event.MouseEvent;import java.awt.event.MouseListener;import java.awt.image.BufferedI Read More
posted @ 2014-02-24 11:10 梦醒心晴 Views(1205) Comments(0) Diggs(0)
主要的蛇的类import java.awt.Color;import java.awt.Graphics;import java.awt.HeadlessException;import java.awt.Rectangle;import java.awt.event.KeyEvent;import java.util.Random;public class Snake { private Node head = null; private Node tail = null; int size = 0; private boolean live = true; ... Read More
posted @ 2014-02-24 11:02 梦醒心晴 Views(373) Comments(0) Diggs(1)
上一页 1 2 3 4 5 6 7 8 ··· 12 下一页