随笔分类 -  00 Windows Programming

摘要:Abstract This PEP proposes to introduce a syntax to declare the encoding of a Python source file. The encoding information is then used by the Python parser to interpret the file using the given encod... 阅读全文

posted @ 2009-06-27 22:57 土豆皮 阅读(574) 评论(0) 推荐(0)

摘要:一个基础实例 BOOLAnimateWindow( HWNDhwnd, DWORDdwTime, DWORDdwFlags );   hWnd:指定产生动画窗口的句柄;   dwTime:指明动画持续的时间(以微秒计),完成一个动画的标准时间为200微秒;   dwFags:指定动画类型。这个参数可以是一个或多个标志的组合。 dwFlags:   AW_SLIDE:使用滑动类型。缺省为滚动类型。使... 阅读全文

posted @ 2009-06-18 14:55 土豆皮 阅读(460) 评论(0) 推荐(0)

摘要:在vc++中程序中用了srandom()和random(),头文件为stdlib.h,但编译出现错误error C3861: “srandom”: 找不到标识符。 原因是现在vc++编译器的库函数中没有randomize()和random(),分别用srand()和rand()代替了。 #include <time.h> //定义关于时间的函数 一般在用到t... 阅读全文

posted @ 2009-06-17 23:59 土豆皮 阅读(1763) 评论(0) 推荐(0)

摘要:At the core of any pseudorandom number generation software is a routine for generating uniformly distributed random integers. In C++ TR1 you have your choice of several core generators that it calls &... 阅读全文

posted @ 2009-06-17 23:58 土豆皮 阅读(2834) 评论(2) 推荐(0)

摘要:文章作者:Bideyore[E.S.T]信息来源:邪恶八进制 中国(http://www.eviloctal.com/)对于熟悉Win API编程的同志们来说,windowsx.h这个头文件应该不会太陌生吧,这次要讲的内容就来自这个windowsx.h头文件。经常能在msdn上查到这样一些函数,明明是个函数,而且模样长得和一般的api函数也一样一样的,可却叫做macro,为什么呢?留意一下函数使用... 阅读全文

posted @ 2009-02-24 00:17 土豆皮 阅读(809) 评论(1) 推荐(0)

导航