Thread: cannot use mci strings

  1. #1
    "The Oldest Member Here" Xterria's Avatar
    Join Date
    Sep 2001
    Location
    Buffalo, NY
    Posts
    1,039

    cannot use mci strings

    hey, I'm trying to play music using
    Code:
    	mciSendString("open mids/level1.mid type sequencer", NULL, 0, NULL);
    	mciSendString("play mids/level1.mid", NULL, 0, NULL);
    and I keep getting this
    Code:
    error LNK2001: unresolved external symbol __imp__mciSendStringA@16
    I'm using opengl--if that has anything to do with it. Can someone please help me?

  2. #2
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    My best code is written with the delete key.

  3. #3
    "The Oldest Member Here" Xterria's Avatar
    Join Date
    Sep 2001
    Location
    Buffalo, NY
    Posts
    1,039
    thanks but I know what a linker error is, I just want to know what I need to include for the mci strings

  4. #4
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    The header you need to include is windows.h, but you have to link to the Winmm.lib library as well.

    -Prelude
    My best code is written with the delete key.

  5. #5
    "The Oldest Member Here" Xterria's Avatar
    Join Date
    Sep 2001
    Location
    Buffalo, NY
    Posts
    1,039
    thank you, i forgot winmm.lib...im always used to already having it in there

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Strings Program
    By limergal in forum C++ Programming
    Replies: 4
    Last Post: 12-02-2006, 03:24 PM
  2. Programming using strings
    By jlu0418 in forum C++ Programming
    Replies: 5
    Last Post: 11-26-2006, 08:07 PM
  3. Problems with strings as key in STL maps
    By all_names_taken in forum C++ Programming
    Replies: 3
    Last Post: 01-17-2006, 11:34 AM
  4. Reading strings input by the user...
    By Cmuppet in forum C Programming
    Replies: 13
    Last Post: 07-21-2004, 06:37 AM
  5. menus and strings
    By garycastillo in forum C Programming
    Replies: 3
    Last Post: 04-29-2002, 11:23 AM