Groups | Blog | Home
all groups > dotnet sdk > august 2007 >

dotnet sdk : ResXResourceWriter


PeterW
8/14/2007 3:24:02 AM
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
--
wawang NO[at]SPAM online.microsoft.com (
8/15/2007 12:00:00 AM
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.
wawang NO[at]SPAM online.microsoft.com (
8/15/2007 12:00:00 AM
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.
PeterW
8/15/2007 1:08:01 AM
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


[quoted text, click to view]
PeterW
8/15/2007 2:52:01 AM
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


[quoted text, click to view]
wjzhang NO[at]SPAM online.microsoft.com (
8/16/2007 12:00:00 AM
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.
PeterW
8/16/2007 5:47:24 PM
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


[quoted text, click to view]
AddThis Social Bookmark Button