- 博客(1)
- 资源 (6)
- 收藏
- 关注
转载 HTTP Basic Authentication认证的资源的C#实现
要在发送请求的时候添加HTTP Basic Authentication认证信息到请求中,有两种方法: 一是在请求头中添加Authorization: Authorization: "Basic 用户名和密码的base64加密字符串" 二是在url中添加用户名和密码: http://userName:password@api.minicloud.com.cn/statuses/fr
2014-10-27 22:14:16 4917
Http服务器并发访问压力测试工具(修正版,免积分)
因为自己需要写一个Http服务器,不知道能接受多少并发和性能,于是自己写了一个简单的Http Post/Get并发访问测试软件。
项目是基于.Net Framework4 C#开发的,所以运行设备需事先安装该环境,也就40M,自己百度一下。
关于请求数,多说一句,是依次执行N个异步处理的HTTP请求,速度接近于并发,但不是真正的并发,如果测试服务器和本机是同一台设备,也肯定是会受到这个软件影响的。
如果那位需要源代码的话,可以免费提供,为了避免麻烦,这里只上传EXE文件了。联系地址:http://blog.csdn.net/song_qingwei
2014-03-26
MICROSOFT FOUNDATION CLASS LIBRARY : ThreadDemo
========================================================================
MICROSOFT FOUNDATION CLASS LIBRARY : ThreadDemo
========================================================================
AppWizard has created this ThreadDemo application for you. This application
not only demonstrates the basics of using the Microsoft Foundation classes
but is also a starting point for writing your application.
This file contains a summary of what you will find in each of the files that
make up your ThreadDemo application.
ThreadDemo.dsp
This file (the project file) contains information at the project level and
is used to build a single project or subproject. Other users can share the
project (.dsp) file, but they should export the makefiles locally.
ThreadDemo.h
This is the main header file for the application. It includes other
project specific headers (including Resource.h) and declares the
CThreadDemoApp application class.
ThreadDemo.cpp
This is the main application source file that contains the application
class CThreadDemoApp.
ThreadDemo.rc
This is a listing of all of the Microsoft Windows resources that the
program uses. It includes the icons, bitmaps, and cursors that are stored
in the RES subdirectory. This file can be directly edited in Microsoft
Visual C++.
ThreadDemo.clw
This file contains information used by ClassWizard to edit existing
classes or add new classes. ClassWizard also uses this file to store
information needed to create and edit message maps and dialog data
maps and to create prototype member functions.
res\ThreadDemo.ico
This is an icon file, which is used as the application's icon. This
icon is included by the main resource file ThreadDemo.rc.
res\ThreadDemo.rc2
This file contains resources that are not edited by Microsoft
Visual C++. You should place all resources not editable by
the resource editor in this file.
/////////////////////////////////////////////////////////////////////////////
AppWizard creates one dialog class:
ThreadDemoDlg.h, ThreadDemoDlg.cpp - the dialog
These files contain your CThreadDemoDlg class. This class defines
the behavior of your application's main dialog. The dialog's
template is in ThreadDemo.rc, which can be edited in Microsoft
Visual C++.
/////////////////////////////////////////////////////////////////////////////
Other standard files:
StdAfx.h, StdAfx.cpp
These files are used to build a precompiled header (PCH) file
named ThreadDemo.pch and a precompiled types file named StdAfx.obj.
Resource.h
This is the standard header file, which defines new resource IDs.
Microsoft Visual C++ reads and updates this file.
/////////////////////////////////////////////////////////////////////////////
Other notes:
AppWizard uses "TODO:" to indicate parts of the source code you
should add to or customize.
If your application uses MFC in a shared DLL, and your application is
in a language other than the operating system's current language, you
will need to copy the corresponding localized resources MFC42XXX.DLL
from the Microsoft Visual C++ CD-ROM onto the system or system32 directory,
and rename it to be MFCLOC.DLL. ("XXX" stands for the language abbreviation.
For example, MFC42DEU.DLL contains resources translated to German.) If you
don't do this, some of the UI elements of your application will remain in the
language of the operating system.
/////////////////////////////////////////////////////////////////////////////
2012-07-25
基于MFC实现的远程视频监控系统源代码.rar
基于MFC实现的远程视频监控系统源代码
程序运行在Windows 98/2000/XP/2003平台下,可在VC++ 6.0或.NET中调试。调试前请先安装Microsoft DirectX 9.0 SDK。
2012-04-19
学习VC MFC开发必须了解的常用宏和指令
1、#include指令
包含指定的文件
2、#define指令
预定义,通常用它来定义常量(包括无参量与带参量),以及用来实现那些“表面似和善、背后一长串”的宏,它本身并不在编译过程中进行,而是在这之前(预处理过程)就已经完成了
3、#typedef指令
常用来定义一个标识符及关键字的别名它是语言编译过程的一部分,但它并不实际分配内存空间。
4、#ifndef #else #endif指令
条件编译。一般情况下,源程序中所有的行都参加编译。但是有时希望对其中一部分内容只在满足一定条件才进行编译,也就是对一部分内容指定编译的条件,这就是“条件编译”。有时,希望当满足某条件时对一组语句进行编译,而当条件不满足时则编译另一组语句。
条件编译命令最常见的形式为:
#ifdef 标识符
程序段1
#else
程序段2
#endif
它的作用是:当标识符已经被定义过(一般是用#define命令定义),则对程序段1进行编译,否则编译程序段2。
2012-04-17
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人