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