搜索资源列表
控制链接ODBC
- HICON m_hIcon _ConnectionPtr m_pCon //连接对象 _RecordsetPtr m_pRs //记录集对象 BOOL LoadDbSource(CString strSourceName,CString strSourceDb, CString strDescr iption) // Generated message map functions //{{AFX_MSG(CCodeCtrlOdbcDlg) virt
Animation-Style_Dialog_Class
- 制作动画的类,很不错的 // construction CAniDialog(UINT nDlgID, CWnd* pParent) CAniDialog(CPoint pt, UINT nDlgID, CWnd* pParent) // operation // access frame number UINT GetFrameNum() const void SetFrameNum(UINT nFrames) // access an
VCjiemian
- ①、重载对话框的消息函数: void OnNcLButtonDown(UINT nHitTest, CPoint point) //单击标题栏时是响应 void OnNcMouseMove(UINT nHitTest, CPoint point) //Mous 在标题移动时响应 LRESULT DefWindowProc(UINT message, WPARAM wParam, LPARAM lParam) ②、添加关键成员函数为:BOOL D
串口通讯JustinIO
- using System using System.Runtime.InteropServices namespace JustinIO { ?class CommPort { ??public string PortNum ??public int BaudRate ??public byte ByteSize ??public byte Parity // 0-4=no,odd,even,mark,space ??public byte
WM_NCLBUTTONDOWN
- void TransparentWnd::OnLButtonDown(UINT nFlags, CPoint point) { CWnd::OnLButtonDown(nFlags, point) //实现无标题拖动 PostMessage(WM_NCLBUTTONDOWN, HTCAPTION, MAKELPARAM(point.x,point.y)) }-void TransparentWnd : : OnLButtonDown (UINT nF
4
- 学会对文件的记录锁定,及解锁。#include <stdio.h> #include <unistd.h> #include <fcntl.h> int main() { int fd int i struct { char name[20] uint ID int age } myrec fd =open(\"name\", O_RDWR|O_CREAT, 0755)
multithreading_file_search
- 本程序实现一个多线程的文件快速搜索。在通常的操作系统中,比如Windows 2000,都提供了文件搜索功能,但采用的是顺序搜索,搜索效率较低。在本程序中,使用多线程的搜索技术,可以明显提高搜索效率。 本程序主要用到以下函数: //找到指定目录下的第一个文件 HUNDLE FindFirstFile(LPCTSR lpFileName,LPWIN32_FIND_DATA lpFindFileData) //找到指定目录下的下一个文件 BOOL FindNextFile(HAND
newasp200611413439593
- int PosFromChar(UINT nChar) // 通过指定的字符获得其x轴的位置 int CharFromPos(int nPosX) // 通过给定的x轴的位置获得相应的字符 void CutString() // 剪切字符串 void PasteString() // 粘贴字符串 void CopyString() // 拷贝字符串 void MakeBKGround(CDC *pDC, COLORREF c
MyCoolMenu22
- void CMyMenu::ChangeToOwnerDraw(CMyMenu *pMyMenu) { CString str //use to hold the caption temporarily CMyMenu* pMenu //use to hold the sub menu CMyMenuData* pMenuData //use to hold the menu data //get the number of the menu items of
moasicmenu
- 1. MyCoolMenu22.zip,18KB,下载 0 次,void CMyMenu::ChangeToOwnerDraw(CMyMenu *pMyMenu) { CString str //use to hold the caption temporarily CMyMenu* pMenu //use to hold the sub menu CMyMenuData* pMenuData //use to hold the menu data //get the number of the
征服4.0马端源码
- using System; using System.Collections.Generic; using System.Text; namespace NewestCOServer { public class Cryption { class CryptCounter { UInt16 m_Counter = 0; public byte Key2
用动态规划思想压缩位图
- 此程序使用动态规划的方法压缩位图,用MFC实现。可以压缩8位、16位、24位的位图。用进度条显示压缩、解压进度。 算法思想: (1)对8、16、24位位图数据的读功能 有一个参数为输入位图文件名(*.bmp),它能解析8、16、24位位图文件格式,获取位图BITMAPINFOHEADER信息和每个像素的数据信息,放入内存中。 (2)对8、16、24位位图数据的写功能 有一个参数为输出位图文件名(*.bmp),它能将内存中的位图文件信息,按照位图格式,写到位图文件中保存。
ASocket示例
- ASocket示例 #include "stdafx.h" #include "s.h" #include "MainFrm.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif //////////////////////////////////////////////////////////
Biff8_CSharp_Excel c#编写用biff8格式生成excel程序
- c#编写用biff8格式生成excel程序。在2007/9/20的基础上改了些错误 1.SST强制转换中的uint->ushort错误(当所有单元格中存在65535以上不同内容单元格会重新计数的错误) 2.修正页眉、页脚及Sheet1名不支持中文问题-c# write to generate excel format with biff8 program. 2007/9/20 change in the basis of some error 1.SST cast in uin
DirectoryList
- class CMyTreeCtrl : public CTreeCtrl { // Construction public: CMyTreeCtrl() // Attributes public: // Operations public: // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CMyTreeCtrl)
chat
- class CMyTreeCtrl : public CTreeCtrl { // Construction public: CMyTreeCtrl() // Attributes public: // Operations public: // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CMyTreeCtrl)
IpLocator
- 有些朋友在C#中使用动态类对象的构造函数/析构函数在对象的初始化/释放时来打开/关闭数据文件,这虽然是一个很好的面向的思想,但托管程序对象的释放时间是不确定的,尤其是ASP.NET的使用,这一方面由于打开的文件未释放会造成资源浪费,更重要的是可能会带来线程并发所造成的共享冲突,另外如果在ASP.NET中使用缓存机制则会增加程序的复杂性和降低模块的独立性、重用性。 基于这些原因,程序中全部使用静态方法,实际上这是由我的另一个C++的程序改写的C#程序,模块的调用很简单,例如,使用当前目录
hidemywindows
- 怎么才能使主界面一启动就隐藏窗口 对话框 可以在对话框中重载虚函数DefWindowProc[]。 LRESULT CMyDlg::DefWindowProc[UINT message, WPARAM wParam, LPARAM lParam] { if[message==133] ShowWindow[SW_HIDE] return CDialog::DefWindowProc[message, wParam, lParam]
test
- #include "windows.h" #include "stdlib.h" #include "string.h" long WINAPI WndProc(HWND hWnd,UINT iMessage,UINT wParam,LONG lParam)
NumEdit
- VC6,关键就是重载了void CNumberEdit::OnChar(UINT nChar, UINT nRepCnt, UINT nFlags),对键盘响应事件的判断。这样编辑框只接受数字-VC6, the key is a heavy void CNumberEdit:: OnChar (UINT nChar, UINT nRepCnt, UINT nFlags), on the keyboard to respond to events to judge. This edit box t