Article View: borland.public.csharpbuilder.graphics
Article #6Re: Exception Loading A Cursor
From: Mitch
Date: Fri, 22 Sep 2006 15:56
Date: Fri, 22 Sep 2006 15:56
30 lines
2178 bytes
2178 bytes
Marc Rohloff [TeamB] wrote:
> On Thu, 21 Sep 2006 10:57:24 -0600, Mitch wrote:
>
>
>>I'm creating a DLL Assembly for ArcGIS and I'm getting an exception
>>("Value cannot be null." "Parameter name: dataStream") when creating the
>>cursor with the following line form an ArcGIS CSharp sample which has
>>the same problem.
>>
>>m_cursor = new
>>Cursor(GetType().Assembly.GetManifestResourceStream("GIS_LINK.move.cur"));
>>
>>I've also tried:
>>
>>m_cursor = new Cursor(GetType(),"move.cur") ;
>
>
>>GetType().Assembly.GetManifestResourceStream("GIS_LINK.move.cur")
>
> Is obviously returning null. I suggest that you get a copy of Lutz
> Roeder's reflector (it's free) and look at the assembly and see
> exactly what has happened to your resources.
>
I'll give it a try but I'm pretty new to .NET and not sure what I'll be
looking for. Is there a "better" (read more reliable) way to add
resources to a project? I amd some trivial changes to the project and a
bitmap resource that was being loaded in the same manner no longer
worked. I see Roeder has a resource editor as well and will look into it.
Mitch
Technical Details
Message-ID:
<45140798$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4512c472$1@newsgroups.borland.com> <1nypwatci0ai5$.dlg@dlg.marcrohloff.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 13f327,8d9ad3a164e6e333 X-Google-Attributes: gid13f327,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Fri, 22 Sep 2006 09:56:10 -0600 From: Mitch <mitch.ABB@rockware.com> User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.csharpbuilder.graphics Subject: Re: Exception Loading A Cursor References: <4512c472$1@newsgroups.borland.com> <1nypwatci0ai5$.dlg@dlg.marcrohloff.com> In-Reply-To: <1nypwatci0ai5$.dlg@dlg.marcrohloff.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 72.16.142.180 Message-ID: <45140798$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1158940568 72.16.142.180 (22 Sep 2006 08:56:08 -0700) Lines: 30 Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail