IBPP鏈結FireBird資料庫相關,總結

2021-07-05 23:24:53 字數 1350 閱讀 1586

1、firebird埠號是3050,必須安裝資料庫軟體,flamerobin和firebird,才能開啟3050埠,才能被遠端訪問。

2、參考 與資料庫建立連線。

bool deleterightspace(char * t,int length)

return true;

}int getbufferlength(char *t)

return i;

}bool cdevread_firebird::readfirebird(int naddress)

else

deleterightspace(item_user,getbufferlength(item_user));

deleterightspace(item_part_no,getbufferlength(item_part_no));

int dd = 0 , mm = 0 , yyyy = 0 , hh = 0 , mn = 0, ss = 0 ;

item_date_time_temp.getdate( yyyy, mm, dd);

item_date_time_temp.gettime( hh, mn, ss);

sprintf_s(item_date_time,"%d/%d/%d %d:%d:%d",yyyy,mm,dd,hh,mn,ss);

///load decodemsg.dll/

hinstance hdecode= loadlibrary( "decodemsg");

fdecodemsg decodemsg=( fdecodemsg)getprocaddress( hdecode, "decodemsg");

//tchar smsg[200];

memset(item_context,0,200);

decodemsg( item_context, item_type_temp, item_code_temp, temp);

freelibrary( hdecode);

///end decodemsg.dll/

} // tr->commitretain();

} catch(ibpp::sqlexception &e)

db->disconnect();

return true;

}

函式readfirebird是讀取資料庫檔案的函式。

讀取的ini問價內容是:

[資料庫路徑1]

m=192.168.1.100@e:\temp_20151014\event.fdb

deleterightspace
函式是刪除字串後面的空格。

用Marathon管理Firebird資料庫 1

首先,我們用marathon來建立乙個firebird資料庫。有兩種途徑,一是直接點選browse窗體上的create a database browse窗體預設是程式開啟時顯示的,若沒有顯示可以通過view view browse開啟 一是通過點選file create a database,開啟...

鏈結取數 條件存數

原子交換原語 將暫存器中的乙個值和儲存器中的乙個值相互交換。採用指令對的方法實現單個的原子儲存器操作。這一指令對包括鏈結取數指令和條件存數指令。示例 ll s1,20 s2 含義 s1 memory s2 20 條件存數指令 儲存暫存器的值,如果執行成功將暫存器的值修改為1,否則修改為0。示例 sc...

mysql檢視鏈結數

進入mysql或phpadmin,用命令 show status 檢視當前活動的連線線程變數值 threads connected 定義和用法 mysql pconnect 函式開啟乙個到 mysql 伺服器的持久連線。mysql pconnect 和 mysql connect 非常相似,但有兩個...