Pelles C forum

C language => Windows questions => Topic started by: nilos on June 28, 2011, 12:54:14 PM

Title: Link with windows SDK
Post by: nilos on June 28, 2011, 12:54:14 PM
Hello guyz, im trying this:

#include <stdio.h>

#include <Audioclient.h>

#define WIN32_LEAN_AND_MEAN
#include <windows.h>

int main()
{
SetMasterVolume( 0.55, NULL);

return 0;
}


I 've downloaded the Windows SDK, how can i link it ??
I tired Project -> Project options...-> (in Foldes tab) to add the SDK\Include and SDK\Lib but it didnt work...
Title: Re: Link with windows SDK
Post by: Romashka on June 28, 2011, 01:04:20 PM
'Linker' tab -> 'Library and object files' field -> kernel32.lib user32.lib gdi32.lib
Title: Re: Link with windows SDK
Post by: nilos on June 28, 2011, 01:14:16 PM
Still says:
C:\Users\Nilos\Desktop\my projs\tries\try.c(3): fatal error #1035: Can't find include file <Audioclient.h>

...any other idea??
Title: Re: Link with windows SDK
Post by: Bitbeisser on June 29, 2011, 03:59:12 AM
Quote from: nilos on June 28, 2011, 01:14:16 PM
Still says:
C:\Users\Nilos\Desktop\my projs\tries\try.c(3): fatal error #1035: Can't find include file <Audioclient.h>

...any other idea??
Common sense would probably tell you to add the path/folder that the include file Audioclient.h is located into the  include file folder list, either for the project or globally under tools...  ;)

Ralf