PC Review


Reply
Thread Tools Rate Thread

Command line compilation issue

 
 
Dragon
Guest
Posts: n/a
 
      18th Aug 2005
Hello,

I developed an app which works fine in WinXP, but gives exceptions in
WinME. In order to debug it, I tried to build a "makefile" to use with
"vbc @file". So far I've ended up with:

/out:H:\PlaySmth.exe
/target:winexe
/reference:System.dll
/reference:System.Drawing.dll
/reference:System.Windows.Forms.dll
/reference:Microsoft.VisualBasic.dll
/resource:frmAbout.resources
/resource:PlayingSlideBar.resources
/resource:frmMain.resources
/win32icon:PlaySmth.ico
/debug+
/debug:full
/imports:System
/imports:System.Diagnostics
/imports:System.Collections
/imports:System.Windows.Forms
/imports:System.Runtime.InteropServices
/imports:Microsoft.VisualBasic
/optionexplicit+
/optionstrict+
/rootnamespace:PlaySmth
/verbose
frmMain.vb
PlayingSlideBar.vb
frmAbout.vb
APIs.vb
AssemblyInfo.vb

It compiled fine, but when I ran created assembly, error box was shown
about an exception that "couldn't be handled".

MessageBox'ing, I found out that exception was thrown by this line:

~
Me.ilfortvSongs.ImageStream =
CType(resources.GetObject("ilfortvSongs.ImageStream"),
System.Windows.Forms.ImageListStreamer)
~

in InitializeComponent(). The exception is:
System.Resources.MissingManifestResourceException
В данной сборке не удалось найти ресурсы, соответствующие указанной
культуре (или нейтральной культуре). Проверьте правильность внедрения
или связывания "frmMain.resources" со сборкой "PlaySmth".
baseName: frmMain locationInfo: PlaySmth.frmMain resource file name:
frmMain.resources assembly: PlaySmth, Version=1.0.2056.36799,
Culture=neutral, PublicKeyToken=null

(Translation: Can't find resources, corresponding the specified culture
(or neutral culture) in this assembly. Verify correctness of embedding
or linking "frmMain.resources" with assembly "PlaySmth".

What do I have to change in "makefile", so it will compile correctly?

Thanks in advance,

Roman


 
Reply With Quote
 
 
 
 
jg
Guest
Posts: n/a
 
      19th Aug 2005
just in case, have you installed the dotnet framework/run time in the win
me?
Or are using only MFC classes and nothing of dotnet?

"Dragon" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello,
>
> I developed an app which works fine in WinXP, but gives exceptions in
> WinME. In order to debug it, I tried to build a "makefile" to use with
> "vbc @file". So far I've ended up with:
>
> /out:H:\PlaySmth.exe
> /target:winexe
> /reference:System.dll
> /reference:System.Drawing.dll
> /reference:System.Windows.Forms.dll
> /reference:Microsoft.VisualBasic.dll
> /resource:frmAbout.resources
> /resource:PlayingSlideBar.resources
> /resource:frmMain.resources
> /win32icon:PlaySmth.ico
> /debug+
> /debug:full
> /imports:System
> /imports:System.Diagnostics
> /imports:System.Collections
> /imports:System.Windows.Forms
> /imports:System.Runtime.InteropServices
> /imports:Microsoft.VisualBasic
> /optionexplicit+
> /optionstrict+
> /rootnamespace:PlaySmth
> /verbose
> frmMain.vb
> PlayingSlideBar.vb
> frmAbout.vb
> APIs.vb
> AssemblyInfo.vb
>
> It compiled fine, but when I ran created assembly, error box was shown
> about an exception that "couldn't be handled".
>
> MessageBox'ing, I found out that exception was thrown by this line:
>
> ~
> Me.ilfortvSongs.ImageStream =
> CType(resources.GetObject("ilfortvSongs.ImageStream"),
> System.Windows.Forms.ImageListStreamer)
> ~
>
> in InitializeComponent(). The exception is:
> System.Resources.MissingManifestResourceException
> В данной сборке не удалось найти ресурсы, соответствующие указанной
> культуре (или нейтральной культуре). Проверьте правильность внедрения
> или связывания "frmMain.resources" со сборкой "PlaySmth".
> baseName: frmMain locationInfo: PlaySmth.frmMain resource file name:
> frmMain.resources assembly: PlaySmth, Version=1.0.2056.36799,
> Culture=neutral, PublicKeyToken=null
>
> (Translation: Can't find resources, corresponding the specified culture
> (or neutral culture) in this assembly. Verify correctness of embedding
> or linking "frmMain.resources" with assembly "PlaySmth".
>
> What do I have to change in "makefile", so it will compile correctly?
>
> Thanks in advance,
>
> Roman
>
>



 
Reply With Quote
 
Dragon
Guest
Posts: n/a
 
      19th Aug 2005
"jg" <(E-Mail Removed)> сообщил/сообщила в новостях следующее:
news:#(E-Mail Removed)...
> just in case, have you installed the dotnet framework/run time in the

win
> me?
> Or are using only MFC classes and nothing of dotnet?


Eh? Didn't know that there is MFC for VB .NET! 8=]
Of course, I have installed dotNetFx on WinME, otherwise, how could I
use vbc?


 
Reply With Quote
 
Dragon
Guest
Posts: n/a
 
      20th Aug 2005
Found out!

I had to add root namespace in /resource option, such as

/resource:frmAbout.resources,PlaySmth.frmAbout.resources

instead of

/resource:frmAbout.resources

..


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
VS2005 Command line compilation errors wxforecaster Microsoft VC .NET 4 15th Dec 2006 10:33 PM
C# command line compilation =?Utf-8?B?YWxhZGRpbg==?= Microsoft Dot NET 4 17th Dec 2004 06:37 AM
Command Line Compilation - Inherits Todd A Microsoft ASP .NET 6 3rd Mar 2004 04:48 PM
command line compilation kendf Microsoft C# .NET 4 23rd Jan 2004 03:36 PM
RESX Files and command line compilation Todd Acheson Microsoft ASP .NET 4 24th Nov 2003 04:46 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:53 PM.