.NETGURU
most icons missing after upgrade of .res file to .resx file
Messages   Related Types
This message was discovered on microsoft.public.dotnet.languages.vb.upgrade.
Responses highlighted in red are from those people who are likely to be able to contribute good, authoratitive information to this discussion. They include Microsoft employees, MVP's and others who IMHO contribute well to these kinds of discussions.
Post a new message to this list...

ow-ouch (VIP)
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
===============

Reply to this message...
 
    
John Hart [MSFT] (VIP)
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
Click here to reveal e-mail address. 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.
--------------------
[Original message clipped]

Reply to this message...
 
    
ow-ouch (VIP)
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>

"John Hart [MSFT]" wrote:

[Original message clipped]

Reply to this message...
 
    
John Hart [MSFT] (VIP)
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.
--------------------
[Original message clipped]

Reply to this message...
 
 




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification