- 博客(29)
- 收藏
- 关注
原创 程序文档,框架结构自动生成工具
<br /> 对于很多程序员来说,辛辛苦苦的开发完了一套软件,最不原意干的事情就是后期写文档。 或者说有个别人写的程序,需要看懂他的框架,结构。这个是很辛苦的。现在向大家介绍一个工具,可以帮我们自动的完成这些单调,繁杂的工作。<br /> <br />1。doxygen软件<br />下载地址 :http://sourceforge.net/projects/doxygen/<br />2。Graphviz - Graph Visualization Software<br />下载地址: http://
2010-12-16 16:27:00
950
原创 让模板类支持可变模板参数
<br />#pragma once#include <string>using namespace std;class Action{public: virtual string CanDo() = 0 ;};class Fly : public Action{public: string fly() {return "Fly";} virtual string CanDo() {return fly();}};class Run :
2010-10-10 22:07:00
381
原创 创建透明窗体
<br />将如下代码放入窗口初始化函数中如: OnInitDialog()<br /> <br />SetWindowLong(this->GetSafeHwnd(),GWL_EXSTYLE, GetWindowLong(this->GetSafeHwnd(),GWL_EXSTYLE)^0x80000); HINSTANCE hInst = LoadLibrary(_T("User32.DLL")); if(hInst) { typedef BOOL
2010-09-29 10:12:00
447
转载 程序初始化失败的解决办法(0xc0150002)
自己电脑上能用,到了其他电脑上就不能用了,是不是很头痛,除了必要的DLL文件,还有些什么是必须一起打包发行的呢?1."应用程序配置不正确"参考:http://blog.youkuaiyun.com/Blue_Dream_/archive/2007/10/05/1811975.aspx1.如果你的项目属性是 MD 或 MDd,那就要把以下文件放入你的EXE目录一起发布开始-运行- X:/Program Files/Microsoft Visual Studio 8/VC/redist/Debug_NonRedist/x8
2010-07-29 11:06:00
2360
原创 使应用程序只能运行一个实例
这里涉及两个基本的问题,一是在程序的第二个实例启动时,如何发现该程序已有 一个实例在运行,而是如何将第一个实例激活,而第二个实例退出。 方法一: 对于第一个问题,可以通过给应用程序设置信号量,实例启动时首先检测该信号量, 如已存在,则说明程序已运行一个实例。 第二个问题的难点是获取第一个实例的主窗对象指针或句柄,然后便可用 SetForegroundWindow来激活。虽然FindWindow函数能寻找正运行着的窗口,但该函 数要求指明所寻找窗
2010-07-16 14:08:00
554
原创 文件读写操作总结
<br /><br />一.C-Runtime 函数<br />1. _tfopen函数。<br />一般用于客户端,只能独享打开的文件,不能以共享的方式打开。<br />FILE *fopen( <br /> const char*filename,<br /> constchar*mode<br />);<br /> <br />FILE *_wfopen( <br /> const wchar_t*filename,<br /> const wchar_t*mode<br />);<b
2010-06-21 13:50:00
474
原创 文件读写操作总结
<br /><br />一.C-Runtime 函数<br />1. _tfopen函数。<br />一般用于客户端,只能独享打开的文件,不能以共享的方式打开。<br />FILE *fopen( <br /> const char*filename,<br /> constchar*mode<br />);<br /> <br />FILE *_wfopen( <br /> const wchar_t*filename,<br /> const wchar_t*mode<br />);<b
2010-06-21 13:50:00
1939
原创 文件读写操作总结
<br /><br />一.C-Runtime 函数<br />1. _tfopen函数。<br />一般用于客户端,只能独享打开的文件,不能以共享的方式打开。<br />FILE *fopen( <br /> const char*filename,<br /> constchar*mode<br />);<br /> <br />FILE *_wfopen( <br /> const wchar_t*filename,<br /> const wchar_t*mode<br />);<b
2010-06-21 13:49:00
991
原创 如何用Windbg调试程序
如何将应用程序绑定到Windbg上面。<br />1.写注册表文件(.reg)<br />Windows Registry Editor Version 5.00<br /><br />[HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows NT/CurrentVersion/Image File Execution Options/[Your application] ]<br />"Debugger"="C://Program Files//Debugging To
2010-06-21 13:47:00
555
原创 WinDbg的使用
如何将应用程序绑定到Windbg上面。<br />1.写注册表文件(.reg)<br />Windows Registry Editor Version 5.00<br /><br />[HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows NT/CurrentVersion/Image File Execution Options/[Your application]]<br />"Debugger"="C://Program Files//Debug
2010-05-31 13:21:00
833
原创 _variant_t类型的使用
Normal 0 7.8 pt 0 2 false false false EN-US ZH-CN X-NONE
2010-05-24 11:09:00
1560
转载 VC:__declspec(novtable)
标题 VC:__declspec(novtable) 选择自 toby 的 Blog 关键字 VC:__declspec(novtable)出处 C++里virtual的缺陷就是vtable会增大代码的尺寸,看vcl时,object pascal里virtual也有vtable的问题,于
2010-05-20 23:00:00
549
原创 Managed code debuggging with Windbg 2
1. Set Enviroment Variables _NT_SYMBOL_PATH = SRV*c:/websymbols*http://msdl.microsoft.com/download/symbols2. .load dll to support debug managed codes 0:000> .load C:/Windows/Microsoft.NET/Fr
2010-03-08 17:50:00
346
原创 Managed Code Debugging with WinDbg
There are two windbg extentions that add support for managed code debugging.SOS. This is available on every machine that has .NET installed on it.PSSCOR2. Currently only available internally fro
2010-03-04 16:52:00
428
原创 Debugging Managed Code with Windbg
Heres a sample session on running Windbg in a test cloud. One afternoon, we kept getting the following email messages saying a service crashes: "BGWatchdog64.exe" crashed on TK1MSG1061705. See
2010-03-04 16:43:00
497
原创 How to use WinDBG to debug
How to use WinDBG to debug Collecting Memory Dump The easiest way to collect memory dump is to use adplus.vbs script.This script can be used to collect hanging/crashing memory dump, but mo
2010-03-04 16:34:00
710
原创 Hook up your debugger to VM
Debugger setup for VM’s (works for Vista+; minor changes needed for downlevel – ask if needed) 1) On the host, install the debuggers via //dbg/privates/latest/dbginstall.cmd.2) In the
2010-03-04 16:19:00
780
转载 Windows Mobile Test Framework实现手机软件自动化测试的介绍
http://www.51testing.com/html/48/n-73748.html
2009-08-19 10:11:00
335
原创 How to debug test code on Windows Mobile Emulator with Visual Studio
Steps: Notice: We will use Windows Mobile 6.1.4 Classic Emulator, and call it WM6 for short. We will use Visual Studio 2008, and call it VS for short1. Connect to WM6 and cradle.2. C
2009-08-19 10:03:00
1101
原创 How to configure SmartPhone for debugging in VS 2008
Steps below:1. In PC side, Start->All programs->Microsoft Visual studio 2008->Visual studio remote tools->Open “Remote registry editor”->Select the opened SmartPhone to open it.2.
2009-08-19 09:55:00
329
原创 Steups for Mobile testing
Setup the Device Emulator1. Install the Windows Mobile 6 Professional & Standard SDK first, then install 6.1, 6.1.4 and 6.5 SDK from //172.25.232.7/q/SDK.2. Device Emulator is availabl
2009-08-19 09:44:00
785
原创 使用C++开发Windows Service
使用到的Windows API,在中查询它们的定义: 1. SERVICE_TABLE_ENTRY2. StartServiceCtrlDispatcher3. RegisterServiceCtrlHandler4. SetServiceStatusPS:也可以使用ATL Windows Service模板来进行创建于开发。
2009-05-14 11:06:00
830
转载 C# 3.0新的特性
我眼中的C# 3.0 Written by Allen Lee 缘起 每次有新技术发布时,我们总能感受到两种截然不同的情绪:一种是恐惧和抵抗,伴随着这种情绪的还有诸如"C# 2.0用的挺好的,为什么要在C# 3.0搞到那么复杂?"或者"我还在使用C# 1.0呢?"等言辞;另一种则是兴奋和拥抱,伴随着这种情绪的还有诸如"原来这个问题在C# 3.0里可以这么简单!"等言辞
2009-05-04 15:51:00
453
原创 在C#中调用C++Dll函数的方法
1. 输入数值的情况1) C++ DLL中的函数定义 // if there is no "extern "C" " , we cannot use the functions in C#// *****************Input value *************************************
2009-04-29 18:09:00
870
转载 用户管理函数
作者:Michael Bright 原文:http://www.csharphelp.com/archives2/archive439.html 翻译作者: Tony Qu翻译原文:http://www.cnblogs.com/tonyqus/archive/2004/12/26/82120.aspx本文将着重介绍Win32 API库中涉及网络管理的函数。首先我要讲一讲在.Net框架中管理用户的
2009-02-27 14:21:00
823
原创 Dll的创建与使用
一. 创建Dll1. 使用__declspec(dllexport)导出函数或类。 Note:确认LOGUTILCPP_API已经定义。Property Pages->Configuration Properties->C/C++->Preprocessor->Preprocessor Definitions.#ifdef LOGUTILCPP_EXPORT
2008-12-15 15:47:00
386
转载 用DEF文件从Dll中导出C++类
用DEF从DLL导出一个函数,或用__declspec(dllexport)指令从DLL中导出一类,想必大家已经很熟悉了,也经常使用着。这里向大家介绍一种用DEF文件从DLL导出一个类的方法。主要操作步骤如下: 1.打开VC6.0,新建一个"Win32 Dynamic-Link Library"工程,假设叫DefClass,在“Dll kind”选择界面中选择“A simpl
2008-12-15 14:30:00
563
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人