Re: VC8 GDI+ dll in VC6

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Asfar wrote:
Hi,

Can I write a VC8 dll which used GDI+ and then use this dll in VC6.
I will be using GDI+ to basically load a image in memory and annotate
it with some text and save the image.

Any pointers on how I can do this?

You can, as long as you expose a pure C (or COM) interface to your VC8 DLL.
If you expose functions that have MFC, ATL or STL types in the interface,
you won't be able to call those functions from VC6. If you expose functions
that have GDI+ types in their interface, it _might_ work, depending on
whether VC6 and VC8 can both compile the exact same version of GDI+ and
whether you have all the options for the two compilers set in a compatible
way.

In your case, if all you want to do is load, annotate and save an image,
your exported function probably needs little more than a path, so it should
be doable.

-cd


.



Relevant Pages

  • VC8 GDI+ dll in VC6
    ... Can I write a VC8 dll which used GDI+ and then use this dll in VC6. ... I will be using GDI+ to basically load a image in memory and annotate it ...
    (microsoft.public.dotnet.languages.vc)
  • Re: GDI+ failing !!? HELP...
    ... It appears that you have merged the GDI+ SDK with a very old, ... version of Platform SDK that ships with VC6. ... errors - the new headers rely on something that old headers are missing. ... download and install the latest version of Platform SDK here: ...
    (microsoft.public.vc.mfc)
  • Re: GDI+ failing !!? HELP...
    ... It appears that you have merged the GDI+ SDK with a very old, ... version of Platform SDK that ships with VC6. ... errors - the new headers rely on something that old headers are missing. ... download and install the latest version of Platform SDK here: ...
    (microsoft.public.vc.language)
  • GDI+ Effects Problem
    ... I got GDI+ to work pretty well in VC6 but I can't get the effects to work. ... Do I need a namespace? ... Prev by Date: ...
    (microsoft.public.vc.mfc)
  • Re: JPG
    ... GDI+ is a good starting point for this. ... It will work in VC6 as well. ... Ajay Kalra [MVP - VC++] ...
    (microsoft.public.vc.mfc.docview)