🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.csharpbuilder.graphics
Article #11

Re: Exception Loading A Cursor

#11
From: Claude Daneluzzo
Date: Mon, 16 Oct 2006 13:27
24 lines
2094 bytes
Mitch <mitch.ABB@rockware.com> wrote:
>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

Same problem for me to embed easily image resources in the Principal Assembly with BDS C#.
VS is much better since when you add an image resource you can declare it 'as resource' and it is automatically embedded. Then you load it with GetManifestResourceStream and that's done.
Technical Details
Message-ID: <453388dc$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wn12feed!worldnet.att.net!208.48.142.85!newsfeed.news2me.com!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
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> <45143ee9$1@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
From: "Claude Daneluzzo" <mudemtech@wanadoo.fr>
Sender: "Claude Daneluzzo" <mudemtech@wanadoo.fr>
Reply-To: "Claude Daneluzzo" <mudemtech@wanadoo.fr>
Subject: Re: Exception Loading A Cursor
Newsgroups: borland.public.csharpbuilder.graphics
X-User-Info: 81.51.200.244     
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> <45143ee9$1@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <453388dc$1@newsgroups.borland.com>
Date: 16 Oct 2006 06:27:56 -0700
X-Trace: newsgroups.borland.com 1161005276 207.105.83.66 (16 Oct 2006 06:27:56 -0700)
Lines: 24
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wn12feed!worldnet.att.net!208.48.142.85!newsfeed.news2me.com!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail