Berikut beberapa contoh program vb6. Silahkan download satu per satu
- ADOCode.zip
- 3DText.zip
- AboutDialog.zip
- A417Source.zip
- ADOCode2.zip
- ADODC.zip
- AngkaTerbilang.zip
- ADOCodeProjectBuilder1
- ADOKontrol.zip
- AlwaysOnTop
- /APIMsgBox.zip
- API-A-M.zip
- AnotherSysTray
- AppendQuery.zip
- API-N-Z.zip
- BukuTamu.zip
- CariFile2.zip
- Association.zip
- BukuTamu2.zip
- BuatControlBaru.zip
-
-
Wednesday, December 31, 2008
Download contoh program vb6
Tuesday, November 25, 2008
ActiveX Component
Bagi beberapa penguna bahasa Visual Basic ( selanjutnya kita sebut VB ) akan terdengar canggung dengan judul di atas. Terminologi di atas merupakan “Panggilan” saja, tapi tekniknya mungkin sudah sering dipakai dalam pekerjaan sehari-hari.
Sebelum ke sana mari kita lihat dasarnya dahulu dan term yang di pakai pada artikel ini adalah term VB developer.
- ActiceX Component
- Com and ActiveX
- Component Binding
- Late Binding
- Early Binding
- Tips
- Kesimpulan
ActiveX Component
ActiveX Component sebuah standar Container Class yang dapat di gunakan oleh satu atau lebih aplikasi.
Agak membingungkan bukan, untuk lebih mudahnya seperti ini:
Anda memiliki sebuah Public Metode di dalam Class anda dan Class anda ini ada didalam sebuah Component yang memiliki standar untuk dapat berbicara secara binary dengan binary lainnya sesuai standar yang ada.
ActiveX Component biasa di sebut Server Aplikasi, karena ia meng-service aplikasi yang menggunakannya.
Sedang yang memanggil-nya di sebut Client Aplikasi. Tentu karena ia meng-consume ActiveX server tersebut.
Contohnya:
Microsoft Excel, ia merupakan software yang di buat dengan Visual C++. Dan ia membuat ActiveX atau OLE object-nya agar pengguna VB dapat meng-akses atau membuat sebuah Worksheet Excel di dalam VB aplikasi.
ActiveX Excel bisa di sebut sebagai Server aplikasi dan VB tentu Client Aplikasinya.
COM and ActiveX
Component Object Model ( selanjutnya kita sebut COM ) merupakan teknologi di belakang ActiveX ini. COM ini yang membantu kita meng-expose method dan property kita kepada object lain serta membuat kedua object itu saling ber-’bicara’.
Implement dari Interface ( baca Antar Muka ) IUnKnown yang membuat COM kita melakukan keajaibannya.
( sebetulnya ada satu lagi, mungkin di topik yang lain )
Setiap ActiveX yang kita buat, harus meng-implement IUnknown ini. Sebagai VB developer, ini sudah dilakukan secara automatis oleh IDE VB.
Sekarang kita akan melihat secara detail bagaimana ia bekerja.
1. Ketika VB aplikasi kita bekerja, maka ia akan mencari di Window Registry untuk melihat apakah ada Excel Server-nya,
2. Setelah itu Excel Server itu di invoke/bangkitkan dan load as server ( terjadi di memory ),
3. Client aplikasi ( VB kita ) akan me-request ke pada Excel server lewat interface IUnKnown,
4. Dan Excel server itu juga menjadi client dari VB aplikasi lewat interface IUnKnown.
Walau terdengar sedikit rumit, tapi itu menunjukan mereka menjadi client server bagi aplikasi. VB merupakan client bagi Excel server tapi sekaligus menjadi Server bagi client Excel aplikasi,
5. Pada saat Client VB meng-request kepada IUnKnown, ia menggunakan QueryInterface untuk meminta kepada Excel Server interface yang ia miliki ( dalam hal ini Whorksheet ),
6. Bila Excel Server response-nya maka hasil dari IUnknown yang di kirim oleh client Excel kepada VB Server akan di pergunakan oleh VB sebagai bagian dari aplikasi-nya.
Jadi setiap metode dan property yang di declare class akan memiliki interface IUnKnown, agar dapat di akses oleh penggunan interface IUnKnown lainnya.
Analoginya seperti kita meng-contact seseorang lewat telepon. kita men-dial nomor, mendapatkan respon dan merespon dengan pembicaraan. Kita menjadi Client bagi yang kita telepon dan kita menjadi Server bagi yang kita telepon.
Component Binding
Saat process kita me-request dan meng-load ActiveX Server di sebut Component Binding ( baca: Mengikat Component )
Ada 3 macam tipe binding-nya:
1. Early Binding
2. Late Binding
3. Very Early Binding ( tidak ada dalam VB )
Late Binding
Dalam VB kita tanpa perlu me-reference ke binary tertentu. Jadi VB IDE tidak menyimpan GUID dari ActiveX server.
code:
Dim oXL as Object
Set oXL = CreateObject("Excel.Application")
Karena ia tidak di reference maka ia tidak memiliki list dari interface ‘Excel.Application’.
Early Binding
Teknik binding ini yang sering kita pakai dalam VB.
Cara kerjanya agak sedikit berbeda. Early Binding mengharuskan kita menyimpan GUID dari ActiveX server itu.
Biasanya dilakukan di References Dialog pada VB IDE, dan tercatat di Project file.Jadi ketika aplikasi kita meload ActiveX server itu, kita mencari parameter di window registry sesuai dengan GUID yang ada dan mencari file Type LiBrary ( selanjutnya di sebut TLB ).
Dalam TLB ini terdapat list dari Interface yang di miliki oleh ActiveX server itu.
Maka ketika di design time IDE, kita dapat melihat Method dan Property dari ActiveX server-nya. ( maksudnya: namaobject kemudian di titik muncul dropdown dari metode dan property -nya ).
code:
Dim oXL as Excel.Application
Set oXL = new Excel.Apllication
Tips
Secara performa, Early Binding jauh lebih baik dari Late Binding. Jadi untuk VB aplikasi lebih di sarankan menggunakan Early Binding, mengingat overhead yang terjadi ketikan melakukan Late Binding.Lalu kapan kita menggunakan Late Binding? Pada saat kita akan menggunakan remote object maka kita menggunakan Late Binding, seperti pada DCOM ( Distribute Component Object Model ) yang gunakan secara standalone ataupun sebagai transport buat MTS atau COM+.
contoh:
Dim oXL as Object
Set oXL = CreateObject("Excel.Application", "NameServer")
Satu lagi ialah ketika kita menghendaki aplikasi kita me-reference ActiveX karena masalah versioning, karena setiap kita merubah interface maka siganture dari TLB akan berubah.
Untuk Active Server Pages, memang untuk menggunakan COM kita menggunakan Late Binding. Tapi tidak di anjurkan menggunakan hanya CreateObject.
contoh:
Dim oXL
Set oXL = Server.CreateObject("Excel.Application")
Secara Explicit, meng-create object di memory server.
Kesimpulan
Kita tidak membahas COM secara mendalam, topik ini hanya memperkenalkan konsep dari Component Binding dari COM teknologi.
Dari pemaparan di atas kita bisa membedakan Early dan Late Binding dalam penggunaannya di VB.
Klik disini untuk melihat sumber artikel
Thursday, November 20, 2008
Contoh program VB6 menggunakan Access
Berikut adalah contoh program visual basic 6 menggunakan database Access.
- Aplikasi Pengelolaan Hotel
- Aplikasi Angsuran_Barang
- Aplikasi Penjualan
- Aplikasi Pergudangan
- Aplikasi Service Kendaraan
Posted by
renceman
at
4:51 PM
0
comments
Link Exchange
Donation
Visitor
Online
Do you like this blog
Arsip Blog
-
▼
2009
(209)
-
▼
December
(110)
- Another World 35x100
- Another World 35x99
- Another World 35x98
- Another World 35x97
- Another World 35x96
- Another World 35x95
- Another World 35x94
- Another World 35x93
- Another World 35x92
- Another World 35x91
- Another World 35x90
- Another World 35x89
- Another World 35x88
- Another World 35x87
- Another World 35x86
- Another World 35x85
- Another World 35x84
- Another World 35x83
- Another World 35x82
- Another World 35x81
- Another World 35x80
- Another World 35x79
- Another World 35x78
- Another World 35x77
- Another World 35x76
- Another World 35x75
- Another World 35x74
- Another World 35x73
- Another World 35x72
- Another World 35x71
- Another World 35x70
- Another World 35x69
- Another World 35x68
- Another World 35x67
- Another World 35x66
- Another World 35x65
- Another World 35x52
- Another World 35x51
- Another World 35x48
- Another World 35x47
- Another World 35x46
- Another World 35x45
- Another World 35x41
- Another World 35x31
- Another World 35x30
- Another World 35x29
- Arrested Development 1x22
- Arrested Development 1x21
- Arrested Development 1x20
- Arrested Development 1x19
- Arrested Development 1x18
- Arrested Development 1x17
- Arrested Development 1x16
- Arrested Development 1x15
- Arrested Development 1x14
- Arrested Development 1x13
- Arrested Development 1x12
- Arrested Development 1x11
- Arrested Development 1x10
- Arrested Development 1x09
- Arrested Development 1x08
- Arrested Development 1x07
- Arrested Development 1x06
- Arrested Development 1x05
- Arrested Development 1x04
- Arrested Development 1x03
- Arrested Development 1x02
- Arrested Development 1x01
- All Stars 1x10
- All Stars 1x09
- All Stars 1x07
- All Stars 1x06
- All Stars 1x05
- All Stars 1x04
- All Stars 1x03
- All Stars 1x02
- All Stars 1x01
- The All-For-Nots 1x23
- The All-For-Nots 1x22
- The All-For-Nots 1x22
- The All-For-Nots 1x21
- The All-For-Nots 1x20
- The All-For-Nots 1x19
- The All-For-Nots 1x18
- The All-For-Nots 1x17
- The All-For-Nots 1x16
- The All-For-Nots 1x15
- The All-For-Nots 1x14
- The All-For-Nots 1x13
- The All-For-Nots 1x12
- The All-For-Nots 1x11
- The All-For-Nots 1x10
- The All-For-Nots 1x09
- The All-For-Nots 1x08
- The All-For-Nots 1x07
- The All-For-Nots 1x06
- The All-For-Nots 1x05
- The All-For-Nots 1x04
- The All-For-Nots 1x03
- The All-For-Nots 1x02
- The All-For-Nots 1x01
- Stargate Universe S01 E10
- Stargate Universe S01 E09
- Stargate Universe S01 E08
- Stargate Universe S01 E07
- Stargate Universe S01 E06
- Stargate Universe S01 E05
- Stargate Universe S01 E04
- Stargate Universe S01 E03
- Stargate Universe S01 E01-02
-
▼
December
(110)





