Hi,
What I need to do is adding some support for resources files to my
application. What I did is:
MyAppMain <- startup project
MyAppHelper <- project which has MyAppResourcesC lass (al a library project)
This class call methode :
ResourceManager MyAppResourceMa nager = new
ResourceManager ("MyAppMain.Res ources", Assembly.GetExe cutingAssembly( ));
and I obtain error which tell that there is no propertly added
MyAppMainResour ces resource file / collection to this MyAppHelper set.
What I did, is to add resources file to MyAppMain project (I thought adding
file Resources.resx to this project will be enought), but no... so I go
further to making file Resource.resour ces.dll by resgen & al utilities, then
I tray to set /embed:Resources .resources,MyAp pMain.Resources .resources, and
for embed:Resources .resources,MyAp pHelper.Resourc es.resources - for the
second setting I reedit ResourceManager ("MyAppHelper.R esources) ... and I
did a lot of these things. All with culture set to
private static CultureInfo QServiceCulture Info = new CultureInfo("") , which
should give me invariant culture or call embedded resources (?). I try to
set culture to en-GB and make files in en-GB folder (these dll's) and then
call them form the MyAppMain ("MyAppMain.Res ources) and ResourceManager
created there is working perfectly (oposite, I still cant put one
Resources.resx in project and forget about it.
So what I should do to obtain situation when I still have one resource file
embeded in my project, which should be accessable by Helper class ? How the
ResourceManager should be inicialized ?
--
best regards
stic