Advertisement
3_2004-2005 Miscellaneous #143422

How to embed a XP Style Manifest file into a VB Complied EXE?

This tutorial teaches how to embed a XP Style Manifest file into a VB Compiled EXE. So you don't have to give a .manifest file with your exe file after apply this... (VOTE PLEASE)

AI

AI Summary: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Source Code
original-source
<P><FONT face="Tahoma" size="2"> HOWTO: Embed a XP Style Manifest file into a VB 
				Compiled EXE<br>
				Step by step explanation;<br>
				<br>
				<STRONG>1)</STRONG> Add line below to a module in project<br>
				<FONT color="blue">Declare Sub</FONT> InitCommonControls <FONT color="blue">Lib</FONT>
				"comctl32.dll" ()<br>
				<br>
				<STRONG>2)</STRONG> Add lines below to all forms in project<br>
				<FONT color="blue">Private Sub</FONT> Form_Initialize()<br>
				<FONT color="blue">Call</FONT> InitCommonControls<br>
				<FONT color="blue">End Sub</FONT>
				<br>
				<br>
				<STRONG>3)</STRONG> Compile exe with normal way<br>
				<br>
				<STRONG>4)</STRONG> Download zip file that is given with this tutorial, and 
				unzip it<br>
				<br>
				<STRONG>5)</STRONG> Download <EM>Resource Hacker™</EM> from </FONT><A href="http://www.users.on.net/johnson/resourcehacker/">
				<FONT face="Tahoma" size="2">here</FONT></A><br>
			<br>
			<FONT face="Tahoma" size="2"><STRONG>6)</STRONG> Run program, then <EM>File>Open</EM>
				and select your compiled exe file<br>
				<br>
				<STRONG>7)</STRONG> Select <EM>Action>Add</EM> a new Resource<br>
				<br>
				<STRONG>8)</STRONG> Select <EM>'Open file with new resource'</EM> and open <EM>'GeneralManifestForVB.txt'</EM>
				file that was extract from zip file<br>
				<br>
				<STRONG>9)</STRONG> Enter info below to boxes<br>
				<EM>Resource type</EM> = 24<br>
				<EM>Resource name</EM> = 1<br>
				<EM>Resource language</EM> = 1033 (this code does not any effect on manifest)<br>
				<br>
				<STRONG>10)</STRONG> Click <EM>'Add Resource'</EM>
				<br>
				<br>
				<STRONG>11)</STRONG> Save EXE and run for testing<br>
				<br>
				<STRONG>12)</STRONG> Enjoy...<br>
				<br>
				 <br>
				<br>
				additional informations;<br>
				-> Do not compress EXE with upx,<br>
				-> Place command button into a picture box if they has ugly frames after 
				update EXE,<br>
				-> I do sorry for my bad english...<br>
			</FONT>
		</P>
Original Comments (3)
Recovered from Wayback Machine