自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

笑风生

做最好的自己

  • 博客(25)
  • 资源 (21)
  • 收藏
  • 关注

转载 [转]VC: GDI绘图基本步骤总结

  一、获得绘图的窗口句柄方法(详细参数及其调用可以看考MSDN):1、          HWND FindWindow(LPCTSTR lpClassName, LPCTSTR lpWindowName)HWND FindWindowEx(HWND hwndParent, HWND hwndChildAfter,LPCTSTR lpClassName, LPCTSTR lpWi

2009-10-19 13:24:00 1561 1

转载 [转]VC: 非MFC程序TRACE和ASSERT宏的一种实现方法

 非MFC程序TRACE和ASSERT宏的一种实现方法 收藏     我们知道TRACE和ASSERT宏是MFC框架程序自带的。但是要在非MFC程序中使用这两个宏,我们怎么实现呢。这里给出一种实现的方法。将这两个宏在debug.h文件中实现。程序包含这个头文件就可以了。头文件及说明如下: #ifndef _DEBUG_H_#define _DEBUG_H_#ifndef __AFX_H

2009-10-17 21:01:00 1324 1

转载 [转]VC: BMP位图文件解析

用普通方法显示BMP位图,占内存大,速度慢,在图形缩小时,失真严重,在低颜色位数的设备上显示高颜色位数的图形图形时失真大。本文采用视频函数显示BMP位图,可以消除以上的缺点。 一、BMP文件结构 1. BMP文件组成  BMP文件由文件头、位图信息头、颜色信息和图形数据四部分组成。 2. BMP文件头 BMP文件头数据结构含有BMP文件的类型、文件大小和位图起始位置等信息。

2009-10-17 20:07:00 1870

转载 [转]正则表达式用例

 1。^/d+$  //匹配非负整数(正整数 + 0) 2。^[0-9]*[1-9][0-9]*$  //匹配正整数 3。^((-/d+) ¦(0+))$  //匹配非正整数(负整数 + 0) 4。^-[0-9]*[1-9][0-9]*$  //匹配负整数 5。^-?/d+$    //匹配整数 6。^/d+(/./d+)?$  //匹配非负浮点数(正浮点数 + 0) 7。^(([0-9]+/.[

2009-10-16 17:21:00 907

转载 [转]VC: 更改MFC程序图标

很多时候我们对于MFC框架应用程序的默认图标十分不满意,所以我们来将把它换掉。默认的VC6.0下的MFC图标和VC2005中的MFC图标分别如下:        很多朋友会问我怎么把图标换掉,我看很多人写很多代码,出很多错,其实对于MFC框架应用程序我们可以不写一行代码把那个默认的图标换掉。找一张ICO图标,替换programname/res/programname.ico文件,就可以

2009-10-15 16:37:00 12337 7

转载 [转]error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup

错误    1    error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup    msvcrtd.lib    产生这个问题可能的原因1, 你用vc建了一个控制台程序,它的入口函数应该是main, 而你使用了WinMain.2. 你用vc打开了一个.c/.cpp 文

2009-10-15 16:03:00 7993 4

原创 C#: params用法

using System;using System.Diagnostics;namespace ConsoleApplication1{ public sealed class Program { public static void Main() { Console.WriteLine(Add(

2009-10-13 23:41:00 2377 1

原创 C#: const与readonly的用法和区别解析

总结一下const和readonly:const和readonly的值一旦初始化则都不再可以改写; const只能在声明时初始化;readonly既可以在声明时初始化也可以在构造器中初始化; const隐含static,不可以再写static const;readonly则不默认static,如需要可以写static readonly; const是编译期静态解析的常量(因此其

2009-10-12 19:51:00 8128 1

原创 C#: 继承,重写与隐藏

using System;public sealed class Program{ class A { internal virtual void Func() { Console.WriteLine("A"); } } class B : A {

2009-10-12 16:53:00 1021

原创 CLR via C#: GetHashCode与Hashtable,Dictionary

      Microsoft为了实现对不同对象的区分,以方便将其放入HashTable,通过hashcode找对对应 键/值 对,所以为object设置了这样一个GetHashCode的方法.     获取一个唯一的哈希码区分,object内部的算法不清楚,但是它提供的是虚方法,你自己可以覆写自己的区分方式,当然这要遵循一定的原则。      另外,如果覆写Equal方法的话,就一定要覆

2009-10-11 21:58:00 1450

原创 CLR via C#: 关于equals

//关于Equals/*若目的是判断引用是否相等,最好不要用equals,而是用Reference-Equals.这是因为equals可能被重写.如下示例,如果你想判断个g1,g2是否是同一个引用,但是Stduent中却重写了Equals,故结果是False.而ReferenceEquals(g1, g2)的结果正是你正真想要的.*/using System;u

2009-10-11 19:34:00 542

原创 C#: 自定义数据摆列方式(易于互操作)

using System;using System.Runtime.InteropServices;public sealed class Program{ [StructLayout(LayoutKind.Explicit)] internal struct A { [FieldOffset(0)]public Byte b;

2009-10-11 15:06:00 462

原创 C#: GDI+双缓冲技术的使用

using 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 Sy

2009-10-09 17:13:00 1285 1

原创 C#: GDI+的绘制图像技术

using 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 Sy

2009-10-09 13:17:00 846

原创 C#: GDI+使用示例

using 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 Sy

2009-10-09 12:27:00 949

原创 C#: 构造函数特殊用法示例

using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.IO;using System.Runtime.Serialization;using System.Runtime.Serialization.Formatters.Binary;

2009-10-09 01:56:00 581

原创 C#: 序列化技术示例

using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.IO;using System.Runtime.Serialization;using System.Runtime.Serialization.Formatters.Binary;

2009-10-09 01:45:00 739

原创 C#:TcpClient(客户端) and TcpServer(服务端)

服务端:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Windows;using System.Windows.Controls;using System.Windows.Data;using System.Windows.

2009-10-08 23:02:00 21644 6

原创 C#: WebRequest和WebResponse下载文件示例

using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Windows;using System.Windows.Controls;using System.Windows.Data;using System.Windows.Docume

2009-10-08 19:58:00 7304 1

原创 C#: WebClient用法示例

static void Main(string[] args) { WebClient client = new WebClient(); client.BaseAddress = "http://www.microsoft.com"; string data = client.DownloadStr

2009-10-08 17:32:00 2743 1

原创 C#:DNS HostName查询

static void Main(string[] args) { if (args.Length != 1) { Console.WriteLine("Usage: DnsLoopup hostname/IP Address"); return;

2009-10-08 17:20:00 2031

转载 [转]你的.NET路线

  一. .NET学习全景图       .NET有一个庞大的技术体系,一个初学者,如何决定自己的学习步骤呢?就我自己的经验,谈谈我对这个问题的看法,参见图:       作为一个下定决心要学习.NET的初学者,首先要掌握VS.NET的使用,之所以把掌握这一开发工具放在第一位,是因为在后面的学习过程中,需要使用VS.NET进行不断地编程实践,而只有通过实践,才能最终掌握.NET技术。   

2009-10-08 12:57:00 1140

转载 [转]window xp IIS的配置(2)

Failed to access IIS metabase. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and

2009-10-06 20:20:00 813

转载 [转]window xp IIS的配置(1)

声明:转过来以免后来者走弯路,但也不一定是正确的或对你的电脑适用. 在Windows xp、Windows 2000操作系统下如果需要调试Asp程序,首先需要判断您所安装的系统是否具备调试Asp的环境,IIS(Internet信息服务)是微软公司为开发者提供的一个简单的运行平台,下面就IIS的安装过程作以下介绍:    一、首先您需要判断自己的操作系统是否安装IIS,方法如下图

2009-10-06 19:43:00 816

原创 ASP.NET Error: unable to start program...

ASP Error: unable to start program...solution:      装过IE8就好了.

2009-10-06 14:38:00 517

Thinking in C++英文版 pdf

Thinking in C++英文版 Thinking in C++英文版 Thinking in C++英文版

2009-12-22

Thinking in C++ 源代码

Thinking in C++ C++编程思想 Thinking in C++ C++编程思想 Thinking in C++ C++编程思想

2009-12-22

More Effective C++(中文).chm

More Effective C++(中文).chm More Effective C++(中文).chm More Effective C++(中文).chm

2009-12-22

More+Effective+C++中文.pdf

More+Effective+C++中文.pdf More+Effective+C++中文.pdf More+Effective+C++中文.pdf

2009-12-22

Effective_C++2e(中文).pdf

Effective_C++2e(中文).pdf Effective_C++2e(中文).pdf Effective_C++2e(中文).pdf

2009-12-22

javascript技术讲座

很好很经典的javascript技术讲座

2009-10-03

my c book.chm

my c book.chm.............

2008-07-21

c语言课程设计.chm

c语言课程设计.chm

2008-07-21

C语言程序编程规范.chm

C语言程序编程规范 C语言程序编程规范 C语言程序编程规范

2008-07-21

经典c程序百例.chm

经典c程序百例 看起来还不错 不过还得看你

2008-07-21

C程序设计语言读书笔记.chm

C程序设计语言读书笔记 C程序设计语言读书笔记

2008-07-21

我的个人c见解 图形.chm

我的个人c见解 图形.chm

2008-07-21

c杂谈 图形chm

.......................<br>c杂谈 图形.chm

2008-07-21

上机训练题. chm

上机训练题.chm 上机训练题.chm 上机训练题.chm

2008-07-21

c语言经典经典!!!

..................................

2008-07-19

c++经典、、、

、、、、、、。。。。。。。。。。。。。。。。。

2008-07-19

c学习建议!!!

。。。。。。。。。。。。。。。。。。。。

2008-07-19

算法导论。。。

。。。。。。。。。。。。。。。

2008-07-19

超级优秀好算法。。。。

算法。。。。。。。。。。。。。。

2008-07-19

算法与c语言超级经典

!。。。。。。。。。。。。。。。。。

2008-07-11

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除