Solved

Update Resource Images of exe File

Posted on 2004-09-20
7
455 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

810 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