Results 1 to 5 of 5

Thread: Linking qt_windows.h and mciSendString

  1. #1
    Join Date
    Sep 2010
    Posts
    45
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    8

    Default Linking qt_windows.h and mciSendString

    Witch LIBS we need to link for using the library:
    qt_windows.h

    and the function
    mciSendString( ... )

    http://msdn.microsoft.com/en-us/libr...61(VS.85).aspx

    I'm using qt-creator under windows.
    Last edited by bred; 7th November 2010 at 18:12.

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows
    Thanks
    21
    Thanked 418 Times in 411 Posts

    Default Re: Linking qt_windows.h and mciSendString

    you should not use qt_windows.h your self.
    You should use <QApplication>.
    It will resolve the correct system Qt headers depending on the system you are compiling on.
    For the mciSetString(), you supplied the answer to your own question in the link.
    READ the link you posted, the answer is there!
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  3. #3
    Join Date
    Sep 2010
    Posts
    45
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    8

    Default Re: Linking qt_windows.h and mciSendString

    Quote Originally Posted by high_flyer View Post
    you should not use qt_windows.h your self.
    You should use <QApplication>.
    It will resolve the correct system Qt headers depending on the system you are compiling on.
    For the mciSetString(), you supplied the answer to your own question in the link.
    READ the link you posted, the answer is there!
    The lib is:
    Winmm.lib
    i've read the link.

    But this lib is not installed in my system and is not installed in the Qt environment.
    There's only the (in c:\windows\System32\winmm.dll) but it's impossible to link this dll.

    I try to replace qt_windows.h with <QApplication>.

  4. #4
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows
    Thanks
    21
    Thanked 418 Times in 411 Posts

    Default Re: Linking qt_windows.h and mciSendString

    This file should be part of the platform SDK. Look under your MSVS installation in directory VC\PlatformSDK\lib.

    If you don't find it there, you can get it by installation the WDK.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  5. The following user says thank you to high_flyer for this useful post:

    bred (8th November 2010)

  6. #5
    Join Date
    Sep 2010
    Posts
    45
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    8

    Default Re: Linking qt_windows.h and mciSendString

    Quote Originally Posted by high_flyer View Post
    This file should be part of the platform SDK. Look under your MSVS installation in directory VC\PlatformSDK\lib.

    If you don't find it there, you can get it by installation the WDK.
    Ok.
    I'm going to install WDK.

Similar Threads

  1. Linking With Qt VS Add in
    By rcjohns in forum Newbie
    Replies: 2
    Last Post: 14th March 2010, 12:42
  2. Linking to a DLL
    By JohnGaby in forum Newbie
    Replies: 1
    Last Post: 14th October 2009, 19:52
  3. Linking
    By ^NyAw^ in forum General Programming
    Replies: 7
    Last Post: 30th October 2008, 17:37
  4. dll linking
    By Project25 in forum Qt Programming
    Replies: 3
    Last Post: 12th July 2007, 07:39
  5. linking
    By mickey in forum Newbie
    Replies: 5
    Last Post: 22nd April 2006, 21:37

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.