Solved

Update Resource Images of exe File

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
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…
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 utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

708 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

16 Experts available now in Live!

Get 1:1 Help Now