Results 1 to 5 of 5

Thread: Using _ISource30.dll from C#.NET

  1. #1
    guest Guest

    Default Using _ISource30.dll from C#.NET

    I am trying to use _ISource30 DLL from C#.NET. If I am not mistaken the .H files would need to be converted to DLLImports in order to call into the DLL.

    Is there anyone out there that has attempted this and if so could you supply some samples on the conversion.

  2. #2
    Join Date
    Mar 2006
    Location
    Raleigh, NC
    Posts
    1,356

    Default RE: Using _ISource30.dll from C#.NET

    here is something one user sent us. because we didn't write it, we won't be able to provide any support for it. it's old, so many newer functions won't be declared. but you should be able to figure out how to do handle anything that's missing by looking at what he's done. again, we can't provide any support for this, but thought we'd just share it .

    here's what he told us about it:

    [ul]The .NET solution is zipped up and attached. It includes two projects compiled against v1.1 of the framework: "IS3" (the ImgSource wrappers) and "Tester" (the testing application). The IS3 project compiles as a class library (public externs for each ImgSource function), which is referenced by the "Tester " application. I've only tested maybe 30-40% of the wrapper functions, so there's bound to be errors, memory leaks, etc. I also have some concerns about marshaling BITMAPINFOHEADERs with DIBs in managed code, and the tiff tag methods are a little shaky.

    Otherwise, everything seems to work as expected.

    Take a look at the XML comments from the IS3 methods. I've reproduced most of your header comments to make intellisense coding easy as well as to keep all of the .NET-specific comments in one place. If you don't like the comments or anything else included here, feel free to scrap it or modify it any way you like.

    I've also included a little readme file that explains some of the required .NET marshaling techniques (and to explain that people can't just distribute the IS3 dll as a stand alone). Neither project includes my reg. code.
    Thanks for all your good work and let me know if you have any trouble.
    [/ul]

    http://www.smalleranimals.com/zips/is3_csharp.zip

    -c

    --
    chris losinger
    smallest@smalleranimals.com
    Chris Losinger
    Smaller Animals Software, Inc

  3. #3
    guest Guest

    Default RE: Using _ISource30.dll from C#.NET

    Thanks for the link.
    Victor

  4. #4
    Join Date
    Dec 1969
    Location
    .
    Posts
    33

    Default RE: Using _ISource30.dll from C#.NET

    I am using portions of the above code to extract Exif information. It works great!

    - Cisco

  5. #5
    guest Guest

    Default RE: Using _ISource30.dll from C#.NET

    The C# dll works great in most cases.

    When opening a file, if there is an error, and in one or two more cases, the function OpenImage returns without Closing the file and freeing some resources.
    This causes among other things that the file cannot be used by any other application (share violation)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •