Thread: PlaySound error

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Shadow12345
    Guest

    PlaySound error

    I am trying to make a call to playsound:
    Code:
    PlaySound (TEXT ("hellowin.wav"), NULL, SND_FILENAME | SND_ASYNC) ;
    But I am getting these 2 errors:
    --------------------Configuration: Windows Programming simp1 - Win32 Debug--------------------
    Compiling...
    Main.cpp
    Linking...
    Main.obj : error LNK2001: unresolved external symbol __imp__PlaySoundA@12
    Debug/Windows Programming simp1.exe : fatal error LNK1120: 1 unresolved externals
    Error executing link.exe.

    Windows Programming simp1.exe - 2 error(s), 0 warning(s)

    Does that mean that I can't make a call to that particular function with xp?

    EDIT:
    This ebook seems old, instead of using PeekMessage it uses GetMessage and isntead of TextOut() it uses DrawText...Where can I find a more up-to-date e-book?
    Last edited by Shadow12345; 09-28-2002 at 03:04 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Beginner Needs help in Dev-C++
    By Korrupt Lawz in forum C++ Programming
    Replies: 20
    Last Post: 09-28-2010, 01:17 AM
  2. Another syntax error
    By caldeira in forum C Programming
    Replies: 31
    Last Post: 09-05-2008, 01:01 AM
  3. Making C DLL using MSVC++ 2005
    By chico1st in forum C Programming
    Replies: 26
    Last Post: 05-28-2008, 01:17 PM
  4. Learning OpenGL
    By HQSneaker in forum C++ Programming
    Replies: 7
    Last Post: 08-06-2004, 08:57 AM
  5. Couple C questions :)
    By Divx in forum C Programming
    Replies: 5
    Last Post: 01-28-2003, 01:10 AM