Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2008-06-25
6
Medium Priority
?
298 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
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 2000 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

715 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