Trang Chủ | Diễn Đàn | Thành Viên (Đăng Ký) | Tìm Kiếm | Tutorial Room
Delphi - Lập trình với Cơ sở dữ liệu?
Hỏi đáp, trao đổi về lập trình Delphi.
Chú ý: Pascal/Delphi FAQs
First page Previous page  (Page 1 )   1     2   Next page Last page
Lập trình với Cơ sở dữ liệu?
Member
Member since
10:45 05-03-2010
Posts: 8
Fantasy Points: 34
Rank
question Posted at 10:58 05-03-2010 Move Move Topic   Pin/Unpin Pin Topic   Lock Lock Topic
Mình đang định làm một chương trình tương tự như từ điển nhưng không biết làm thế nào để kết nối và sử dụng các CSDL về từ điển có sẵn (ví dụ như của Stardict hay của Huy Biên gì đấy). Rất mong bạn nào biết thì chỉ cho mình.
Thanks.
This post has been edited 1 time(s). Last edited by vietthang911 on 10:59 05-03-2010.
Reply Reply   Quote Quote   Edit Edit   Delete Delete   Report Report
This post has been viewed 2,370 time(s). 2 direct repli(es) and 13 indirect repli(es).
Title Poster
question Lập trình với Cơ sở dữ liệu?
 
answer Re: Lập trình với Cơ sở dữ liệu?
NBThanh
answer Re: Lập trình với Cơ sở dữ liệu?
vietthang911
Re: Lập trình với Cơ sở dữ liệu?
Forum Moderator
Member since
20:03 17-08-2001
Posts: 18,047
Fantasy Points: 154,606
Rank
answer Posted at 00:22 06-03-2010
Reply to Lập trình với Cơ sở dữ liệu? (vietthang911)
vietthang911:
Mình đang định làm một chương trình tương tự như từ điển nhưng không biết làm thế nào để kết nối và sử dụng các CSDL về từ điển có sẵn (ví dụ như của Stardict hay của Huy Biên gì đấy). Rất mong bạn nào biết thì chỉ cho mình.
Thanks.

Lập trình CSDL (với Delphi) và sử dụng lại dữ liệu của các chương trình khác là 2 món hoàn toàn khác nhau à nha! Các chương trình kia có thể có cách tổ chức dữ liệu riêng, không theo "chuẩn" nào cả nên nếu bạn muốn sử dụng lại được dữ liệu của các chương trình đó thì bạn phải tìm hiểu về cấu trúc và cách các chương trình kia lưu dữ liệu rồi mới nghĩ tới cách đọc dữ liệu lên sử dụng lại.
Reply Reply   Quote Quote   Edit Edit   Delete Delete   Report Report
This post has been viewed 2,347 time(s). 1 direct repli(es) and 12 indirect repli(es).
Title Poster
answer Re: Lập trình với Cơ sở dữ liệu?
 
answer Re: Lập trình với Cơ sở dữ liệu?
vietthang911
Re: Lập trình với Cơ sở dữ liệu?
Member
Member since
10:45 05-03-2010
Posts: 8
Fantasy Points: 34
Rank
answer Posted at 08:50 06-03-2010
Reply to Re: Lập trình với Cơ sở dữ liệu? (NBThanh)
Hiện tại mình đã tìm được CSDL của Star Dict là file .dict và đã biết được cấu trúc của nó. Vấn đề phát sinh bây giờ là làm thế nào để copy một đoạn text từ một tệp văn bản khi đã biết vị trí bắt đầu và số lượng cần copy. (Tương tự như hàm Copy(S,Index,Count) nhưng là đối với tệp chứ ko phải String. Bạn nào biết giúp mình với.
Thanks.
Reply Reply   Quote Quote   Edit Edit   Delete Delete   Report Report
This post has been viewed 2,326 time(s). 2 direct repli(es) and 10 indirect repli(es).
Title Poster
answer Re: Lập trình với Cơ sở dữ liệu?
 
answer Re: Lập trình với Cơ sở dữ liệu?
bigbelly
answer Re: Lập trình với Cơ sở dữ liệu?
NBThanh
Re: Lập trình với Cơ sở dữ liệu?
Member
Member since
00:40 28-11-2009
Posts: 757
Fantasy Points: 2,649
Rank
answer Posted at 09:17 06-03-2010
Reply to Re: Lập trình với Cơ sở dữ liệu? (vietthang911)
Cứ trích tệp ra string là xong roài.
Trên đời nghìn vạn điều cay đắng
Cay đắng chi bằng học môn văn
This post has been edited 1 time(s). Last edited by bigbelly on 09:48 06-03-2010.
Reply Reply   Quote Quote   Edit Edit   Delete Delete   Report Report
This post has been viewed 2,322 time(s). 0 direct repli(es) and 0 indirect repli(es).
Re: Lập trình với Cơ sở dữ liệu?
Forum Moderator
Member since
20:03 17-08-2001
Posts: 18,047
Fantasy Points: 154,606
Rank
answer Posted at 09:17 06-03-2010
Reply to Re: Lập trình với Cơ sở dữ liệu? (vietthang911)
vietthang911:
Hiện tại mình đã tìm được CSDL của Star Dict là file .dict và đã biết được cấu trúc của nó. Vấn đề phát sinh bây giờ là làm thế nào để copy một đoạn text từ một tệp văn bản khi đã biết vị trí bắt đầu và số lượng cần copy. (Tương tự như hàm Copy(S,Index,Count) nhưng là đối với tệp chứ ko phải String. Bạn nào biết giúp mình với.
Thanks.

Bạn xem hàm này thử coi sao :-) http://www.delphibasics.co.uk/RTL.asp?Name=Seek
Reply Reply   Quote Quote   Edit Edit   Delete Delete   Report Report
This post has been viewed 2,321 time(s). 2 direct repli(es) and 8 indirect repli(es).
Title Poster
answer Re: Lập trình với Cơ sở dữ liệu?
 
answer Re: Lập trình với Cơ sở dữ liệu?
bigbelly
answer Re: Lập trình với Cơ sở dữ liệu?
vietthang911
Re: Lập trình với Cơ sở dữ liệu?
Member
Member since
00:40 28-11-2009
Posts: 757
Fantasy Points: 2,649
Rank
answer Posted at 09:49 06-03-2010
Reply to Re: Lập trình với Cơ sở dữ liệu? (NBThanh)
Điếc luôn với mấy cái record. Mod giải thích dùm đi (hồi nào có xài mấy cái này đâu, cứ trích string rùi mid left right búa xua, record khó xài thấy tổ bị err "trên giời rơi xuống" hoài)
Trên đời nghìn vạn điều cay đắng
Cay đắng chi bằng học môn văn
This post has been edited 1 time(s). Last edited by bigbelly on 09:58 06-03-2010.
Reply Reply   Quote Quote   Edit Edit   Delete Delete   Report Report
This post has been viewed 2,315 time(s). 1 direct repli(es) and 1 indirect repli(es).
Title Poster
answer Re: Lập trình với Cơ sở dữ liệu?
 
answer Re: Lập trình với Cơ sở dữ liệu?
NBThanh
Re: Lập trình với Cơ sở dữ liệu?
Forum Moderator
Member since
20:03 17-08-2001
Posts: 18,047
Fantasy Points: 154,606
Rank
answer Posted at 09:52 06-03-2010
Reply to Re: Lập trình với Cơ sở dữ liệu? (bigbelly)
bigbelly:
Link DEAD rùi, mod ơi là mod.

Bớt giỡn đi bạn! Tôi vào được rồi tôi mới post lên chứ (mà sau khi đọc bài tôi mới search Google ra cái link đó, còn vào được cách đây 15').
Reply Reply   Quote Quote   Edit Edit   Delete Delete   Report Report
This post has been viewed 2,312 time(s). 1 direct repli(es) and 0 indirect repli(es).
Title Poster
answer Re: Lập trình với Cơ sở dữ liệu?
 
answer Re: Lập trình với Cơ sở dữ liệu?
bigbelly
Re: Lập trình với Cơ sở dữ liệu?
Member
Member since
00:40 28-11-2009
Posts: 757
Fantasy Points: 2,649
Rank
answer Posted at 10:01 06-03-2010
Reply to Re: Lập trình với Cơ sở dữ liệu? (NBThanh)
Đã edit lại post.
Tại vì IE block popup nên gõ address bằng tay ai dè nó phân biệt hoa thường. Chưa kịp sửa đã bị mod quote rùi.
Trên đời nghìn vạn điều cay đắng
Cay đắng chi bằng học môn văn
Reply Reply   Quote Quote   Edit Edit   Delete Delete   Report Report
This post has been viewed 2,309 time(s). 0 direct repli(es) and 0 indirect repli(es).
First page Previous page  (Page 1 )   1     2   Next page Last page

Permissions: Create Topic: No  |  Reply Topic: No  |  Attach File: No  |  Make Poll: No

Vietnamese Keyboard: AUTO TELEX VNI VIQR VIQR* OFF

Go top || Print page ||

All logos, trademarks and graphics artwork in this site are property of their respective owners.
Opinions expressed in articles within this site are those of their owners and may not reflect the opinion of TXBB.

TXBB: Home - Disclaimer - Help - Contact
Copyright (C) 2000-2006 TXBB. All rights reserved.

TreXanh Bulletin Board v2.0 (Build: #332 Nov 21, 2006)

DEBUG INFORMATION
Execution 0.287s - SQL used 6s - Concurrent process(es) 0