DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Tue, 14 Aug 2007 03:24:02 -0700,    posted on: microsoft.public.dotnet.framework.sdk        back       

Thread Index
  1    PeterW am
          2    (Walter Wang [MSFT])
                 3    PeterW am
                        4    (Walter Wang [MSFT])
                               5    PeterW am
                               6    (WenJun Zhang[msft])
                                      7    PeterW am


ResXResourceWriter   
I am trying to use a resx file for a bitmap for a BizTalk functoid on .NET 
1.1 with SP1.

The trouble is that the ResXResourceWriter class does not appear to be part 
of the System.Resources namespace!!!

Why is that?  

And where do I go to update this library?

At the same time a book I have also says to use the Globalization SDK.  Try 
finding that!

Comments please.

cheers
-- 
PeterW
Date:Tue, 14 Aug 2007 03:24:02 -0700   Author:  

RE: ResXResourceWriter   
Hi PeterW,

The ResXResourceWriter is indeed in namespace System.Resources but it is 
located in assembly System.Windows.Forms.dll. Yes different classes from 
different assemblies can have same namespace.

As far as I know, there's no separate Globalization SDK for .NET Framework. 
Could you please tell me about your requirement here? Thanks.


Regards,
Walter Wang (wawang@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
Date:Wed, 15 Aug 2007 06:51:58 GMT   Author:  

RE: ResXResourceWriter   
Hi Walter

Thanks for your reply.

What I have done is to write a couple of functoids for date conversion of 
values from difference countries in different formats for BizTalk Server 2004 
that allow conversion of data based on parameters for formats and CultureInfo 
to allow easier Globalization and  re-use.  The Resource Editor is not very 
good with images in VS2003.  I saw an article which suggested using 
resedit.exe but any attempts to find this were doomed as well.

The book by Scott Woodgate "BizTalk Server 2004 Unleashed" on page 119 
states quite plainly that resedit.exe is available in the Globalization SDK, 
so I went looking.  You know the outcome.

The functoids work just fine but they do not display their image.  I want to 
tidy up for those following me.

I have some code that uses the ResXResourceWriter and Image.FromFile that 
base64 encode the binary value.  I gave the Windows.Forms namespace the 
merest glance and discarded it as a notion as this issue would seem to be 
common to both Web and Windows.  Wrong huh!

If you have any better suggestions I would be pleased to hear them.

Thanks
-- 
PeterW


""Walter Wang [MSFT]"" wrote:


> Hi PeterW,
> 
> The ResXResourceWriter is indeed in namespace System.Resources but it is 
> located in assembly System.Windows.Forms.dll. Yes different classes from 
> different assemblies can have same namespace.
> 
> As far as I know, there's no separate Globalization SDK for .NET Framework. 
> Could you please tell me about your requirement here? Thanks.
> 
> 
> Regards,
> Walter Wang (wawang@online.microsoft.com, remove 'online.')
> Microsoft Online Community Support
> 
> ==================================================
> When responding to posts, please "Reply to Group" via your newsreader so
> that others may learn and benefit from your issue.
> ==================================================
> 
> This posting is provided "AS IS" with no warranties, and confers no rights. 
> 
> 
Date:Wed, 15 Aug 2007 01:08:01 -0700   Author:  

RE: ResXResourceWriter   
Hi PeterW,

Thanks for your quick reply.

Please feel free to correct me if I've misunderstood anything.

This issue is now looks like more related to BizTalk instead of Framework 
SDK. I've discussed with my colleague WenJun Zhang (who is supporting those 
BizTalk newsgroups), we're wondering if following KB might help:

#The icon and the string resources for a custom functoid are not displayed 
in BizTalk Server 2004
http://support.microsoft.com/kb/884413/


For further BizTalk related questions, I would suggest you to post in 
BizTalk related newsgroup for the benefit of community. Of course I'll be 
glad to work with you on further .NET related questions.

Regards,
Walter Wang (wawang@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
Date:Wed, 15 Aug 2007 09:06:17 GMT   Author:  

RE: ResXResourceWriter   
Walter

Again, part of the problem is based on me assuming a resource issue would be 
generic and not BizTalk specific.

And yes, you and WenJun have hit the nail on the head.

For each functoid I have a separate cs file and I had 3 separate resource 
files as you would with forms programming.  However BizTalk expects just one 
resource file for the project, and so for 3 functoids I got one with text and 
the rest with nothing.  All worked but it was difficult to distinguish 
between them.

Thanks to you and WenJun for your help.

-- 
PeterW


""Walter Wang [MSFT]"" wrote:


> Hi PeterW,
> 
> Thanks for your quick reply.
> 
> Please feel free to correct me if I've misunderstood anything.
> 
> This issue is now looks like more related to BizTalk instead of Framework 
> SDK. I've discussed with my colleague WenJun Zhang (who is supporting those 
> BizTalk newsgroups), we're wondering if following KB might help:
> 
> #The icon and the string resources for a custom functoid are not displayed 
> in BizTalk Server 2004
> http://support.microsoft.com/kb/884413/
> 
> 
> For further BizTalk related questions, I would suggest you to post in 
> BizTalk related newsgroup for the benefit of community. Of course I'll be 
> glad to work with you on further .NET related questions.
> 
> Regards,
> Walter Wang (wawang@online.microsoft.com, remove 'online.')
> Microsoft Online Community Support
> 
> ==================================================
> When responding to posts, please "Reply to Group" via your newsreader so
> that others may learn and benefit from your issue.
> ==================================================
> 
> This posting is provided "AS IS" with no warranties, and confers no rights. 
> 
> 
Date:Wed, 15 Aug 2007 02:52:01 -0700   Author:  

RE: ResXResourceWriter   
Hi Peter,

Water just pinged me to discuss your issue. So the problem is: in the 3 
versions of your functoids, only 1 of them can load the text and image from 
its own resource file successfully but others cannot. Do we misunderstand 
anything here?

Also, now explicitly calling SetupResourceAssembly with separate resource 
filename resolved the issue, right?

Please let us know if there is any problem still persists.

Have a great day!

Sincerely,

WenJun Zhang

Microsoft Online Community Support

==================================================

Get notification to my posts through email? Please refer to: 
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues 
where an initial response from the community or a Microsoft Support 
Engineer within 1 business day is acceptable. Please note that each follow 
up response may take approximately 2 business days as the support 
professional working with you may need further investigation to reach the 
most efficient resolution. The offering is not appropriate for situations 
that require urgent, real-time or phone-based interactions or complex 
project analysis and dump analysis issues. Issues of this nature are best 
handled working with a dedicated Microsoft Support Engineer by contacting 
Microsoft Customer Support Services (CSS) at:

http://msdn.microsoft.com/subscriptions/support/default.aspx.

==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
Date:Thu, 16 Aug 2007 05:44:45 GMT   Author:  

RE: ResXResourceWriter   
Hi WenJun

Using just one resource file, and after deploying to the gac, results in me 
being able to add the functoids to the IDE and see the appropriate text for 
name, description and list of parameters etc for each functoid whereas before 
when I had 3 resource files, only one appeared to be loaded with the 
appropriate text and none had images.

I tried to also get it to load the bitmap for each functoid but that is not 
working although that does not affect whether the functoids do what they are 
supposed to.  It would just be nicer if they used the proper images.

It would just be nice to get that part working as well, but the functoids 
are doing what they are supposed to in the maps, so that is by no means 
important.  I have written a little routine that allows me to create a base64 
char array based on the image binary and then pasted that data into the resx 
xml file which I thought should have done the job but not so.  I must still 
be doing something wrong.

Next time if it involves BizTalk I'll post to your newsgroups directly.

Thanks for you help.

cheers
-- 
PeterW


""WenJun Zhang[msft]"" wrote:


> Hi Peter,
> 
> Water just pinged me to discuss your issue. So the problem is: in the 3 
> versions of your functoids, only 1 of them can load the text and image from 
> its own resource file successfully but others cannot. Do we misunderstand 
> anything here?
> 
> Also, now explicitly calling SetupResourceAssembly with separate resource 
> filename resolved the issue, right?
> 
> Please let us know if there is any problem still persists.
> 
> Have a great day!
> 
> Sincerely,
> 
> WenJun Zhang
> 
> Microsoft Online Community Support
> 
> ==================================================
> 
> Get notification to my posts through email? Please refer to: 
> http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
> ications.
> 
> Note: The MSDN Managed Newsgroup support offering is for non-urgent issues 
> where an initial response from the community or a Microsoft Support 
> Engineer within 1 business day is acceptable. Please note that each follow 
> up response may take approximately 2 business days as the support 
> professional working with you may need further investigation to reach the 
> most efficient resolution. The offering is not appropriate for situations 
> that require urgent, real-time or phone-based interactions or complex 
> project analysis and dump analysis issues. Issues of this nature are best 
> handled working with a dedicated Microsoft Support Engineer by contacting 
> Microsoft Customer Support Services (CSS) at:
> 
> http://msdn.microsoft.com/subscriptions/support/default.aspx.
> 
> ==================================================
> 
> This posting is provided "AS IS" with no warranties, and confers no rights.
> 
> 
Date:Thu, 16 Aug 2007 17:47:24 -0700   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us