Title is No Title

not very good here!

导航

2004年3月21日 #

use MyButton is simple,only add two file and then add some code just bellow in any dlg src declear the button control and will ok!

摘要: only two places.//1:public: //DWORD WINAPI threadProc(); //long __stdcall threadProc(); CAboutDlg(); // Dialog Data //{{AFX_DATA(CAboutDlg) enum { IDD = IDD_ABOUTBOX }; MyButton m_print; MyButton ... 阅读全文

posted @ 2004-03-21 21:50 abraham 阅读(664) 评论(0) 推荐(0) 编辑

create dll and use it,only use very little thing!

摘要: !!!!!!!1:use://func code.void CAboutDlg::OnTestUseDll() { typedef void (WINAPI * func)(); HINSTANCE hmod; hmod = ::LoadLibrary ("firstDLL.dll"); if(hmod==NULL) { AfxMessageBox("Fail"); } func lpproc;... 阅读全文

posted @ 2004-03-21 21:00 abraham 阅读(451) 评论(0) 推荐(0) 编辑

when create a new thread ,always have problem at that:can not turn "" to type long _..."that 's because should put the threadproc in global app.

摘要: #include "MainFrm.h"#include "testPint2Doc.h"#include "testPint2View.h" #ifdef _DEBUG#define new DEBUG_NEW#undef THIS_FILEstatic char THIS_FILE[] = __FILE__;#endif DWORD WINAPI threadProc()//long __st... 阅读全文

posted @ 2004-03-21 20:11 abraham 阅读(386) 评论(0) 推荐(0) 编辑

VC cl to create asm file at the same time's EXample.

摘要: //#include "windows.h"#include "stdlib.h"#include "stdio.h"// use to olny show ASM:cl /FA test.cppmain(){printf("hello first by vc.");return 0;}===========cl /AF first.cpp;and will get:first.asm file:... 阅读全文

posted @ 2004-03-21 18:59 abraham 阅读(529) 评论(0) 推荐(0) 编辑

Test Use CListControl and Events and colordlg,and odbc.

摘要: // TestItemListDlg.cpp : implementation file// #include "stdafx.h"#include "testPint2.h"#include "TestItemListDlg.h"#include #include #ifdef _DEBUG#define new DEBUG_NEW#undef THIS_FILEstatic char THIS... 阅读全文

posted @ 2004-03-21 18:42 abraham 阅读(1077) 评论(0) 推荐(0) 编辑

Use ODBC directy to get ID and give bigger.

摘要: CString Common::getObjId(CString table,CString field){ CString ret; CString tableN=table;//"test"; tableN+=";"; unsigned char sql[100]; char sqlH[100]="select ID from "; char *tableNC=tableN.G... 阅读全文

posted @ 2004-03-21 18:39 abraham 阅读(713) 评论(0) 推荐(0) 编辑