摘要:
使用RenderMonkey: 从自带的sobel修改的。 vertex: Fragment: 阅读全文
posted @ 2017-08-27 17:09
Dsp Tian
阅读(979)
评论(0)
推荐(0)
摘要:
vs2010编译好的qrencode库:http://files.cnblogs.com/files/verstin/qrencode.rar 版本是3.4.4 编译方法参考:http://blog.csdn.net/liyuanbhu/article/details/44647139 测试代码: 阅读全文
posted @ 2017-08-27 17:08
Dsp Tian
阅读(10358)
评论(2)
推荐(0)
摘要:
转自:http://blog.csdn.net/friendan/article/details/46576699 fatal error C1189: #error : missing -D__STDC_CONSTANT_MACROS / #define __STDC_CONSTANT_MACRO 阅读全文
posted @ 2017-08-27 17:08
Dsp Tian
阅读(1594)
评论(0)
推荐(0)
摘要:
转自:http://blog.chinaunix.net/uid-25201977-id-3014100.html #include <QtSql>QT += sql QSqlDatabase类实现了数据库连接的操作QSqlQuery类用来执行SQL语句QSqlRecord类 封装数据库所有记录 第 阅读全文
posted @ 2017-08-27 17:07
Dsp Tian
阅读(1091)
评论(0)
推荐(0)
摘要:
在学习c/c++的时候,就讲到了一些C类型的字符串函数不是安全的,比如strcpy没有检查长度会溢出,推荐使用strncpy,笔试面试也经常问到。同时经常浏览安全相关的新闻,缓冲区溢出攻击是很常见的一种。那缓冲区溢出为什么可以攻击。今天通过strcpy进行简单的演示。 如下是guess_pwd.cp 阅读全文
posted @ 2017-08-27 17:07
Dsp Tian
阅读(1056)
评论(0)
推荐(0)
摘要:
http://bbs.csdn.net/topics/390052882 阅读全文
posted @ 2017-08-27 17:07
Dsp Tian
阅读(6274)
评论(0)
推荐(0)
摘要:
库在这里 这个很好用。 例子: 阅读全文
posted @ 2017-08-27 17:06
Dsp Tian
阅读(599)
评论(0)
推荐(0)
摘要:
笔者初使用OpenGL之时,所遇到的命令不能生效的问题:比如开始想用gLClearColor来设置背景色为红色,结果执行后背景还是默认的黑色。后来查阅资料,才知道这与OpenGL的指令执行流程有关,要让设置的绘制效果实现,需要用到glFlush()或glFinish()函数。 OpenGL是用一条渲 阅读全文
posted @ 2017-08-27 17:05
Dsp Tian
阅读(1235)
评论(0)
推荐(0)
摘要:
交集:http://www.boost.org/doc/libs/1_56_0/libs/geometry/doc/html/geometry/reference/algorithms/intersection.html 并集:http://www.boost.org/doc/libs/1_56_0 阅读全文
posted @ 2017-08-27 17:05
Dsp Tian
阅读(1160)
评论(0)
推荐(0)
摘要:
从这里看的http://forums.codeguru.com/showthread.php?446641-How-can-I-output-an-image-generated-with-openGL-to-an-image-file-such-as-jpg 阅读全文
posted @ 2017-08-27 17:04
Dsp Tian
阅读(1568)
评论(0)
推荐(0)
摘要:
一、区别HWND是句柄,CWnd是MFC窗体类,CWnd中包含HWND句柄成员对象是m_hWnd.HWND是Windows系统中对所有窗口的一种标识,即窗口句柄。这是一个SDK概念。 CWnd是MFC类库中所有窗口类的基类。微软在MFC中将所有窗口的通用操作都封装到了这个类中,如:ShowWindo 阅读全文
posted @ 2017-08-27 17:04
Dsp Tian
阅读(503)
评论(0)
推荐(0)
摘要:
好东西。。。 http://pan.baidu.com/s/1BtZ4s 阅读全文
posted @ 2017-08-27 17:03
Dsp Tian
阅读(578)
评论(0)
推荐(0)
摘要:
1.下载安装mingw32 2.将mingw下bin和msys\1.0下bin设置为系统path 3.启动msys.bat 4.cd到项目目录 5.输入./configure 6.输入make 7.输入make install 8.cd C:\MinGW\msys\1.0\local\lib 9.a 阅读全文
posted @ 2017-08-27 17:03
Dsp Tian
阅读(3734)
评论(0)
推荐(0)
摘要:
#include #include #include #include #include class MyApp : public wxApp { public: virtual bool OnInit(); void OnAddText(wxThreadEvent &event); wxGauge *g; }; class MyThread : publ... 阅读全文
posted @ 2017-08-27 17:02
Dsp Tian
阅读(1631)
评论(0)
推荐(0)
摘要:
库的核心是FIBITMAP数据结构,里面包含像素和exif等信息。 得到图像格式函数FREE_IMAGE_FORMST fif=FreeImage_GetFileType(filename); 读图像函数FIBITMAP *dib=FreeImage_Load(fif,filename,0); 写图 阅读全文
posted @ 2017-08-27 17:02
Dsp Tian
阅读(3811)
评论(0)
推荐(0)
摘要:
EVT_LEFT_DOWN(func) 用来处理wxEVT_LEFT_DOWN事件, 在鼠标左键按下的时候产生. EVT_LEFT_UP(func) 用来处理wxEVT_LEFT_UP事件, 在鼠标左键被释放的时候产生. EVT_LEFT_DCLICK(func) 用来处理wxEVT_LEFT_DC 阅读全文
posted @ 2017-08-27 17:01
Dsp Tian
阅读(1715)
评论(0)
推荐(0)
摘要:
#include "MainFrame.h" BEGIN_EVENT_TABLE(MyFrame,wxFrame) EVT_MENU(wxID_FILE,MyFrame::OnMenuEvt) END_EVENT_TABLE() MyFrame::MyFrame(const wxString& title) : wxFrame(NULL, wxID_ANY, title) ... 阅读全文
posted @ 2017-08-27 17:01
Dsp Tian
阅读(707)
评论(0)
推荐(0)
摘要:
#include int main() { if(remove("1.txt")) printf("Could not delete the file &s \n","1.txt"); else printf("OK \n"); return 0; } 阅读全文
posted @ 2017-08-27 17:00
Dsp Tian
阅读(370)
评论(0)
推荐(0)
摘要:
http://docs.wxwidgets.org/trunk/classwx_u_i_action_simulator.html 阅读全文
posted @ 2017-08-27 17:00
Dsp Tian
阅读(395)
评论(0)
推荐(0)
摘要:
#include #include #include void main( void ) { /* Check for existence */ if( (_access( "D:\\a.txt", 0 )) != -1 ) { printf( "File ACCESS.C exists\n" ); /* Check for write p... 阅读全文
posted @ 2017-08-27 16:59
Dsp Tian
阅读(1866)
评论(0)
推荐(0)
摘要:
unsigned long get_file_size(const char *filename) { struct stat buf; if(stat(filename, &buf)<0) { return 0; } return (unsigned long)buf.st_size; } 阅读全文
posted @ 2017-08-27 16:59
Dsp Tian
阅读(384)
评论(0)
推荐(0)
摘要:
#include #include class myApp : public wxApp { public: bool OnInit(void); int OnExit(void); }; IMPLEMENT_APP(myApp) bool myApp :: OnInit(){ int max = 500; wxFrame* f... 阅读全文
posted @ 2017-08-27 16:58
Dsp Tian
阅读(976)
评论(0)
推荐(0)
摘要:
Android 客户端: AndroidManifest.xml添加: 界面如下: c++服务端: 阅读全文
posted @ 2017-08-27 15:28
Dsp Tian
阅读(2156)
评论(0)
推荐(0)
摘要:
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace WebApplication1 { public partial class WebFor... 阅读全文
posted @ 2017-08-27 15:25
Dsp Tian
阅读(786)
评论(1)
推荐(0)
摘要:
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; namespace Wind... 阅读全文
posted @ 2017-08-27 15:24
Dsp Tian
阅读(897)
评论(0)
推荐(0)
摘要:
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; namespace Wind... 阅读全文
posted @ 2017-08-27 15:24
Dsp Tian
阅读(1186)
评论(0)
推荐(0)
摘要:
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; namespace Wind... 阅读全文
posted @ 2017-08-27 15:24
Dsp Tian
阅读(538)
评论(0)
推荐(0)
摘要:
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 System.IO... 阅读全文
posted @ 2017-08-27 15:23
Dsp Tian
阅读(635)
评论(0)
推荐(0)
摘要:
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 System.Dr... 阅读全文
posted @ 2017-08-27 15:22
Dsp Tian
阅读(2452)
评论(0)
推荐(0)
摘要:
首先用vs2010建立win32项目,选择dll和空项目。 头文件add.h 源文件add.cpp 编译生成add.dll。 C#调用: 调试报错,执行没有错。 阅读全文
posted @ 2017-08-27 15:18
Dsp Tian
阅读(517)
评论(0)
推荐(0)
摘要:
using System; namespace ConsoleApplication { class Program { static void Main(string[] args) { Console.Write(DateTime.Now); Console.ReadKey... 阅读全文
posted @ 2017-08-27 15:17
Dsp Tian
阅读(532)
评论(0)
推荐(0)
摘要:
using System; namespace ConsoleApplication2 { class Program { static void Main(string[] args) { int a = 5; unsafe { int* p... 阅读全文
posted @ 2017-08-27 15:17
Dsp Tian
阅读(560)
评论(0)
推荐(0)
摘要:
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Diagnostics; using System.Wind... 阅读全文
posted @ 2017-08-27 15:16
Dsp Tian
阅读(9735)
评论(0)
推荐(0)
摘要:
using System; using System.IO; using System.Diagnostics; namespace ConsoleApplication { class Program { static void Main(string[] args) { string dst = "c:/123.exe"... 阅读全文
posted @ 2017-08-27 15:16
Dsp Tian
阅读(563)
评论(0)
推荐(0)
摘要:
1.this.Close(); 只是关闭当前窗口,若不是主窗体的话,是无法退出程序的,另外若有托管线程(非主线程),也无法干净地退出; 2.Application.Exit(); 强制所有消息中止,退出所有的窗体,但是若有托管线程(非主线程),也无法干净地退出; 3.Application.Exit 阅读全文
posted @ 2017-08-27 15:15
Dsp Tian
阅读(402)
评论(0)
推荐(0)
摘要:
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Diagnostics; using System.Wind... 阅读全文
posted @ 2017-08-27 15:15
Dsp Tian
阅读(1102)
评论(0)
推荐(0)
摘要:
using System; using System.Runtime.InteropServices; using System.Windows.Forms; namespace ConsoleApplication1 { class Program { public struct POINT { public int x... 阅读全文
posted @ 2017-08-27 15:14
Dsp Tian
阅读(838)
评论(0)
推荐(0)
摘要:
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; namespace Wind... 阅读全文
posted @ 2017-08-27 15:14
Dsp Tian
阅读(1957)
评论(0)
推荐(0)
摘要:
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Diagnostics; using System.Wind... 阅读全文
posted @ 2017-08-27 15:14
Dsp Tian
阅读(4926)
评论(0)
推荐(0)
摘要:
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; namespace Wind... 阅读全文
posted @ 2017-08-27 15:13
Dsp Tian
阅读(777)
评论(0)
推荐(0)
摘要:
using System; using System.Runtime.InteropServices; namespace ConsoleApplication { class Program { [DllImport("winmm.dll")] public static extern uint mciSendString(string lps... 阅读全文
posted @ 2017-08-27 15:12
Dsp Tian
阅读(778)
评论(0)
推荐(0)
摘要:
转自:http://www.cnblogs.com/netlyf/archive/2011/06/22/2086718.html 一、获取当前文件的路径 string str1=Process.GetCurrentProcess().MainModule.FileName;//可获得当前执行的exe 阅读全文
posted @ 2017-08-27 15:12
Dsp Tian
阅读(449)
评论(0)
推荐(0)
摘要:
using System; using System.Net; using System.Net.Mail; using System.Text; namespace ConsoleApplication { class Program { static void Main(string[] args) { MailMes... 阅读全文
posted @ 2017-08-27 15:11
Dsp Tian
阅读(515)
评论(0)
推荐(0)
摘要:
using System; using System.Net; namespace ConsoleApplication { class Program { static void Main(string[] args) { IPHostEntry ipHost = Dns.GetHostEntry(Dns.GetHost... 阅读全文
posted @ 2017-08-27 15:11
Dsp Tian
阅读(387)
评论(0)
推荐(0)
摘要:
using System; using System.Data.OleDb; namespace ConsoleApplication { class Program { static void Main(string[] args) { string strConnection = "Provider = Microso... 阅读全文
posted @ 2017-08-27 15:10
Dsp Tian
阅读(536)
评论(0)
推荐(0)
摘要:
using System; using System.Data.SqlClient; namespace ConsoleApplication { class Program { static void Main(string[] args) { SqlConnection con = new SqlConnection(... 阅读全文
posted @ 2017-08-27 15:10
Dsp Tian
阅读(616)
评论(0)
推荐(0)
摘要:
using System; namespace ConsoleApplication { class Program { static void Main(string[] args) { string a = "1234"; int b = Convert.ToInt32(a)+1; ... 阅读全文
posted @ 2017-08-27 15:09
Dsp Tian
阅读(404)
评论(0)
推荐(0)
摘要:
using System; using System.Media; namespace ConsoleApplication { class Program { static void Main(string[] args) { SoundPlayer s = new SoundPlayer("test.wav"); ... 阅读全文
posted @ 2017-08-27 15:09
Dsp Tian
阅读(2609)
评论(1)
推荐(0)
摘要:
using System; namespace ConsoleApplication { class stu { private string name; private int age; public stu() { name = ""; age = -1; ... 阅读全文
posted @ 2017-08-27 15:09
Dsp Tian
阅读(404)
评论(0)
推荐(0)
摘要:
using System; namespace ConsoleApplication { class Program { static void Print(int a, int b) { Console.Write(a + b); } static void Print(string a... 阅读全文
posted @ 2017-08-27 15:08
Dsp Tian
阅读(401)
评论(0)
推荐(0)
摘要:
using System; using System.Collections.Generic; namespace ConsoleApplication { class Program { static void Main(string[] args) { Dictionary a = new Dictionary(); ... 阅读全文
posted @ 2017-08-27 15:07
Dsp Tian
阅读(729)
评论(0)
推荐(0)
摘要:
using System; using System.IO; namespace ConsoleApplication { class Program { static void Main(string[] args) { FileStream file = new FileStream("log.txt", FileMo... 阅读全文
posted @ 2017-08-27 15:07
Dsp Tian
阅读(357)
评论(0)
推荐(0)
摘要:
using System; using System.IO; namespace ConsoleApplication { class Program { static void Main(string[] args) { FileStream file = new FileStream("log.txt", FileMo... 阅读全文
posted @ 2017-08-27 15:07
Dsp Tian
阅读(404)
评论(0)
推荐(0)
摘要:
using System; using System.Collections.Generic; namespace ConsoleApplication { class Program { static void Main(string[] args) { LinkedList a = new LinkedList(); ... 阅读全文
posted @ 2017-08-27 15:06
Dsp Tian
阅读(8370)
评论(0)
推荐(0)
摘要:
using System; using System.Collections.Generic; namespace ConsoleApplication { class Program { static void Main(string[] args) { List a = new List(); ... 阅读全文
posted @ 2017-08-27 15:05
Dsp Tian
阅读(1956)
评论(0)
推荐(0)
摘要:
using System; namespace ConsoleApplication { struct _st { public string name; public int age; } class Program { static void Print(_st a) { ... 阅读全文
posted @ 2017-08-27 15:04
Dsp Tian
阅读(446)
评论(0)
推荐(0)
摘要:
using System; namespace ConsoleApplication { class Program { static void Main(string[] args) { //int[] a=new int[3]; //一维数组 int[,] a = new int[3,3]... 阅读全文
posted @ 2017-08-27 15:02
Dsp Tian
阅读(391)
评论(0)
推荐(0)
摘要:
using System; namespace ConsoleApplication { class Program { static int Add(int a, int b) { return a + b; } static void Main(string[] args) ... 阅读全文
posted @ 2017-08-27 15:02
Dsp Tian
阅读(677)
评论(0)
推荐(0)
摘要:
using System; namespace ConsoleApplication { class Program { static void Main(string[] args) { Console.Write("Hello World!"); Console.Read(); ... 阅读全文
posted @ 2017-08-27 15:01
Dsp Tian
阅读(439)
评论(0)
推荐(0)

浙公网安备 33010602011771号