-
ptable
一个打印表格的c++源代码,对于那些寻找此类代码的同志来说,是一个绝佳的参考,如果有什么问题,登陆http://www.boomcode.cn(A print form c++ Source code, for those looking for such code comrades, it is an excellent reference, if there is any problem, landing http://www.boomcode.cn)
- 2007-11-07 19:03:13下载
- 积分:1
-
STK
在C++的环境下增加STK控件,实现通过C++语言环境对程序进行编写,用STK软件进行模拟。(Increase in the C++ environment, the STK controls, as the connection to the STK software with C++ language interface in C++ programming language, using STK simulation path.
)
- 2021-02-25 18:19:38下载
- 积分:1
-
printersettings_demo
vc修改打印设置代码,可以修改打印的基本设置,例如纸张大小(vc revised set code can be amended Print the basic setup, such as paper size, etc.)
- 2007-03-07 09:32:08下载
- 积分:1
-
STM8S_StdPeriph_Lib_V2.1.0
STM8S_StdPeriph_Lib_V2.3.1 驱动包(STM8S_StdPeriph_Lib_V2.3.1 driver package)
- 2019-03-01 11:38:10下载
- 积分:1
-
Linux C下服务器与客户端之间的文件传输
实现windows和linux之间的通信 或者 window间通信 linux间通信(Communication between windows and Linux or communication between Linux communication between window)
- 2018-02-05 10:37:56下载
- 积分:1
-
WinUpdateFile
C# 修改文件 创建时间 访问时间 修改时间 实例demo(C# UpdateFile Time)
- 2013-10-23 11:58:37下载
- 积分:1
-
TravianBot
说明: Bot engine for Travian3 online game
- 2019-05-09 17:51:07下载
- 积分:1
-
c# 扫描IP Http Header
c# 扫描IP Http Headerusing System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.Threading;using System.IO;namespace HScan{ public partial class Form1 : Form { int _currentThreads = 0; int _maxThreads = 100; Thread main = null; Thread mt = null; List threads = new List(); public Form1() { InitializeComponent(); Control.CheckForIllegalCrossThreadCalls = false; } private void btnStart_Click(object sender, EventArgs e) { btnStart.Enabled = false; if (txtStart.Text.Trim() == "") { MessageBox.Show("起始IP不能为空."); return; } if (txtEnd.Text.Trim() == "") { MessageBox.Show("结束IP不能为空."); return; } int ts = Convert.ToInt32(txtThreads.Text); _maxThreads = ts; string startIp = txtStart.Text; string endIp = txtEnd.Text; TParameter tp=new TParameter(); tp.StartIp=startIp; tp.EndIp=endIp; tp.ThreadCount=ts; main = new Thread(new ParameterizedThreadStart(StartMe)); main.Start(tp); } protected void ThreadManage() { Thread c=null; while (true) { System.Object lockThis = new System.Object(); lock (lockThis) { for (int i = 0; i < threads.Count; i ) { if (threads[i] != null && !threads[i].IsAlive) { c = threads[i]; break; } } if (c != null) { threads.Remove(c); } } } } protected void StartMe(object ob) { mt = new Thread(new ThreadStart(ThreadManage)); mt.Start(); TParameter p = ob as TParameter; string curIp = p.StartIp; while (true) { for (int i = 0; i < _maxThreads; i ) { if (curIp != "") { if (_currentThreads >= _maxThreads) break; System.Object lockThis = new System.Object(); lock (lockThis) { _currentThreads ; if (_currentThreads > _maxThreads) _currentThreads = _maxThreads; string tip = curIp; Thread t = new Thread(new ParameterizedThreadStart(Run)); t.Start(tip); threads.Add(t); curIp = IPUtility.getLastIp(curIp, p.EndIp, 1); } } else { break; } } } } protected void Run(object ob) { string ip = ob.ToString(); SocketGetHead h = new SocketGetHead(); string ret = h.GetHtml(ip, 80); if (ret.IndexOf("DVRDVS-Webs") > 0) { ListViewItem item = new ListViewItem(); item.SubItems[0].Text = (listView1.Items.Count 1).ToString(); ListViewItem.ListViewSubItem lvSubItem = new ListViewItem.ListViewSubItem(); lvSubItem.Text = ip; item.SubItems.Add(lvSubItem); lvSubItem = new ListViewItem.ListViewSubItem(); lvSubItem.Text = "DVRDVS-Webs"; item.SubItems.Add(lvSubItem); listView1.Items.Add(item); } System.Object lockThis = new System.Object(); lock(lockThis) { lblCurIp.Text = ip; _currentThreads--; if (_currentThreads < 0) _currentThreads = 0; } } private void tsmCopy_Click(object sender, EventArgs e) { if (listView1.SelectedItems.Count > 0) { string ip = listView1.SelectedItems[0].SubItems[1].Text; Clipboard.SetText(ip); } } private void tsmExport_Click(object sender, EventArgs e) { StreamWriter writer = new StreamWriter(AppDomain.CurrentDomain.BaseDirectory "\export.txt",true); foreach (ListViewItem item in listView1.Items) { string ip=item.SubItems[1].Text; writer.WriteLine(ip); writer.Flush(); } writer.Flush(); writer.Close(); MessageBox.Show("导出成功!"); } private void Form1_FormClosing(object sender, FormClosingEventArgs e) { try { if (mt != null) { mt.Interrupt(); mt.Abort(); } foreach (Thread t in threads) { t.Interrupt(); t.Abort(); } if (main != null) { main.Interrupt(); main.Abort(); } } catch { } Thread.Sleep(5000); } private void btnStop_Click(object sender, EventArgs e) { try { if (mt != null) { mt.Interrupt(); mt.Abort(); } foreach (Thread t in threads) { t.Interrupt(); t.Abort(); } if (main != null) { main.Interrupt(); main.Abort(); } } catch { } btnStart.Enabled = true; } }}
- 2014-06-23下载
- 积分:1
-
20105610477041
说明: VC++ 通过ODBC读写Excel文件 资源类别:
VC源码¦数据库 (VC++ to read and write Excel files via ODBC resource categories: VC database source ¦ )
- 2011-03-30 21:41:47下载
- 积分:1
-
eddyingcharacter
如何旋转显示字符串?本例子将详细向你演示。(How to rotate display string? This example will demonstrate to you in detail.)
- 2009-05-24 16:34:17下载
- 积分:1