摘要:
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
阅读(3728)
评论(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
阅读(1624)
评论(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
阅读(3799)
评论(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
阅读(1708)
评论(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
阅读(705)
评论(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
阅读(368)
评论(0)
推荐(0)
摘要:
http://docs.wxwidgets.org/trunk/classwx_u_i_action_simulator.html 阅读全文
posted @ 2017-08-27 17:00
Dsp Tian
阅读(394)
评论(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
阅读(1861)
评论(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
阅读(382)
评论(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
阅读(973)
评论(0)
推荐(0)

浙公网安备 33010602011771号