NO

Author Topic: Link with windows SDK  (Read 4106 times)

nilos

  • Guest
Link with windows SDK
« on: June 28, 2011, 12:54:14 PM »
Hello guyz, im trying this:

Code: [Select]
#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...

Romashka

  • Guest
Re: Link with windows SDK
« Reply #1 on: June 28, 2011, 01:04:20 PM »
'Linker' tab -> 'Library and object files' field -> kernel32.lib user32.lib gdi32.lib

nilos

  • Guest
Re: Link with windows SDK
« Reply #2 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??
« Last Edit: June 28, 2011, 03:42:09 PM by nilos »

Offline Bitbeisser

  • Global Moderator
  • Member
  • *****
  • Posts: 772
Re: Link with windows SDK
« Reply #3 on: June 29, 2011, 03:59:12 AM »
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