Groups | Blog | Home
all groups > vb.net upgrade > august 2004 >

vb.net upgrade : most icons missing after upgrade of .res file to .resx file


ow-ouch
8/13/2004 5:13:02 AM

Hi Everyone,

I'm upgrading a vb6 app to .net2003.
I'm using the upgrade wizard to do as much as it can, however most of my res
file has gone AWOL! :(

All bitmaps are converted, all strings are converted, however only the first
2 of the 400 odd icons make it from the .res file into the .resx file.
(when I say 'all' the res file is 9mb is size containing 1000's of strings
and 100 odd bitmaps so i've not checked every single one, but the vast
majority appear to be present...)

I've tried creating another project, just containing a single module and the
res file - same thing happens.

Does anyone have experience of anything like this ?? hints tips welcome ! -
is there a standalone app that will convert the .res file to a .resx file ??

many thanks
Ow.

===============
your forehead may well start bleeding, but you can bet the wall will still
be standing
===============
JohnHart NO[at]SPAM Online.Microsoft.com.
8/18/2004 7:21:11 PM
Hi Ow,

I'm very sorry you've run into problems converting the .res file to a resx
file. I have not heard of this problem before. Can you please tell me
which version of VB you're using? There is a command line tool called
ResToResx.exe that is in your VBUpgrade directory but I expect you'll get
the same results since this is the same tool the Upgrade Wizard uses. I'd
really like to get a repro of this problem. Any chance you can send the
res file or one that repros the problem to me? You can send it to
JohnHart@microsoft.com. I'd be glad to look into this problem further for
you.

--
John Hart, Microsoft VB Team
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
[quoted text, click to view]
ow-ouch
8/20/2004 3:41:02 AM
Hi John,
Fantastic - I'll drop you a mail with the details.
As you expected using the exe I get the same result - but more error info....

C:\VBUpgrade>restoresx Prot.RES prot.resX /CreateLog

An error occured while converting:
Value cannot be null.
Parameter name: source

C:\VBUpgrade>



[quoted text, click to view]
JohnHart NO[at]SPAM Online.Microsoft.com.
8/25/2004 7:26:53 PM
I just wanted to let others that read this post know that the problem
turned out to be a corupt resource file. For some reason it had Icons in
an Icon Group that had invalid IDs so when the ResToResx utility tried to
extract the resources it failed.

I was able to identify these icons so Owen could rebuild the resource file.

--
John Hart, Microsoft VB Team
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
[quoted text, click to view]
AddThis Social Bookmark Button