NO

Author Topic: many mistakes with psapi.h  (Read 3177 times)

Muhammed

  • Guest
many mistakes with psapi.h
« 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.
« Last Edit: August 07, 2007, 02:27:24 AM by Muhammed »

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 2091
Re: many mistakes with psapi.h
« Reply #1 on: August 07, 2007, 06:58:14 AM »
Have you included windows.h before psapi.h ?
May the source be with you

Muhammed

  • Guest
Re: many mistakes with psapi.h
« Reply #2 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

JohnF

  • Guest
Re: many mistakes with psapi.h
« Reply #3 on: August 07, 2007, 08:23:37 PM »
Did you link with Psapi.lib

John

Muhammed

  • Guest
Re: many mistakes with psapi.h
« Reply #4 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 ^^