Re: [Gdcm2] advice on programming a wrapper for gdcm in C#
Cross-platform DICOM implementation
Brought to you by:
malat
From: Pareto, C. <Cha...@va...> - 2010-09-09 17:52:59
|
Hi, The error message says 'unable to cast object of type 'gdcm.reader' to type 'gdcm.Pixmapreader' PixmapReader pixReader = new PixmapReader(); pixReader = (PixmapReader) reader; and if I try using the 'as' keyword it just sets the pixReader object to null PixmapReader pixReader = new PixmapReader(); pixReader = reader as PixmapReader; -----Original Message----- From: Mathieu Malaterre [mailto:mat...@gm...] Sent: Thursday, September 09, 2010 5:50 AM To: Pareto, Charles Cc: gdc...@li... Subject: Re: [Gdcm2] advice on programming a wrapper for gdcm in C# On Thu, Sep 9, 2010 at 2:14 AM, Pareto, Charles <Cha...@va...> wrote: > I can't downcast to a 'imagereader' object from a 'reader' object so I know > I can't do that, can anyone suggest another option? what is the actual error message ? in c++ this works, and I thought swig would preserve the hierarchy. thx -- Mathieu |