Solved

Update Resource Images of exe File

Posted on 2004-09-20
7
457 Views
Last Modified: 2012-08-13
Hi,
I developed an application which have resource File Storing three Images. One Bitmap And Two Icon. It Also store Some String Information. Now When My client is purchase the application i need to change the this Images and strings as per the client requirement s.
I tried with Resource Update API of kernal32.dll but i am unable to do. it.

So how can update resource of exe file ? using Visual Basic 6.0
0
Comment
Question by:sandeepaher
  • 2
7 Comments
 
LVL 10

Accepted Solution

by:
anv earned 168 total points
ID: 12110491
check the link below:

http://www.thevbzone.com/l_res.htm
0
 
LVL 32

Expert Comment

by:Erick37
ID: 12112582
One way:

1. Make a new res file named thenameofyourclient.res which contains the client specific resources.
2. Put that res file in the project, and remove the previous res file.
3. Recompile the exe
4. Have them replace the exe file in the program folder.
0
 
LVL 32

Assisted Solution

by:Erick37
Erick37 earned 166 total points
ID: 12113011
Another way:

If you have Visual Studio C++ you can edit (replace) the resources directly inside the VB executable.  Here is an article from MS which decribes the process:

How To Edit Resources in Executables with Visual C++
http://support.microsoft.com/support/kb/articles/Q139/0/30.asp
0
 
LVL 19

Assisted Solution

by:RanjeetRain
RanjeetRain earned 166 total points
ID: 12115498
One solution would be to compile your resources as a .dll. As DLLs are laoded dynamically, you can have many versions of your resource DLL file and you can distribute one that suits your client. All you have to do is, compile your DLL each time you change the resource and maintain different versions of your dll. YOur EXE wil have to comiled only once.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Excel VBA combine two working workbooks 8 62
Copy a row 12 64
How to measure sizes and angles in scanned images ? 3 77
Error with a code discussed on this page 5 34
I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question