-
孙国顺
2008-09-23
-
请教您一个问题,我想让窗体载入的时候显示进度条,进度条显示完成则关闭窗体,应该怎么实现
-
孙国顺
2008-09-22
-
http://topic.csdn.net/u/20080905/16/1397ad61-66cc-4c20-bf99-216fb91fe547.html
-
孙国顺
2008-09-22
-
最近做了一个程序,要求用户启动程序的时候首先将工作目录下的com和com+文件都注册一下,注册功能是实现了,代码如下,现在就是想用窗体显示注册的进度,注册过程中出现错误则跳到下一个文件注册,应该怎么实现呢?
using System;
using System.Collections.Generic;
using System.Windows.Forms;
using System.IO;
namespace AppStart
{
static class Program
{
/// <summary>
/// 应用程序的主入口点。
/// </summary>
[STAThread]
static void Main()
{
System.Diagnostics.Process p = new System.Diagnostics.Process();
//p.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardInput = true;
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.RedirectStandardError = true;
p.StartInfo.CreateNoWindow = true;
DirectoryInfo di = new DirectoryInfo(Directory.GetCurrentDirectory());
foreach (FileInfo fi in di.GetFiles("*.dll"))
{
try
{
p.StartInfo.FileName = "regsvr32.exe";
p.StartInfo.Arguments = "/s " + fi.Name;
p.Start();
}
catch
{
goto Flag1;
}
Flag1:
try
{
p.StartInfo.FileName = "regasm.exe";
p.StartInfo.Arguments = "/s " + fi.Name;
p.Start();
}
catch
{
continue;
}
}
foreach (FileInfo fi in di.GetFiles("*.ocx"))
{
try
{
p.StartInfo.FileName = "regsvr32.exe";
p.StartInfo.Arguments = "/s " + fi.Name;
p.Start();
}
catch
{
goto Flag2;
}
Flag2:
try
{
p.StartInfo.FileName = "regasm.exe";
p.StartInfo.Arguments = "/s " + fi.Name;
p.Start();
}
catch
{
continue;
}
}
//注册完成启动主程序
System.Diagnostics.Process.Start("WTechFrame.exe");
}
}
}
-
cytcyt123
2008-09-18
-
《股权管理系统》具有对股票和股权全方位的操作,可进行认购原始股票、送股、配股、转入、转增、转出、分红利,增加股东,删除股东等操作。并能对所有的异动,分红情况进行存折打印以及打印股权证,股东名册.每个股东都有自己独立的帐号,系统能把对股东股权的每一次操作的结果都储存在个人帐号数据库中,可以随时查阅和打印输出。 在分红后,系统能将分红金额制作银行转帐数据盘,以软磁盘上报银行。
-
cytcyt123
2008-09-18
-
你好,想请教一下你能不能给我开发一个内部股权管理的软件,谢谢
-
尤建波
回复于
2008-09-18
-
开发可以.可也不能白干啊.兄弟们都要养家糊口的啊.你说对不.
-
刘智新
2008-09-05
-
请您抽空到
http://topic.csdn.net/u/20080904/22/42d21f37-92aa-446c-8921-a4c1595a61ea.html
再看看,谢谢!
-
杨明
2008-08-22
-
请问VC基于对话框的程序,在每次切换对话框时,内存都会增加,除了切换对话框的代码,再无其他代码.频繁切换画面,系统就会因内存泄露而中断.请问您有什么好的建议吗?
-
尤建波
回复于
2008-08-25
-
虽然对VC接触不多,但是从原理上讲,你这个问题是因为GDI的资源没有释放引起的
-
Bruce
回复于
2008-09-09
-
对话框paint消息的处理里边有没有leak呢?你可以用bounds checker之类的工具检查一些memory leak和GDI leak. :) good luck!
-
mengguangbin
2008-07-24
-
您好,我想向您请教一下关于应用c#对网卡的禁用与开启的问题(双网卡);不知该如何下手,谢谢!!
-
尤建波
2008-07-22
-
指纹仪没搞过.不过我想其会提供接口的.
-
panpas
2008-07-18
-
现在需要编一个小的数据库(vc++编程),利用指纹统计公司职工每天考勤的时间,最后累计一个月时间。数据库只需两项:姓名和时间...请你指点一下,应该从哪方面着手,过程应该如何?谢谢了~~~