自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(14)
  • 资源 (7)
  • 收藏
  • 关注

原创 mysql远程登录1130解决方法

[root@Server huage]# mysql -h 88.88.88.88 -P 3306 -u root -pEnter password: ERROR 1130 (HY000): Host 'my_wan_ip' is not allowed to connect to this MySQL server 出现这种情况是因为mysql服务器出于安全考虑,默认只允许本地登

2014-08-04 08:28:36 457

转载 _beginthread 和 CreateThread 区别

或许有人会说,我用CreateThread创建线程以后,我也调用了C运行库函数,并且也使用ExitThread退出了,可是我的程序运行得好好的,既没有因为CRT没有初始化而崩溃,也没有因为忘记调用 _endthread而发生内存泄漏,这是为什么呢,让我们继续我们的CRT之旅。 假设我用CreateThread创建了一个线程,我调用strtok函数来进行字符串处理,这个函数肯定是需要某些额外的运行时

2014-07-15 08:49:03 492

转载 0长度数组的用途

C语言中,在有些结构体里面,会出现一个“0长度数组”的定义,例如: typedef struct tag_test {     int a;     int buf_len;     char p[0]; }test_s; 从对数组的定义上,上面的结构基本等同于如下的结构: typedef struct tag_test1 {     int a;   

2014-05-21 13:22:13 745

原创 set改变排序规则

set自带排序功能默认升序。要想改变排序规则运用如下代码(

2014-05-08 15:25:29 1090

转载 win线程等待代码

BOOL        bWait = TRUE; while (bWait)  {  DWORD dwEvt = MsgWaitForMultipleObjects(1,hTshorthread1,FALSE,INFINITE,QS_ALLINPUT);  switch(dwEvt)   {  case WAIT_OBJECT_0:           bWait =

2014-05-07 09:19:56 415

原创 快速排序

void  qsort(int isort[], int ilen){ if (0 >= ilen) {  return; } int i = 0; int ibegin = 0; int iend  = ilen; while(ibegin  {  while (ibegin   {   if (isort[ibegin] > isort[ie

2014-04-30 15:56:54 384

转载 禁用右键 回车 ESC 和 ALT+F4组合建

void CLogin::OnContextMenu(CWnd* /*pWnd*/, CPoint /*point*/){ //禁用 菜单栏 右击事件 return;}BOOL CLogin::PreTranslateMessage(MSG* pMsg){ // TODO: 在此添加专用代码和/或调用基类  if(pMsg->message == WM_KEYDOW

2014-04-30 15:05:31 697

转载 Richedit使用技巧

一.常见问题a.可以编译 ,不能执行的AfxInitRichEdit();b.升级默认的Riched版本(默认的有一些bug),如可在InitInstance中添加LoadLibrary("RICHED20.DLL ") 最后注意 FreeLibrary 如果是CRichEditView基类的可用BOOL CXXXXXXView::PreCreateWindow

2012-07-04 04:23:21 2192

转载 自定义 CRichEditCtrl 控件

在VC中提供了两种很方便的编辑控件(CEdit 和CRichEditCtrl),一般来说这两种控件已经满足了我们大部分的需要,不过只有CEdit控件能响应我们鼠标右键消息,通过右键我们很容易的操作我们的编辑,而在CRichEditCtrl控件中我们不能得到这样的操作,同时CRichEditCtrl是能够包含各种格式的内容,就好像Word一样能够写入各种不同的字体,不过CRichEditCtrl没有

2012-07-04 04:16:14 458

转载 类似MSN信息发送框的制作(上)

一、引言 用 MSN 和 QQ 等聊天的时候,当用户输入特定意义的字符串时,系统回自动用一张小图片替代.比如输入" : ) "系统会用一个小笑脸代替。我要实现的就是这样一个信息输入框 。这个信息输入框由两部分组成:图案选择器和多功能文本框。本篇介绍多功能文本框。 二、原理简介 1、主要功能用CRichEditCtrl实现,像设置字体,设置字体颜色,字号等等CRichEditCtrl

2012-07-04 04:05:35 661

原创 八皇后算法

Imports System.MathPublic Class eightqueen    Dim topnum As Int16 = 7    Dim printb As Boolean    Dim j2 As Int16 = 0    Dim eightqueenplace2((topnum * 2) * (topnum * 2), topnum, topnum) As

2012-05-18 23:30:25 269

转载 VB.NET环境下的Socket编程举例

一直以来很想学习Socket编程方面的应用,比如怎样通过Socket编程实现单片机与PC的TCP连接通信。在单片机嵌入网卡芯片与PC进行连接通信,实现PC的web方式对单片机所控制的设备的状态管理,例如智能家居方面的应用。        下面通过例子来学习VB.NET中Net.Sockets类的应用,下面的程序分别分服务器和客户端两部分:Visual Basic ---tc

2012-05-18 23:21:22 754

转载 【转】用VB操作Excel详解 .

用VB操作Excel详解一、 VB读写EXCEL表:VB本身提自动化功能可以读写EXCEL表,其方法如下:1、在工程中引用MicrosoftExcel 类型库:从"工程"菜单中选择"引用"栏;选择Microsoft Excel 9.0 Object Library(EXCEL2000),然后选择"确定"。表示在工程中要引用EXCEL类型库。2、在通用对象的声明过程中定义

2012-05-16 16:40:44 3070

原创 vb.net Dateset单元格重载(网上重载修改后结果)

#Region "GridView cell重载"Public Class GridViewCustomCellAIJ02412001    Inherits DataGridViewTextBoxCell    Private lisSigTopLine As Boolean = False    Private lisSigButtomLine As Boolean = Fal

2012-05-09 11:55:12 447

cygwin2.738 主资源 for windows

由于无法上传大于60M的文件,所以把文件分为主和子两部分: cygwin2.738 主资源 for windows,请下载 cygwin2.738 下子资源并解压放到主资源的release文件夹中。主资源中有安装说明等

2014-03-24

cygwin2.738 下子资源

cygwin2.738 下子资源 下载后解压到放在release中

2014-03-24

duilib源码及事例

duilib源码及事例 2013最后一版

2014-02-14

dll编程深入浅出

dll编程深入浅出 不错的资料 自己保存一份

2013-12-23

C&C++参考手册

C&C++语言参考手册(中文) 不错的 一直在用

2013-12-23

Chartlet.dll

一个不错的画图控件, 基本属性 ———————————————— ID System.String ShowCopyright System.Boolean InflateWidth System.Int32 InflateHeight System.Int32 ShowErrorInfo System.Boolean Colorful System.Boolean AutoBarWidth System.Boolean Alpha3D System.Byte Depth3D System.Int32 Dimension FanG.Chartlet.ChartDimensions RootPath System.String ImageFolder System.String ChartType FanG.Chartlet.ChartTypes GroupSize System.Int32 MaxValueY System.Double MinValueY System.Double RoundRectangle System.Boolean RoundRadius System.Int32 LineConnectionType FanG.Chartlet.LineConnectionTypes LineConnectionRadius System.Int32 AppearanceStyle FanG.Chartlet.AppearanceStyles 复合属性 ———————————————— ChartTitle FanG.TextAttributes Text System.String Show System.Boolean Font System.Drawing.Font ForeColor System.Drawing.Color BackColor System.Drawing.Color Fill FanG.Painting ColorStyle FanG.Chartlet+ColorStyles ShiftStep System.Int32 TextureStyle System.Drawing.Drawing2D.HatchStyle Color1 System.Drawing.Color Color2 System.Drawing.Color Color3 System.Drawing.Color TextureEnable System.Boolean Stroke FanG.StokeStyle Width System.Int32 ColorStyle FanG.Chartlet+ColorStyles ShiftStep System.Int32 TextureStyle System.Drawing.Drawing2D.HatchStyle Color1 System.Drawing.Color Color2 System.Drawing.Color Color3 System.Drawing.Color TextureEnable System.Boolean Crystal FanG.CrystalAttributes Enable System.Boolean CoverFull System.Boolean Contraction System.Int32 Direction FanG.Chartlet.Direction Shadow FanG.ShadowAttributes Enable System.Boolean Radius System.Int32 Distance System.Int32 Color System.Drawing.Color Alpha System.Byte Angle System.Single Hollow System.Boolean ColorGuider FanG.Attributes Show System.Boolean Font System.Drawing.Font ForeColor System.Drawing.Color BackColor System.Drawing.Color Tips FanG.Attributes Show System.Boolean Font System.Drawing.Font ForeColor System.Drawing.Color BackColor System.Drawing.Color YLabels FanG.LabelsAttributes UnitText System.String UnitFont System.Drawing.Font Show System.Boolean Font System.Drawing.Font ForeColor System.Drawing.Color BackColor System.Drawing.Color XLabels FanG.XLabelsAttributes SampleSize System.Int32 RotateAngle System.Single UnitText System.String UnitFont System.Drawing.Font Show System.Boolean Font System.Drawing.Font ForeColor System.Drawing.Color BackColor System.Drawing.Color ———————————————— End of document

2013-03-19

VC知识库五周年之论坛精

VC知识库五周年之论坛精 希望对下载的各位有帮助

2013-01-20

空空如也

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

TA关注的人

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