Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Code Samples & Tips > Tutorials
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Tutorials Basic4ppc tutorials

Resource Hacker

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-04-2009, 03:14 PM
Basic4ppc Veteran
 
Join Date: Jan 2008
Posts: 215
Default Resource Hacker

Note: This applies to the PC

The compiled executables that B4PPC produces usually don't have the correct information within them. For example, if you place a compiled program in the apps directory for PortableAppsMenu the program icon will be listed, but not the name. This is because these programs get information from the resource area (usually in the "Version Info" section)

One way that I have found to fix this is with Resource Hacker:

Resource Hacker

Here is an example resource that I corrected for the Windiff program:
Code:
               VALUE "CompanyName""Microsoft Corporation"
VALUE 
"FileDescription""File comparison utility"
VALUE 
"FileVersion""5.2.3790.0 (srv03_rtm.030324-2048)"
VALUE 
"InternalName""WINDIFF.EXE"
VALUE 
"LegalCopyright""� Microsoft Corporation. All rights reserved."
VALUE 
"OriginalFilename""WINDIFF.EXE"
VALUE 
"ProductName""MS WinDiff"
VALUE 
"ProductVersion""5.2.3790.0"
Looking at the resource area for snip (a B4PPC utility written by tremera, used to store snips of code) shows this:

Code:
               VALUE "FileDescription"" "
VALUE 
"FileVersion""0.0.0.0"
VALUE 
"InternalName""1.exe"
VALUE 
"LegalCopyright"" "
VALUE 
"OriginalFilename""1.exe"
VALUE 
"ProductVersion""0.0.0.0"
VALUE 
"Assembly Version""0.0.0.0"
Adding a value for ProductName with Resource Hacker fixes the entry for the PortableAppsMenu.

Last edited by digitaldon37 : 01-04-2009 at 03:24 PM.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Avoid the "optional resource assembly cannot be found" Erel Code Samples & Tips 1 07-12-2007 11:24 AM


All times are GMT. The time now is 08:56 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0