471,337 Members | 1,207 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,337 software developers and data experts.

XP Packaging Wizard and Application Icon

Problem when using Xp Packaging Wizard and the database being able to find
the Application Icon after database is deployed.

Under Menu/Tools/Startup form I have:
Application Icon: c:\vms\handshak.ico

Unfortunately, when I use the Xp Packaging Wizard the default folder it uses
to install the database vms.mdb is c:\program files\vms. Therefore when the
database is started it can't find the handshak.ico in the directory c:\vms
because it is not there, it is in c:\program files\vms.

Of course I can put in Application Icon:
c:\program files\vms\handshak.ico and everything will work except if and
when the user decides to change the install to directory from c:\program
files\vms to something else.

Anyone have this problem - maybe found a work around?
---
This email from Barry Wright has been scanned using AVG 6.0 and is certified
Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.541 / Virus Database: 335 - Release Date: 11/14/03
Nov 12 '05 #1
1 2939
Sub cmdAddProp_Click()
Dim intX As Integer
Const DB_Text As Long = 10
intX = AddAppProperty("AppTitle", DB_Text, "My Custom Application")
intX = AddAppProperty("AppIcon", DB_Text, "C:\Windows\Cars.bmp")
Application.RefreshTitleBar
End Sub

Function AddAppProperty(strName As String, varType As Variant, varValue As
Variant) As Integer
Dim dbs As Object, prp As Variant
Const conPropNotFoundError = 3270

Set dbs = CurrentDb
On Error GoTo AddProp_Err
dbs.Properties(strName) = varValue
AddAppProperty = True

AddProp_Bye:
Exit Function

AddProp_Err:
If Err = conPropNotFoundError Then
Set prp = dbs.CreateProperty(strName, varType, varValue)
dbs.Properties.Append prp
Resume
Else
AddAppProperty = False
Resume AddProp_Bye
End If
End Function
"Barry Edmund Wright" <ba*****************@rogers.com> wrote in message
news:53*****************@news04.bloor.is.net.cable .rogers.com...
Problem when using Xp Packaging Wizard and the database being able to find
the Application Icon after database is deployed.

Under Menu/Tools/Startup form I have:
Application Icon: c:\vms\handshak.ico

Unfortunately, when I use the Xp Packaging Wizard the default folder it uses to install the database vms.mdb is c:\program files\vms. Therefore when the database is started it can't find the handshak.ico in the directory c:\vms
because it is not there, it is in c:\program files\vms.

Of course I can put in Application Icon:
c:\program files\vms\handshak.ico and everything will work except if and
when the user decides to change the install to directory from c:\program
files\vms to something else.

Anyone have this problem - maybe found a work around?
---
This email from Barry Wright has been scanned using AVG 6.0 and is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.541 / Virus Database: 335 - Release Date: 11/14/03

---
This email from Barry Wright has been scanned using AVG 6.0 and is certified
Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.541 / Virus Database: 335 - Release Date: 11/14/03
Nov 12 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by art | last post: by
1 post views Thread by Ima Lostsoul | last post: by
3 posts views Thread by VJ | last post: by
reply views Thread by Janelle.Dunlap | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.