Win32 API Functions

  • Thread starter Thread starter N3ur0
  • Start date Start date
N

N3ur0

Guest
Can't seem to access them from the HL2 source. I've included the proper headers and am linking with the proper static libs. However I get compile errors when I try to access them regularly or as members of the global namespace. Specifically, I need to access them from client.cpp in the server dll.
 
When I include windows.h all compiles very fine :).

Most API calls work perfect :) (didn't test things like creating windows however).

On the other hand, I only used them in the client up to now.
 
What errors are you getting, and what do you mean by "I get compile errors when I try to access them regularly"?
 
Ignore that post, it was written badly - here's a better one I posted at hl2coding.com:

Anyone know the correct way to use Win32 API functions in HL2 code, specifically from client.cpp in the server DLL? I'm trying to use MCI commands to put an MP3 playing extension in my mod, and it's giving me the following error (once for each time I use the function):

client.cpp(*insert line number*) : error C3861: 'mciSendString': identifier not found, even with argument-dependent lookup

I've included the proper headers and am linking with kernel32.lib, user32.lib, winmm.lib, etc. Any ideas?
 
Back
Top