NO

Author Topic: gdiplus.lib  (Read 7283 times)

czerny

  • Guest
gdiplus.lib
« on: December 12, 2011, 01:28:13 AM »
Hallo,

I wonder why in the lib path of Pelles C (6.50.8 RC #4) a file 'gdiplus.lib' (163.014 Bytes) is included, whereas no include files,  nor a gdiplus.dll is available. Where can I get the appropriate header files?

I know that there is a package from John Findlay. But that must be an other version (older).

czerny

CommonTater

  • Guest
Re: gdiplus.lib
« Reply #1 on: December 12, 2011, 02:09:54 AM »
Hallo,

I wonder why in the lib path of Pelles C (6.50.8 RC #4) a file 'gdiplus.lib' (163.014 Bytes) is included, whereas no include files,  nor a gdiplus.dll is available. Where can I get the appropriate header files?

I know that there is a package from John Findlay. But that must be an other version (older).

czerny

It's part of windows (in fact it's how windows draws windows) and is probably used by half a dozen headers.  There is not a one to one relationship between headers and libraries or between libraries and dlls. 

When writing GUI mode programs add #define WIN32_DEFAULT_LIBS before your #includes and the headers will sort it out for you.  (Note: This is unique to Pelles C)


http://msdn.microsoft.com/en-us/library/ms533798(v=vs.85).aspx

http://msdn.microsoft.com/en-us/library/dd145203(v=vs.85).aspx


czerny

  • Guest
Re: gdiplus.lib
« Reply #2 on: December 13, 2011, 10:02:34 AM »
Hallo Tater,

it seems to me that you mix GDI with GDI+.

Can you tell me where (*.h) the functions GdiplusStartup and GdiplusShutdown are defined for example?

czerny

JohnF

  • Guest
Re: gdiplus.lib
« Reply #3 on: December 13, 2011, 12:59:09 PM »
As far as I'm aware the only way to use GDI+ with PellesC is to use the files that I produced.

John

czerny

  • Guest
Re: gdiplus.lib
« Reply #4 on: December 13, 2011, 05:03:51 PM »
Hallo John,

I have some little problems using your lib:

There is a nameclash with Pelles gdiplus.lib. The two differ in size. It is not clear to me, if they are compatible. I could rename yours, but that is not very nice.

You have not included a matching 'gdiplusflat.h'. So I am looking for a complete set of files.

The project file you have provided do not include the build of the lib or the dll. But that is only an info.

czerny

JohnF

  • Guest
Re: gdiplus.lib
« Reply #5 on: December 13, 2011, 06:21:59 PM »
Hallo John,

I have some little problems using your lib:

There is a nameclash with Pelles gdiplus.lib. The two differ in size. It is not clear to me, if they are compatible. I could rename yours, but that is not very nice.

You have not included a matching 'gdiplusflat.h'. So I am looking for a complete set of files.

The project file you have provided do not include the build of the lib or the dll. But that is only an info.

czerny

My lib is named GdiPlusLib.lib so there is no clash. It's a while since doing anything with that project so I may not remember things exactly.

The flat API's are part of each set so for example GdipCreateMatrix API is declared in GdiPlusMatrix.h etc, etc.

You will find everything you need in the zip file. There is my lib and the PellesC lib and example projects.

The original files from MS are C++ so I had to change quite a lot as you can imagine, the layout of what things are in which files was my choice as the MS way did not make sense for C.

As far as I know all relevant calls are there.

John

czerny

  • Guest
Re: gdiplus.lib
« Reply #6 on: December 13, 2011, 07:54:16 PM »
Hallo John,

there exist different versions. Pelles lib and yours differ in size:

Pelles gdiplus.lib (163.014 Bytes)
Johns gdiplus.lib (206.650 Bytes)

and neither Pelle nor you have the    adequate dll included.

On my system I found many incarnations of gdiplus.dll:

(1.638.400 Bytes) ver 5.1.3102.1360
(1.645.320 Bytes) ver 5.1.3102.1360 (strange)
(1.724.416 Bytes) ver 5.1.3102.5512
(1.748.992 Bytes) ver 5.2.6001.22319
(1.773.568 Bytes) ver 6.0.3264.0

so I do not know which dll and which lib are matching.

czerny

JohnF

  • Guest
Re: gdiplus.lib
« Reply #7 on: December 13, 2011, 09:13:34 PM »
Hallo John,

there exist different versions. Pelles lib and yours differ in size:

Pelles gdiplus.lib (163.014 Bytes)
Johns gdiplus.lib (206.650 Bytes)

and neither Pelle nor you have the    adequate dll included.

On my system I found many incarnations of gdiplus.dll:

(1.638.400 Bytes) ver 5.1.3102.1360
(1.645.320 Bytes) ver 5.1.3102.1360 (strange)
(1.724.416 Bytes) ver 5.1.3102.5512
(1.748.992 Bytes) ver 5.2.6001.22319
(1.773.568 Bytes) ver 6.0.3264.0

so I do not know which dll and which lib are matching.

czerny

As I said earlier, mine is named GdiPlusLib.lib.

You must try things out. The examples work by using the libs
supplied in the GdiPlusLib.zip

EDIT: For using the API's from the dll any of them will contain 99% of all calls.

John

« Last Edit: December 13, 2011, 09:41:24 PM by JohnF »

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 2091
Re: gdiplus.lib GdiPlusFlatC.h
« Reply #8 on: October 27, 2013, 01:06:44 PM »
Here is GdiPlusFlatC.h collected from the w32api package.
If someone found errors, please give us corrected one.
-- Timppa
« Last Edit: October 29, 2013, 08:44:15 AM by timovjl »
May the source be with you