In this article I do not discuss again what is manifest file functions because of my previous article already exists precisely here, so now the discussion is how to incorporate into a Visual Basic project, so the Manifest file is created automatically if removed.
for those of you who are interested in this tip, please follow the way of making the code below
Step 1
- create a new standard exe project
- add module
Place the following code in the module project
Private Declare Function InitCommonControls Lib "Comctl32.dll" () As Long
Sub InitialiseXPControls()
Dim intFreeFile As Integer
Dim lngReturn As Long
Dim strEXEFile As String
Dim strManifestFile As String
strEXEFile = App.Path & "\" & App.EXEName & ".exe"
strManifestFile = strEXEFile & ".manifest"
If Dir(strEXEFile) <> "" And Dir(strManifestFile) = "" Then
intFreeFile = FreeFile()
Open strManifestFile For Output As #intFreeFile
Print #intFreeFile, "<?xml version=""1.0"" encoding=""UTF-8"" standalone=""yes""?>"
Print #intFreeFile, "<assembly xmlns=""urn:schemas-microsoft-com:asm.v1"" manifestVersion=""1.0"">"
Print #intFreeFile, "<assemblyIdentity"
Print #intFreeFile, " version = ""1.0.0.0"""
Print #intFreeFile, " processorArchitecture = ""X86"""
Print #intFreeFile, " name = ""Microsoft.Winweb.VB_Application"""
Print #intFreeFile, " type=""win32"""
Print #intFreeFile, "/>"
Print #intFreeFile, "<description>GSoftware</description>"
Print #intFreeFile, "<dependency>"
Print #intFreeFile, " <dependentAssembly>"
Print #intFreeFile, " <assemblyIdentity"
Print #intFreeFile, " type=""win32"""
Print #intFreeFile, " name = ""Microsoft.Windows.Common-Controls"""
Print #intFreeFile, " version = ""6.0.0.0"""
Print #intFreeFile, " processorArchitecture = ""X86"""
Print #intFreeFile, " publicKeyToken = ""6595b64144ccf1df"""
Print #intFreeFile, " language = ""*"""
Print #intFreeFile, " />"
Print #intFreeFile, " </dependentAssembly>"
Print #intFreeFile, "</dependency>"
Print #intFreeFile, "</assembly>"
Close #intFreeFile
Shell strEXEFile, vbNormalFocus
End
End If
lngReturn = InitCommonControls()
End Sub
Step 3
Please call InitialiseXPControls in sub main or startup form your project
Now your application will follow the theme of your windows that apply, good luck. If you have any problems please contact me or can you confirm by email, may be useful for you.
nice post brother
wah mantab sob infonya...., thx's y
ok bos infonya, susah cari yang seperti ini
tambah lagi sob infonya
sip deh ilmunya
wah pasti ini jago komputer ya, dan jago bahasa inggris juga ya...
wah apa ni..bahasa londo lagi..g paham...wakakakak...
apa ini gan???
kagak ngarti ,wakakak
thanks Erge mantapp banget nich tutor...
ane tunggu2 nich
hehehhhee
Wah keren dah triknya
Saya belajar komputer baru kemarin2 aja Kang, eehhh... kok ternyata NANG KENE ono Tutorial'e yak, mantraapp Kang. mbo yo sekali-kali pakai bahasa tegalan napa Kang ? jangan pakai boso India mulu, pusing kie kepala.
Okelah kalo bebegitu Kang, Sukses selalu meyertai Sampean Kang. Matur Sembah Nuwun.
@Galeri .. Wekekekeke
oke lah kalau begitu ... hehehehehe
makasih mas iyang
wkwkw...Nice info brow
VB project with english based. steady!!
manifest file maksudnya apa ya? hehe
lu kan makan tidur diatas VB hahaha
piss
mantap.....
Ma quande lingues coalesce, li grammatica del resultant lingue...(aku tidak paham)
berkunjung...
mampir,gann...
good share friend, thanks
wah nice bang erge ...
visit blog ku ya
http://mydisha.blogspot.com
Maaf Gan,tutorial ini belum berjalan dengan baik,aQ pake metode Co-Pas sich..udah aQ buat module n aQ Co-Pas nich sourcecode,tapi gak membuahkan hasil,ada syarat apa lagi selain 2 hal diatas? (standart project dan module)
aQ pake VB 6 SP 6 gan..
nice info n moga sukses selalu,thanks ya..
Tanggapan Sobat
Zona Bebas Komentar tapi jangan nyepam.
Kalo nyepam minta maaf nih, dengan terpaksa
dilaporkan pada kantor polisi terdekatdihapus, monggo sobat silakan komentar jangan malu-malu.