Solved

How to create DLL with Localized Strings and IDs for use with RegLoadMUIString

Posted on 2008-06-25
6
287 Views
Last Modified: 2010-04-21
Please refer to the following MSDN articles:
http://msdn.microsoft.com/en-us/library/ms685156(VS.85).aspx
http://msdn.microsoft.com/en-us/library/ms724890(VS.85).aspx

My question is, how do I create a DLL that can be used to hold Localized String with ID references that I can plug into a service description? I can set the service description using the ChangeServiceConfig2 function but I'd like to use the form: @[path\]dllname,-strID on W2K8 and Vista.
I just need to see and example of the DLL source code that would make this work.
Thanks
0
Comment
Question by:softbreeze
  • 3
  • 3
6 Comments
 
LVL 21

Expert Comment

by:ziolko
ID: 21872452
are you trying to make event source DLL for service application to get rid of those comments in NT Log about not being able to find event description?

ziolko.
0
 
LVL 1

Author Comment

by:softbreeze
ID: 21873067
No. I've figured that one out by creating a resource DLL. I have a 'Service Manager Application' that worked great until Vista and W2K8 came out. I now have to use the RegLoadMUIString to get the service description for those two versions. My program also allows you to install services so I'd like to be able to install the reference to the DLL for Vista and W2K8. Do you think the DLL would be build that same way as the resource DLL for event messages?
0
 
LVL 21

Expert Comment

by:ziolko
ID: 21873241
>> Do you think the DLL would be build that same way as the resource DLL for event messages?
that would be logical, but you have to test it yourself:)

>>My program also allows you to install services so I'd like to be able to install the reference to the DLL for Vista and W2K8.
you can use onbeforeinstall/onafetrinstall event handlers to make registry changes and/or RegLoadMUIString call

ziolko.
0
ScreenConnect 6.0 Free Trial

Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

 
LVL 1

Author Comment

by:softbreeze
ID: 21873365
Thanks I will do the testing. Currently when I install a service with my app I use the CreateService function followed by the ChangeServiceConfig2 function to add the description. I suppose that if the description is contained in a resource DLL then I could use the ChangeServiceConfig2 function to install a description that looks like:

@%SystemRoot%\System32\MyAppRes.dll,-101

where 101 is the ID of the description string.  
0
 
LVL 21

Accepted Solution

by:
ziolko earned 500 total points
ID: 21874306
yup, one thing about string ID test if it needs to be decimal or hexadecimal number, but I guess it would be decimal

ziolko.
0
 
LVL 1

Author Closing Comment

by:softbreeze
ID: 31470844
Thanks
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Mydac connection data base issue 3 158
Delphi 2 60
Convert MS Word document to a PDF file 9 82
How to make Sign in, using Clientdataset? 1 19
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

803 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