Week Overview(1225)
svn co svn://10.4.1.95/sw7uml/vidinowuml f:/vidinowuml
EA installation:
1. install mysql-connector-odbc-win32.exe
2. control panel/ administrative tools/ data sources/ system dsn
add-> MySQL ODBC 3.51 driver
Login tab:
Server: 10.4.1.95
User/password: norazhuang
Database: vidinowuml
Advanced tab:
Flags1: select “don’t optimize column width”, “return matching rows”
3. EA: connect to server
Connection tab:
Use data source name: vidinowuml
Username/ password
Working copy path: F:/vidinowuml
Client exe path: C:/program files/subversion/bin/svn.exe
引用不能直接傳入常量
Bind(WORD &);
Bind(“abc”); //wrong
WORD string=”abc”;
Bind(string); //correct
常量類型可直接傳入常量
SaraSocket(const PString &);
SaraSocket(“abc”); //correct
*.inl 庫函數定義
delete指針前需要停止所有線程,否則會產生core*
增加unittest的makefile
g++ -g –o saraconfig main.o –lsaralib // l表示鏈接saralib庫
STDCCFLAGS += -DUNITTEST // STDCCFLAGS爲全局的編譯選項,D表示增加UNITTEST定義
LDLIBS+= -lcppunit -lsaralib //鏈接cppunit庫,saralib庫
saraconfig.h:
#ifndef UNITTEST
private:
#endif
t_saraconfig.h
#ifdef UNITTEST
m_pconfig->strlen();
#endif
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.