HighTechTalks DotNet Forums  

Problem with resource files - J++ to J# conversion

Dotnet VJSharp microsoft.public.dotnet.vjsharp


Discuss Problem with resource files - J++ to J# conversion in the Dotnet VJSharp forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Michael Sven
 
Posts: n/a

Default Problem with resource files - J++ to J# conversion - 10-20-2004 , 09:27 AM






Hi

I have convereted a reasonalby large project from J++ to J#. Overall, teh
conversion seems successful, but I have a problem with forms that are
loading objects (icons, COM component states) from resource files. Every
time any resource file is called, it generates the following error:

java.lang.IllegalArgumentException: Length cannot be less than zero.
Parameter name: length
at System.String.Substring(Int32 startIndex, Int32 length)
at com.ms.vjsharp.lang.VJSClassLoader.__findResource( Assembly
currentAssembly, String resName)
at com.ms.vjsharp.lang.VJSClassLoader.__getResourcefr omAssembly(Assembly
callingAssembly, String resName)
at com.ms.vjsharp.lang.VJSClassLoader.getResourceAsSt ream(String resName)
at java.lang.Class.getResourceAsStream(String resourceName)
at com.ms.wfc.core.Component.getResource(String name)
at com.ms.wfc.core.ResourceManager.getLocaleSet(Local e locale, Boolean
tryParents, Boolean createIfNotPresent)
at com.ms.wfc.core.ResourceManager.getObject(Locale locale, String name)
at com.ms.wfc.core.ResourceManager.getObject(String name)
at com.simplex.inaport.ui.ImportWiz.initForm() in MyForm.java:line 4324

The source line that caused the error is:
flxGrid_old.setOcxState((AxHost.State)resources.ge tObject("flxGrid_old_ocxSt
ate"));

Any suggestions gratefully received.

Regards

Mike



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.