04 2014 档案
摘要:private void Window_Loaded(object sender, RoutedEventArgs e) { // 获取窗体句柄 IntPtr hwnd = new System.Windows.Interop.Window...
阅读全文
摘要:首先,需要保证oracle客户端服务器的字符集是一样的,并且保证该字符集支持中文。你可以使用plsql查看是否乱码。代码:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Data.OleDb;namespace Oracle中文{ class Program { static void Main(string[] args) { Console.WriteLine("开始连接oraclr数据库...
阅读全文
摘要:Process p = new System.Diagnostics.Process(); //设置新进程的工作目录,如果不设置那么新进程的工作目录为开启这个进程的工作目录 p.StartInfo.WorkingDirectory = @"E:\会计助手代码\CNCTKJPT\CNCTKJPT\bin\Debug"; //设置进程启动文件 p.StartInfo.FileName = @"CNCTKJPT.exe"; //设置进程启动参数 p.StartInfo....
阅读全文