Pelles C forum

Pelles C => General discussions => Topic started by: Muhammed on August 07, 2007, 02:24:13 AM

Title: many mistakes with psapi.h
Post by: Muhammed on August 07, 2007, 02:24:13 AM
Hello!

I'm using the newest/actual version of Pelles (4.5) and this is my problem:

I wanted to include the psapi.h and these errors where showed:

(Sry I had to upload it because otherwise it would be to much charackters for the post)
http://pastebin.com/m4e26e8e8

I already have activated the "/ZE-Option" under project options.

Where's the problem?

Is there a difference, including psapi.h into a dll(-project)?

Please help me,

nice greetings.
Title: Re: many mistakes with psapi.h
Post by: TimoVJL on August 07, 2007, 06:58:14 AM
Have you included windows.h before psapi.h ?
Title: Re: many mistakes with psapi.h
Post by: Muhammed on August 07, 2007, 06:42:07 PM
Hello, thanks, now there's no problem with psapi.h;

but there's still a problem:

Now I got this error-messages:

POLINK: error: Unresolved external symbol '_EnumProcessModules'.
POLINK: error: Unresolved external symbol '_GetModuleBaseNameA'.

....although i included the libs in the Projectobjects and also made a "#pragma comment( lib, "kernel32.lib")".

with nice greetings
Title: Re: many mistakes with psapi.h
Post by: JohnF on August 07, 2007, 08:23:37 PM
Did you link with Psapi.lib

John
Title: Re: many mistakes with psapi.h
Post by: Muhammed on August 07, 2007, 08:39:55 PM
Yes, in Project Options, but thank you  :) your answere brouht me to an idea i also linked psapi.lib explicit and now it works ^^