摘要:前段时间做了一个项目,其中要求调用一个VC6开发的Dll文件,而该文件有多个不同的版本,所以要支持动态调用,并支持卸载。在收集了一些这方面的资料后,编写了下面的类,该类可以方便的调用各种类型的dll,而且简单实用。view plaincopy to clipboardprint?using System; using System.Collections.Generic; using System...
阅读全文
摘要:www.ffmpeg.com.cn.NET 2.0 调用FFMPEG,并异步读取输出信息的代码... public void ConvertVideo(){ Process p = new Process();//建立外部调用线程 p.StartInfo.FileName = @"c:\ffmpeg.exe";//要调用外部程序的绝对路径 p.StartInfo.Arguments = "-i X...
阅读全文
摘要:包flash.media类public final class SoundCodec继承SoundCodec Object语言版本:ActionScript 3.0运行时版本:Flash Player 10, AIR 1.5SoundCodec 类是在设置 Microphone 类的 codec 属性时使用的常量值的枚举。 公共属性 隐藏继承的公共属性 显示继承的公共属性属性定义方constru...
阅读全文
摘要:显示图片:(4-4-5显示)数据绑定:private void BindDate() {DataView dv = null; try//新闻列表 { dv = zhan.Data.Sql.PubClass.ExecuteDataView("", "select top 13 * from t_xw where xwlb_id=2 order by XW_SJ desc"); count = dv...
阅读全文
摘要:这是一篇阅读小结,是关于《Windows Forms 程序设计》中模式与非模式对话框的部分。书乃大师所写,精妙至极,大师下笔慎重而惜墨,平淡之中蕴含新奇,因而往往点到即止。作为读者的我乃凡夫俗子,必定细细揣摩而后得之。本文所写即是在阅读了书中的有关段落之后,根据自己试验所得之体会,为了便于自己理解,做了必要扩充。虽然只是简单的窗体调用,但如果能用好其中的某些细节,相信会带来意想不到的效果。一、如何...
阅读全文
摘要:// test.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include "test.h"#include <Wininet.h>#include <Sensapi.h>#ifdef _DEBUG#define new DEBUG_NEW#undef THI...
阅读全文
摘要:using System;using System.Collections.Generic;using System.Text;using System.Runtime.InteropServices; class NetStatus { private const long INTERNET_CONNECTION_MODEM = 1;//Local system uses a modem to ...
阅读全文
摘要:CREATE proc sp_user@username nvarchar(20),@pwd nvarchar(20)asdeclare @sql nvarchar(500)set @sql='select a.*,b.rolename from t_user a,t_role b where a.username='''+@username+''' and a.pwd='''+@pwd+''' ...
阅读全文
摘要:using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts...
阅读全文