Ada 程式設計/庫/資料庫/GWindows
外觀
David Botton 建立了 GNATCOM 專案來幫助 Ada 與 Windows COM 物件進行互操作。GWindows 專案基於 GNATCOM。它用於建立 Windows 圖形使用者介面。
資料庫包是 GWindows 專案的子集。它非常簡單易用。
- 作者
- David Botton
- 主頁
- http://www.gnavi.org/index.php?Command=Class&ClassID=GWindowsWin32&Title=GWindows
- 專案資訊
- GWindows
- 庫文件
- http://www.gnavi.org/gwindows/ref/gwindows-databases.html
- CVS 檔案
- - 缺失 -
- 下載
- http://www.gnavi.org
withGnatcom.Initialize;withGnatcom.Types;withGnatcom.Variant;withGwindows.Databases;useGwindows.Databases;withAda.Text_IO;useAda.Text_IO;withAda.Strings;withAda.Strings.Fixed;withAda.Exceptions;withSystem;procedureTestisConnection : Database_Type; Recordset : Recordset_Type; customer : Gnatcom.Types.Variant;beginGnatcom.Initialize.Initialize_Com; -- make connection Open (Connection, "DSN=Northwind","your ID","your password"); -- make Recordset(ResultSet) Open (Recordset, Connection, "SELECT * from Orders", Dynamic, Optimistic); -- start to process your business solutionwhilenotEof (Recordset)loopcustomer := Field_Value(Recordset,"customerId"); Process (customer); -- your customer procedure Move_Next (Recordset);endloop; -- release database resource Gwindows.Databases.Close(Recordset);endTest;
—不適用—
