Solved

Update Resource Images of exe File

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

910 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now