Welcome![Sign In][Sign Up]
Location:
Search - uint

Search list

[OtherColorLookup

Description: 1. 文件包括vc工程全部文件和一个ReadMe及一个exe示例程序 2 工程名叫做ColorLookup 3 软件名称及版本:颜色常量查看器。1.0版 4 项目背景:制作用户界面时(如写一个编辑器)常需要丰富的颜色但又不知其RGB值,本软件可以完成此任务 5 功能点:(1)方便显示256 * 256 *256 种颜色。(2)显示方式为分页显示。每页显示一定数目的颜色。 (3)用户可以方便的转跳到任意一页。 (4)用户可以指定相邻颜色值之差(及不必显示所以颜色,只显示主要颜色) (5)查看颜色常量值(RGB及UINT):鼠标单击相应颜色任务栏即可显示相应值。-1. Vc project documents including all the documentation and a ReadMe exe and a sample program called the two works were ColorLookup three software titles and versions : color constants viewer. Version 1.0 of four projects Background : making the user interface (such as an editor to write) often need rich color but not its RGB values, the software can accomplish this task five functions : (a) to facilitate showed 256 * 256 * 256 colors. (2) Display mode for displaying. Each page shows a certain number of colors. (3) the user can jump to the arbitrary one. (4) users can specify the adjacent color difference (and therefore no need to show color, only shows that the main color) (5) Value View color (RGB and UINT) : mouse click on the corresponding color task bar can show the corresponding valu
Platform: | Size: 50380 | Author: wfy | Hits:

[Software Engineering可预置的8位计数器源程序

Description: 可预置的8位计数器程序的主要部分分析 #include <AT89X51.H> //器件配置文件 #define uchar unsigned char //变量类型的宏定义 #define uint unsigned int uchar code SEG7[10]={0x03,0x9f,0x25,0x0d,0x99, //0~9的数码管段码 0x49,0x41,0x1f,0x01,0x09} uchar data cnt[8] //在data区定义8位长度的数组,用来存放计数值 uchar data pre_cnt[8] //在data区定义8位长度的数组,用来存放预置值 sbit drv=P3^4 //定义输出驱动端 bit set_flag //定义工作标志 bit out_flag //定义输出标志 bit keydown_flag //键按下标志 -can preset counter the eight major part of the process analysis # include
Platform: | Size: 21028 | Author: wyq | Hits:

[ADO-ODBC控制链接ODBC

Description: HICON m_hIcon _ConnectionPtr m_pCon //连接对象 _RecordsetPtr m_pRs //记录集对象 BOOL LoadDbSource(CString strSourceName,CString strSourceDb, CString strDescription) // Generated message map functions //{{AFX_MSG(CCodeCtrlOdbcDlg) virtual BOOL OnInitDialog() afx_msg void OnSysCommand(UINT nID, LPARAM lParam) afx_msg void OnPaint() afx_msg HCURSOR OnQueryDragIcon() //}}AFX_MSG DECLARE_MESSAGE_MAP()-HICON m_hIcon _ConnectionPtr m_pCon / / Link Object _RecordsetPtr m_pRs / / BOOL record set targets LoadDbSou rce (redeem strSourceName. redeem strSourceDb. redeem strDescription) / / Generated message map functions / / ((AFX_MSG (CCodeCtrlOdbcDlg ) virtual BOOL OnInitDialog () afx_msg void OnS ysCommand (UINT nID. LPARAM lParam) afx_msg void OnPaint () afx_msg HCURSOR OnQueryDragIcon () / /)) AFX_MSG DECLA RE_MESSAGE_MAP ()
Platform: | Size: 59558 | Author: 穆菲 | Hits:

[Dialog_WindowAnimation-Style_Dialog_Class

Description: 制作动画的类,很不错的 // 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 animation speed UINT GetAniSpeed() const void SetAniSpeed(UINT nMillSec) // access the reference point CPoint GetRefPt() const void SetRefPt(CPoint pt) // access animation styles WORD GetOpenStyle() const WORD GetCloseStyle() const void SetAniStyles(WORD wOpenStyle, WORD wCloseStyle) WORD GetDispStyle() const void SetDispStyle(WORD wDispStyle) // temporarily enable/disable animation void EnableAni(BOOL bEnable = TRUE) // check object status BOOL IsAniValid() const -animation category, very good / / construction CAniDialog (UINT nDlgID, CWnd * pParent) CAniDialog (redemption pt, UINT nDlgID, CWnd * pParent) / / operation / / access frame number UINT GetFrameNum () const void SetFrameNum (UINT nFrames) / / animation speed access UINT GetAniSpeed () const void SetAniSpeed (UINT nMillSec) / / access the reference point redemption GetRefPt () const void SetRefPt (redemption pt) / / access animation styles WORD GetOpenStyle () const WORD GetCloseStyle () const void SetAniStyles (WORD wOpenStyle, WORD wCloseStyle) WORD GetDispStyle () const void SetDispStyle (WORD wDispStyle) / / temporarily enable / disable animation void EnableAni (BOOL bEnable = TRUE) / / check object status BOOL IsAniValid () const
Platform: | Size: 21319 | Author: 曾新 | Hits:

[Other resource5510dedaima

Description: /*** *5510单片机测试程序 基本测试成功 2005-8-25 write By CW *** *** *** ****/ #include <reg52.h> #include <absacc.h> #define uint unsigned int #define uchar unsigned char-/******* 5510 microcontroller basic test procedure successfully tested 2005-8-25 wr ite By CW ***************************************** * / # include
Platform: | Size: 15760 | Author: wangxing | Hits:

[GUI DevelopVCjiemian

Description: ①、重载对话框的消息函数: void OnNcLButtonDown(UINT nHitTest, CPoint point) //单击标题栏时是响应 void OnNcMouseMove(UINT nHitTest, CPoint point) //Mous 在标题移动时响应 LRESULT DefWindowProc(UINT message, WPARAM wParam, LPARAM lParam)   ②、添加关键成员函数为:BOOL DrawTitleBar(CDC *pDC)   ③、添加完消息涵数后,在.cpp中实现它们的代码(点击查看代码附件):   好了运行你的序程,即可出现漂亮的界面。说明在设计对话框时最好只选上Title Bars,其它不要.消息函数要手动添加。只本程序是在VC++6.0 +WinXP环境下完成的。   经过实践证明,仅仅画一个窗口很容易,多窗口程序软件实现统一风格很难。如若有机会的话,我会和大家继续探讨如何将设计好的漂亮窗口子类化,让程序所有的窗口有统一风格,美化窗口的其它控件并可自动随窗口改变而调整大小。我想那才是我们大家关心的。对不?
Platform: | Size: 1260276 | Author: sailor | Hits:

[Communication串口通讯JustinIO

Description: 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 StopBits // 0,1,2 = 1, 1.5, 2 ??public int ReadTimeout ?? ??//comm port win32 file handle ??private int hComm = -1 ?? ??public bool Opened = false ?? ??//win32 api constants ??? private const uint GENERIC_READ = 0x80000000 ??? private const uint GENERIC_WRITE = 0x40000000 ??? private const int OPEN_EXISTING = 3 ?? ??? private const int INVALID_HANDLE_VALUE = -1 -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 StopBits // 0,,1,2 = 1, 1.5, 2? ? Public int ReadTimeout? ? ? ? //comm port win32 file handle? ? Private int hComm = -1? ? ? ? Public bool Opened = false? ? ? ? //win32 api constants? ? ? Private const uint GENERIC_READ = 0x80000000? ? ? Private const uint GENERIC_WRITE = 0x40000000? ? ? Private const int OPEN_EXISTING = 3? ? ? ? ? Private const int INVALID_HANDLE_VALUE = -1? ?
Platform: | Size: 9142 | Author: liucheng | Hits:

[Other resourcegame_Pushbox

Description: C++开发的推箱子游戏 1.类的划分 Cdraw类 绘画加载地图(包括围墙、人、箱子等等) Cman类 是否完成(过关) 即时更新地图 2.设计思想 从文件map.txt里读取地图信息,然后通过Cdraw类加载地图,通过keydown事件调用Cman里的重载函数updatemap, 单参数updateMap(UINT nChar)是用于更改当前小人以及箱子的坐标,记录下来后传给updateMap(int x1, int y1, int x2, int y2, int x3, int y3) 从而改变地图。-C development Tuixiangzi a game. Class division Cdraw painting category loaded maps (including the wall, boxes, etc.) if the class completed Cman (clearance) updated maps 2. Design ideas from the paper map.txt Lane read map information, then pass Cdraw Class Loading maps, Calling the incident through keydown Cman Lane updatemap of overloading functions, updateMap single parameter (UINT nChar) is used to change the current villains and the coordinates of the boxes, After record pass updateMap (int x1, y1 int, int x2, int y2, x3 int, int y3), thus changing map.
Platform: | Size: 80833 | Author: 杨振 | Hits:

[Other resourceSetWindowPos

Description: SetWindowPos 详解 函数名:   SetWindowPos 头文件:   winuser.h 函数原型:   BOOL SetWindowPos   (   HWND hWnd, //窗口句柄   HWND hWndInsertAfter, //排列顺序的句柄   int X, //水平坐标   int Y, //垂直坐标   int cx, //宽   int cy, //高   UINT uFlags //窗口定位标识   ) -SetWindowPos Hi name : SetWindowPos header files : winuser.h prototype : BOOL SetWindowPos (HWND hWnd, / / window handle HWND hWndInsertAfter, / / order of the handle int X, / / int Y coordinates level. / / vertical coordinates int cx, / / width int cy, / / UINT uFlags / / window positioning logo)
Platform: | Size: 4696 | Author: zhusheng | Hits:

[Other resourceshowbitmap

Description: 位图装入、显示的c++类。 使用方法: 1 构造类的一个实例对象: 空实例 CDIB bmp() 用资源号构造 CDIB bmp(nResID) 用文件构造 CDIB bmp(\"PATH//Filename.bmp\") 2 若1步构造的是空实例对象,则须装入位图: 从文件装入 BOOL bmp.LoadFromFile(\"PATH//Filename.bmp\") 从资源装入 BOOL bmp.LoadFromResource(UINT nResID) 3 画位图图象 Draw(CDC* pDC,目标图左上角x&y坐标,长&宽,原图象左上角x&y坐标) Draw(CDC* pDC,目标图左上角x&y坐标) Draw(CDC* pDC) Stretch(CDC* pDC, 目标图左上角x&y坐标,长&宽,原图像左上角x&y坐标,长&宽) 注: pDC的获取: CDC *pDC=GetDC() -bitmap loaded, shows the category c. Use : a structural example of a type of object : Air examples Bitmap bmp () with the resources, structure Bitmap bmp (nResID) document structure with CD IB bmp ( "PATH / / Filename.bmp") if a two-step structure of the object is empty examples , must be loaded bitmap : BOOL loaded from the file bmp.LoadFromFile ( "PATH / / Filenam e.bmp ") from the resource loading BOOL bmp.LoadFromResource (UIN T nResID) three paintings Bitmap Draw (CDC * pDC, objectives map upper left corner x
Platform: | Size: 11183 | Author: linus | Hits:

[Dialog_WindowWM_NCLBUTTONDOWN

Description: void TransparentWnd::OnLButtonDown(UINT nFlags, CPoint point) { CWnd::OnLButtonDown(nFlags, point) //实现无标题拖动 PostMessage(WM_NCLBUTTONDOWN, HTCAPTION, MAKELPARAM(point.x,point.y)) }-void TransparentWnd : : OnLButtonDown (UINT nFlags. CPoint point) (CWnd : : OnLButtonDown (nFlags. point) / / Drive heading towards a PostMessage (WM_NCLBUTTOND OWN, HTCAPTION, MAKELPARAM (point.x. point.y
Platform: | Size: 16024 | Author: zanjiangfeng | Hits:

[Other4

Description: 学会对文件的记录锁定,及解锁。#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) if (fd == -1) return -1 printf(\"Input your name:\") scanf(\"%s\", myrec.name) printf(\"Inpute your ID :\") scanf(\"%d\", &myrec.ID) printf(\"Input your age :\") scanf(\"%d\", &myrec.age) lseek(fd, 0,SEEK_END) lockf(fd, 1, 0) write(fd, (void *)&myrec, sizeof(myrec)) lockf(fd, 0 ,0) return 0 } 执行命令cc lock.c –o lock.out Chmod +x lock.out ./lock.out
Platform: | Size: 9297 | Author: 华羿 | Hits:

[OS programTestAPP

Description: CPU和内存占用率监视并显示程序 测试程序中,我用了一个自己封装的DLL来分别获取CPU和内存的占用率。是在一个Timer中定时刷新获取的。这个DLL你也可以拿来自己用, DLL导出函数为2个: UINT GetCpuUseage() //返回CPU占用率 UINT GetMemUseage() //返回内存占用率
Platform: | Size: 34743 | Author: liyi | Hits:

[Other resourceresbin

Description: 名称:read2543 功能:TLC2543驱动模块 输入参数:port通道号 输出参数:ad转换值 *************************************/ uint read2543(uchar port) { uint ad=0,i CLOCK=0 _CS=0 port<<=4 for(i=0 i<12 i++) { if(D_OUT) ad|=0x01 D_IN=(bit)(port&0x80) CLOCK=1 delay(3) CLOCK=0 delay(3) port<<=1 ad<<=1 } _CS=1 ad>>=1 return(ad) }
Platform: | Size: 10661658 | Author: 杨风 | Hits:

[Process-Threadmultithreading_file_search

Description: 本程序实现一个多线程的文件快速搜索。在通常的操作系统中,比如Windows 2000,都提供了文件搜索功能,但采用的是顺序搜索,搜索效率较低。在本程序中,使用多线程的搜索技术,可以明显提高搜索效率。 本程序主要用到以下函数: //找到指定目录下的第一个文件 HUNDLE FindFirstFile(LPCTSR lpFileName,LPWIN32_FIND_DATA lpFindFileData) //找到指定目录下的下一个文件 BOOL FindNextFile(HANDLE hFindFile,LPWIN32_FIND_DATA lpFindFileData) //线程的执行函数 UINT GetFilePathTHreadProc(LPVOID pParam) //搜索指定目录 void GetFilePath()
Platform: | Size: 30813 | Author: 郭小川 | Hits:

[Embeded-SCM DevelopSTCchuankougps

Description: #include <reg52.h> #include <stdio.h> #include <string.h> #define uchar unsigned char #define uint unsigned int #define isp_iap_byte_read 0x1 #define isp_iap_byte_program 0x2 #define isp_iap_sector_erase 0x3 #define wait_time 0x1
Platform: | Size: 6409 | Author: 落落 | Hits:

[Other resourceserial_program_for_51

Description: 很完整的51串口程序 包括如下: 串口中断服务程序,仅需做简单调用即可完成串口输入输出的处理 出入均设有缓冲区,大小可任意设置。 可供使用的函数名: char getbyte(void) 从接收缓冲区取一个byte,如不想等待则在调用前检测inbufsign是否为1。 getline(char idata *line, unsigned char n) 获取一行数据回车结束,必须定义最大输入字符数 putbyte(char c) 放入一个字节到发送缓冲区 putbytes(unsigned char *outplace,j) 放一串数据到发送缓冲区,自定义长度 putstring(unsigned char code *puts) 发送一个定义在程序存储区的字符串到串口 puthex(unsigned char c) 发送一个字节的hex码,分成两个字节发。 putchar(uchar c,uchar j) 输出一个无符号字符数的十进制表示,必须标示小数点的位置,自动删除前面无用的零 putint(uint ui,uchar j) 输出一个无符号整型数的十进制表示,必须标示小数点的位置,自动删除前面无用的零 delay(unsigned char d) 延时n x 100ns putinbuf(uchar c) 人工输入一个字符到输入缓冲区 CR 发送一个回车换行
Platform: | Size: 3624 | Author: eacho | Hits:

[GUI Developnewasp200611413439593

Description: int PosFromChar(UINT nChar) // 通过指定的字符获得其x轴的位置 int CharFromPos(int nPosX) // 通过给定的x轴的位置获得相应的字符 void CutString() // 剪切字符串 void PasteString() // 粘贴字符串 void CopyString() // 拷贝字符串 void MakeBKGround(CDC *pDC, COLORREF clrBegin, COLORREF clrEnd, CRect rect) // 生成窗口背景 CString m_strEdit // 当前包含的文本。 CString m_strSelect // 当前选择的文本。 CPoint m_ptCursor // 当前光标的位置。 CPoint m_ptTxtBegin // 文本的起始位置。 CPoint m_ptFirst // 鼠标左键按下时的第一点位置。 CPoint m_ptSecond // 鼠标当前的位置。 int m_nCharPos // 当前光标处于第几个字符的后面,从0开始计数。 int m_nShowChar // 在编辑框中第一个显示的字符,从0开始计数。 int m_nMaxShowChars // 在编辑框中一次最多显示的字符数量 。 int m_nSelectBegin // 选择的字符的起始位置。 int m_nSelectEnd // 选择的字符的终止位置。 CBitmap m_BmpBK // 背景图片。 CFont m_TxtFont // 文本的字体。 TEXTMETRIC m_tm // 文本字体的信息。
Platform: | Size: 37930 | Author: yang | Hits:

[Other resourcemsp430+1621

Description: 功能:用msp430驱动1621芯片的段码液晶 作者:徐世龙(网名:清风徐徐) 说明:源创(调试绝对能用) ---------------------------------------------------- cs-----p65 wr-----p64 dat----p63 mcu----msp430f135 ------------------------------------------------------------*/ /*------------------------ 功能:延时 参数:uint y 返回:无 说明:无 -------------------------*/
Platform: | Size: 1759 | Author: 第三代 | Hits:

[Special Effectsuint-linking-PCNN

Description: 用UINT-pcnn进行的图像处理~~对于初学者很有用~~可以运行-UINT-pcnn image processing to be useful for beginners ~ ~ can run
Platform: | Size: 161792 | Author: 小西 | Hits:
« 12 3 4 5 6 7 8 »

CodeBus www.codebus.net