08 2017 档案

摘要:使用RenderMonkey: 从自带的sobel修改的。 vertex: Fragment: 阅读全文
posted @ 2017-08-27 17:09 Dsp Tian 阅读(963) 评论(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 阅读(9241) 评论(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 阅读(1583) 评论(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 阅读(1081) 评论(0) 推荐(0) 编辑
摘要:在学习c/c++的时候,就讲到了一些C类型的字符串函数不是安全的,比如strcpy没有检查长度会溢出,推荐使用strncpy,笔试面试也经常问到。同时经常浏览安全相关的新闻,缓冲区溢出攻击是很常见的一种。那缓冲区溢出为什么可以攻击。今天通过strcpy进行简单的演示。 如下是guess_pwd.cp 阅读全文
posted @ 2017-08-27 17:07 Dsp Tian 阅读(1033) 评论(0) 推荐(0) 编辑
摘要:http://bbs.csdn.net/topics/390052882 阅读全文
posted @ 2017-08-27 17:07 Dsp Tian 阅读(6258) 评论(0) 推荐(0) 编辑
摘要:库在这里 这个很好用。 例子: 阅读全文
posted @ 2017-08-27 17:06 Dsp Tian 阅读(585) 评论(0) 推荐(0) 编辑
摘要:笔者初使用OpenGL之时,所遇到的命令不能生效的问题:比如开始想用gLClearColor来设置背景色为红色,结果执行后背景还是默认的黑色。后来查阅资料,才知道这与OpenGL的指令执行流程有关,要让设置的绘制效果实现,需要用到glFlush()或glFinish()函数。 OpenGL是用一条渲 阅读全文
posted @ 2017-08-27 17:05 Dsp Tian 阅读(1207) 评论(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 阅读(1083) 评论(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 阅读(1554) 评论(0) 推荐(0) 编辑
摘要:一、区别HWND是句柄,CWnd是MFC窗体类,CWnd中包含HWND句柄成员对象是m_hWnd.HWND是Windows系统中对所有窗口的一种标识,即窗口句柄。这是一个SDK概念。 CWnd是MFC类库中所有窗口类的基类。微软在MFC中将所有窗口的通用操作都封装到了这个类中,如:ShowWindo 阅读全文
posted @ 2017-08-27 17:04 Dsp Tian 阅读(493) 评论(0) 推荐(0) 编辑
摘要:好东西。。。 http://pan.baidu.com/s/1BtZ4s 阅读全文
posted @ 2017-08-27 17:03 Dsp Tian 阅读(572) 评论(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 阅读(3685) 评论(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 阅读(1574) 评论(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 阅读(3728) 评论(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 阅读(1636) 评论(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 阅读(700) 评论(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 阅读(364) 评论(0) 推荐(0) 编辑
摘要:http://docs.wxwidgets.org/trunk/classwx_u_i_action_simulator.html 阅读全文
posted @ 2017-08-27 17:00 Dsp Tian 阅读(389) 评论(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 阅读(1847) 评论(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 阅读(375) 评论(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 阅读(958) 评论(0) 推荐(0) 编辑
摘要:Android 客户端: AndroidManifest.xml添加: 界面如下: c++服务端: 阅读全文
posted @ 2017-08-27 15:28 Dsp Tian 阅读(2132) 评论(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 阅读(781) 评论(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 阅读(886) 评论(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 阅读(1179) 评论(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 阅读(527) 评论(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 阅读(631) 评论(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 阅读(2435) 评论(0) 推荐(0) 编辑
摘要:首先用vs2010建立win32项目,选择dll和空项目。 头文件add.h 源文件add.cpp 编译生成add.dll。 C#调用: 调试报错,执行没有错。 阅读全文
posted @ 2017-08-27 15:18 Dsp Tian 阅读(504) 评论(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 阅读(525) 评论(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 阅读(552) 评论(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 阅读(9704) 评论(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 阅读(556) 评论(0) 推荐(0) 编辑
摘要:1.this.Close(); 只是关闭当前窗口,若不是主窗体的话,是无法退出程序的,另外若有托管线程(非主线程),也无法干净地退出; 2.Application.Exit(); 强制所有消息中止,退出所有的窗体,但是若有托管线程(非主线程),也无法干净地退出; 3.Application.Exit 阅读全文
posted @ 2017-08-27 15:15 Dsp Tian 阅读(392) 评论(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 阅读(1092) 评论(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 阅读(825) 评论(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 阅读(1944) 评论(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 阅读(4911) 评论(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 阅读(760) 评论(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 阅读(767) 评论(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 阅读(435) 评论(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 阅读(504) 评论(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 阅读(381) 评论(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 阅读(527) 评论(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 阅读(612) 评论(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 阅读(397) 评论(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 阅读(2592) 评论(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 阅读(399) 评论(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 阅读(395) 评论(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 阅读(720) 评论(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 阅读(346) 评论(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 阅读(396) 评论(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 阅读(8358) 评论(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 阅读(1940) 评论(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 阅读(436) 评论(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 阅读(384) 评论(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 阅读(672) 评论(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 阅读(433) 评论(0) 推荐(0) 编辑
摘要:差不多有一年多没有更新这个博客了,并不是我不想更新,的确是原因比较多。 第一个原因是工作比较忙,经常性出差,从去年七月到今天差不多有250天以上的出差,并且疯狂加班,后面和大家说说出差都在做什么,绝对是件利国利民很有意义的事情。 第二个原因是生活上买房,装修,结婚占据了很大的精力,本人今年七夕领证, 阅读全文
posted @ 2017-08-18 13:20 Dsp Tian 阅读(836) 评论(3) 推荐(1) 编辑

点击右上角即可分享
微信分享提示