Happy New Year to the exiv2 enthusiasts (and unhappy Windows form users)
I've never used Windows forms. The MSVC environment builds native exiv2
libraries (both
static and dynamic). I'm wondering if we need to build a managed code version
to link
with Windows Forms. Some time ago, Andreas Grimme (not Andreas Huggel) posted a
.Net wrapper for exiv2 written in C#. I have successfully built that and
perhaps that's
what's needed here.
Anyway, several suggestions:
1) Maybe somebody can comment on linking native code with Windows forms.
2) Does the C# wrapper help?
3) Send me your windows form code (and build environment) and I'll investigate.
Robin
--- In exiv2@..., "Etienne D. Falcon" <etiennefalcon@...> wrote:
>
>
> Hello everyone,
>
> I'm trying to add GPS informations in jpeg files.
> I simply can't seem to link EXIV2 proprely. I'm pretty new to MSVC,
> and yes I know portable code is better and all, but my boss doesn't
> really care. Since he's the one with the paychecks, I do what he ask.
>
> First of all is it possible to get EXIV2 working with Windows Forms
> Application? (CLR)
> Then what's the easiest way? including wich library? is it easier
> using exivsimple?
>
> right now what I'm getting about 55 error like this one:
> error LNK2028: unresolved token (0A00000E) "public: virtual void
> __clrcall Exiv2::Image::clearMetadata(void)"
> (?clearMetadata@Image@Exiv2@@$$FUAMXXZ) referenced in function "void
> __clrcall `dynamic initializer for 'const
> Exiv2::Image::`vftable'''(void)"
> (???__E??_7Image@Exiv2@@6B@@@YMXXZ@?A0x5fd43514@@$$FYMXXZ)
>
> then about 55 more of that kind:
> error LNK2019: unresolved external symbol "public: struct
> std::pair<unsigned char *,long> __clrcall
> Exiv2::DataBuf::release(void)"
> (?release@DataBuf@Exiv2@@$$FQAM?AU?$pair@PAEJ@std@@XZ) referenced in
> function "public: __clrcall Exiv2::DataBuf::operator struct
> Exiv2::DataBufRef(void)" (??BDataBuf@Exiv2@@$$FQAM?AUDataBufRef@1@XZ)
>
> Is there an easy fix?
>
>
> thanx for your help
>
> Falcon
>