Command line compilation issue

D

Dragon

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
 
J

jg

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?
 
D

Dragon

jg said:
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?
 
D

Dragon

Found out!

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

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

instead of

/resource:frmAbout.resources

..
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top