PDA

View Full Version : Linking qt_windows.h and mciSendString



bred
7th November 2010, 15:54
Witch LIBS we need to link for using the library:
qt_windows.h

and the function
mciSendString( ... )

http://msdn.microsoft.com/en-us/library/dd757161(VS.85).aspx

I'm using qt-creator under windows.

high_flyer
8th November 2010, 10:02
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!

bred
8th November 2010, 12:29
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>.

high_flyer
8th November 2010, 12:52
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.

bred
8th November 2010, 14:55
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.