Article View: borland.public.csharpbuilder.graphics
Article #9Re: Exception Loading A Cursor
From: Mitch
Date: Fri, 22 Sep 2006 19:52
Date: Fri, 22 Sep 2006 19:52
19 lines
1708 bytes
1708 bytes
Semi-solved. I created an rsp file and then added the cursor as:
/res:"C:\ArcGIS Samples\My GIS Link\move.cur",MY_GIS_LINK.move.cur
and then did a command line compile:
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\csc.exe /noconfig
@"C:\ArcGIS Samples\My GIS Link\cmdMY_GIS_LINK.rsp"
For some reason the cursor wasn't added unless it proceeded a bitmap
resource that I'm also using. And the actual loading code:
m_cursor = new
Cursor(GetType().Assembly.GetManifestResourceStream("MY_GIS_LINK.move.cur"));
There's got to be an easier way. Maybe I need to buy a copy of VS if I'm
going to continue doing C# programming.
Mitch
Technical Details
Message-ID:
<45143ee9$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4512c472$1@newsgroups.borland.com> <1nypwatci0ai5$.dlg@dlg.marcrohloff.com> <45140798$1@newsgroups.borland.com> <45141e7f$1@newsgroups.borland.com> <45143692@newsgroups.borland.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 13:52:12 -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> <45140798$1@newsgroups.borland.com> <45141e7f$1@newsgroups.borland.com> <45143692@newsgroups.borland.com> In-Reply-To: <45143692@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 72.16.142.180 Message-ID: <45143ee9$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1158954729 72.16.142.180 (22 Sep 2006 12:52:09 -0700) Lines: 19 Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail