VCer代码 VCer开源 VCer文章 VCer工具 VCer知道 VCer词典 VCer读书 VCer论坛   站点首页 我要张贴 控制面板
VCer代码 VCer开源 VCer文章 VCer工具 VCer知道 VCer词典 VCer读书 VCer论坛   站点首页 我要张贴 控制面板

目前位置: VCer资源中心 >>> VCer开源
子级分类: 系统程序 网络工具 媒体工具 管理软件 游戏娱乐 BBS联赛作品 可重用类
我也来开源一个!>>>


dibimage
 
 
...没看出来是干吗的 :《
作者:heartofdra heartofdra张贴于2007-05-28 21:04:34.0,共阅读1034次,回复0
调色盘,背景色
 
 
...调色盘,背景色
作者:heartofdra heartofdra张贴于2007-05-28 20:47:22.0,共阅读1266次,回复0
窗口分割
 
 
...窗口分割
作者:heartofdra heartofdra张贴于2007-05-28 20:35:27.0,共阅读1131次,回复0
类似苹果那样 的顶端有工具栏
 
 
...类似苹果那样 的顶端有工具栏
作者:heartofdra heartofdra张贴于2007-05-28 20:32:16.0,共阅读1217次,回复0
对话窗口动态出现
 
 
...对话窗口动态出现
作者:heartofdra heartofdra张贴于2007-05-28 20:28:28.0,共阅读1033次,回复0
快速排序
 
 
/* qsort -- qsort interface implemented by faster quicksort. J. L. Bentley and M. D. McIlroy, SPE 23 (1993) 1249-1265. Copyright 1993, John Wiley. */ /*assume sizeof(long) is a power of 2 */ #define SWAPINIT(a, es) swaptype = \ (a-(char*)0 | es) % sizeof(long) ? 2 : es > sizeof(long); #define swapcode(TYPE, parmi, parmj, n) { \ register TYPE *pi = (TYPE *) (parmi); \ register TYPE *pj = (TYPE *) (parmj); \ do { \ register TYPE t = *pi; \ *pi++ = *pj; \ *p ...
作者:J. L. Bentley and M. D. McIlroy wyc139888张贴于2007-05-25 09:52:05.0,共阅读1227次,回复0
WinMine 基于Win32API的windows扫雷程序
 
 
实现了windows Xp 中自带的扫雷的基本全部功能,主要是作为win32API编程的练手程序基于win32API
作者:不祥 botcher张贴于2006-12-25 21:22:27.0,共阅读4052次,回复3
CHistoryComboBox 带历史记录的ComboBox
 
 
有时候用DropDown型的CComboBox,希望能够保存用户最近输入的记录,我自己写了这样一个类,将最近的用户记录保存到注册表中。class CHistoryComboBox : public CComboBox { public: INT_PTR LoadHistoryValue(void); //读取历史记录 void SetMaxNum(int num); //设置最大记录数 void AddHistoryValue(); //保存历史记录 } 为界面上的CComboBox添加控制变量,控制变量类型为CHistoryComboBox即可使用。在ComboBox上敲回车,当前记录将被存入注册表。 你也可以在程序中调用m_ctlCombo.AddHistoryValue()保存当前记录。 使用 SetMaxNum能够设置保存记录的总条数。注意:在同一个工程,如果要使用多个CHistoryComboBox,你必须保证每一个的ID都不相同!!!
作者:不祥 longhorn张贴于2004-12-25 21:48:24.0,共阅读3412次,回复3
BBS联赛作品C4009
 
 
目前程序已经初步完成了, 其中功能如下 PAGE 2: 在表达式中可以支持的操作符有sin, cos, tan, ln, ex(e的x次方), asin, acos, atan, !(阶乘), +, -, *, /, %(取余), 和左右括号运算, (表达式中不能省略*号), 支持!=, >=, >, <, <=, 判断运算, 支持&&, ||, or, xor,逻辑运算 PAGE 3: 在矩阵计算中,矩阵合法表达为 [a,b;c,d;] 其中a,b,c,d可以为表达式, 头尾用方括号,元素间用逗号,每一行结束都要有一个分号 PAGE 4: 方程组求解要求输入系数矩阵和b矩阵, 其中都按照矩阵计算中的矩阵格式输入, 特别要把b矩阵输入成一个列矩阵, 其中矩阵内元素都可以使用表达式. 读取方程表达式时设x为变量, 指数只支持大于0地整数. 必须以=0为结尾应用类题目: 计算器 作者 weeny9,pxsnet,duckblue,wanghaowho 大赛sn c4009
作者:不祥 bluejoe张贴于2004-05-07 09:15:32.0,共阅读2938次,回复1
BBS联赛作品A4011
 
A1. /* * 题目分析: *   本题是一个图的最大匹配问题 */ #include <stdio.h> #include <stdlib.h> #include <limits.h> #include <string.h> const int MAXN = 222+1; // 最大警卫数目 const int MAXINT = INT_MAX; int graph[MAXN][MAXN]; // 图的邻接矩阵 int lvtype[MAXN][2]; // [i][0]与i顶点相连的盖点序号 // [i][1]与i顶点相连的未盖点序号 int vtype[MAXN]; // 0为未盖点,非0为盖点,<i,vtype[i]>为匹配边 int vnum; // 顶点数 // 图矩阵初始化,并从文件中读入邻接矩阵 int Initialize(const char *sFileName) { memset(graph, 0, sizeof(int) * MAXN * MAXN); FILE *fp = fopen(sFileName, "r"); if (fp == NULL) ...
作者:不祥 imcc张贴于2004-05-06 22:43:33.0,共阅读2061次,回复1
一个简单的虚线类
 
 
这是一个简单的虚线类,可以通过构造函数指定虚线的宽度,颜色,和线形 CDashLine(CDC* pDC, // 指定设备环境 COLORREF Color1, //指定A,C段字体颜色 COLORREF Color2, //指定B,D段字体颜色 int nWidth, // 指定虚线线宽 int Type[4] // 指定虚线线形 分别对应A,B,C,D四段的长度 ); 一旦完成了类的构造,就可以使用MoveTo(x, y) 和 LineTo(x, y) 函数来绘制虚线。MoveTo() 函数将重置初始位置和内部的颜色顺序,而 LineTo() 函数从当前的位置和颜色开始。 不要忘记保存当前的画笔,在使用完CDashLine后select回来,在使用完CDashLine之前不要删除该DC。 ...
作者:热的 hamxj张贴于2007-02-28 16:27:28.0,共阅读1683次,回复1
Faq:继承CListCtrl表示表格
 
 
用户问题解答 提问用户 主题 提问状态 fuzzy(fuzzy) 请问VC里面有什么控件可以显示一个表格? 已解决 问题解答归纳: 1. DataGrid控件 2.CListCtrl和CListView控件 例解: Class CExListCtrl:CList (见附件) 关键函数:void CExListCtrl::DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct)下载后直接include即可,具体调用如下: 使用CListCtrl模拟表格: CRect rect(0,0,0,0); CExListCtrl listctrl; listctrl.Create( WS_CHILD| WS_VISIBLE| WS_VSCROLL| LVS_REPORT| LVS_SHOWSELALWAYS| LVS_SINGLESEL| LVS_OWNERDRAWFIXED| LVS_NOLABELWRAP| WS_EX_CLIENTEDGE, rect, this, IDC_LIST); ...
作者:不祥 xler张贴于2004-05-21 17:30:50.0,共阅读7171次,回复4
FileManager
 
 
一个文件管理器,采用Turbo C编写的。 FM is a file/directory manager program. I wrote it in TURBOC to get familar with the language and to create a filemanager for myself. FM will work with directories having up to 500 files and/or ubdirectories. It is fairly straight forward to use. Simply enter fm and the program will display all the files and sub directories in the current directory. If you want to look at another directory enter it on the command line. I.E. fm \turboc\source\ will display the files in the \turboc\source directory. When the files and subdirectories are displayed on the screen you ca ...
作者:Jim Derr iter张贴于2007-03-13 08:38:33.0,共阅读1539次,回复0
一个自适应大小的位图控件
 
 
这是一个自适应大小的位图控件演示程序 通过调整对话框字体大小可以观察出CBitmapPicture类和MFC的Picture控件之间的差别 关键代码如下: ... BitmapPicture.h ... class CBitmapPicture : public CStatic { // Construction public: CBitmapPicture(); // Operations public: BOOL SetBitmap(HBITMAP hBitmap); // Not recommended BOOL SetBitmap(UINT nIDResource); BOOL SetBitmap(LPCTSTR lpszResourceName); BOOL ReloadBitmap(); // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CBitmapPicture) protected: virtual void PreSubclassWindow(); virtua ...
作者:Chris Maunder hamxj张贴于2007-02-28 15:45:50.0,共阅读1947次,回复0
地址本程序
 
 
程序要点: 1。联系人管理软件。 2。可以自行添加自己的联系人。 3。基于对话框的应用程序。 4。Button控件实现URL。 5。使用了CAutoCompleteComboBox类,选择了某个人后,其所有信息都能在对话框上的其他控件中显示出来。 6。建立了CContact类,写了Serialize函数来实现联系人信息的读写 7。CFile类、CFileException类、CArchive类的使用 注意:CContact类的头文件名首字母没有大写,修改后才能在VC的ClassView中见到CContact类
作者:不祥 heartofdra张贴于2007-02-06 19:35:32.0,共阅读1640次,回复0
在多文档客户区中增加位图底图演示程序
 
 
//CMDIClient类头文件 #if !defined(AFX_VNMDICLIENT_H__FC9EC8F2_8175_11D1_A16B_000000000000__INCLUDED_) #define AFX_VNMDICLIENT_H__FC9EC8F2_8175_11D1_A16B_000000000000__INCLUDED_ #if _MSC_VER >= 1000 #pragma once #endif // _MSC_VER >= 1000 class CMdiClient : public CWnd { DECLARE_DYNCREATE(CMdiClient) // Construction public: CMdiClient(); // Attributes public: // Operations public: // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CMdiClient) //}}AFX_VIRTUAL // Implementation public: BOOL SetBitmap(UINT ...
作者:热的 hamxj张贴于2007-01-28 00:25:35.0,共阅读1683次,回复1
P2P 之 UDP穿透NAT的原理与实现
 
 
论坛上经常有对P2P原理的讨论,但是讨论归讨论,很少有实质的东西产生(源代码)。呵呵,在这里我就用自己实现的一个源代码来说明UDP穿越NAT的原理。 首先先介绍一些基本概念: NAT(Network Address Translators),网络地址转换:网络地址转换是在IP地址日益缺乏的情况下产生的,它的主要目的就是为了能够地址重用。NAT分为两大类,基本的NAT和NAPT(Network Address/Port Translator)。 最开始NAT是运行在路由器上的一个功能模块。 最先提出的是基本的NAT,它的产生基于如下事实:一个私有网络(域)中的节点中只有很少的节点需要与外网连接(呵呵,这是在上世纪90年代中期提出的)。那么这个子网中其实只有少数的节点需要全球唯一的IP地址,其他的节点的IP地址应该是可以重用的。 因此,基本的NAT实现的功能很简单,在子网内使用一个保留的IP子网段,这些IP对外是不可见的。子网内只有少数一些IP地址可以对应到真正全球唯一的IP地址。如果这些节点需要访问外部网络,那么基本NAT就负责将这个节点的子网内IP转化为一个全球唯一的IP然后发送出去。(基本的NAT会改变IP包中的原IP地址,但是不会改变IP包中的端口) 关于基本的NAT可以参看RFC 1631 另外一种NAT叫做N ...
作者:shootingstars bluejoe张贴于2007-01-27 22:52:20.0,共阅读2151次,回复0
HTTPSVR: Demonstrates World Wide Web HTTP Server
 
 
HTTPSVR is an MFC sample that demonstrates the use of MFC and its Windows Sockets (WinSock) classes in implementing a simple World Wide Web HTTP server. HTTPSVR turns any computer connected to a network into a publishing platform viewable from any of a number of web browsers available on the market today, such as Microsoft’s Internet Explorer. HTTPSVR also minimally supports the Common Gateway Interface (CGI). You can create forms and execute CGI-compatible server-side applications using the standard hypertext markup language (HTML) tags. To increase performance, HTTPSVR checks a file’s last m ...
作者:M$ bluejoe张贴于2007-01-23 13:28:31.0,共阅读2429次,回复0
FIRE: Demonstrates Windows 95 Common Controls
 
 
FIRE is a Windows&reg; 95 Common Controls dialog-based sample application. It simulates fire and allows you to change various properties of the fire by adjusting Windows Common Controls on the dialog. When you run FIRE, the Windows 95 Fire dialog box appears. To change attributes of the fire, do any of the following. Click Tab to change the palette that renders the fire. Click and drag Vertical Slider along the right side of the fire to adjust the ceiling of the flames. Note the Progress Indicator control below the fire that tells you when the adjustment is complete. To use the Tre ...
作者:M$ bluejoe张贴于2007-01-23 13:09:41.0,共阅读1863次,回复0
具有XP风格的图标菜单
 
 
具有XP风格的图标菜单,直接include调用即可具有XP风格的图标菜单,直接include调用即可
作者:不祥 xler张贴于2004-05-01 00:54:46.0,共阅读6528次,回复8

页次: 6/9页 记录总数169 9 7 [ 1 2 3 4 5 6 7 8 9 10 ] 8 :