Форум программистов, компьютерный форум CyberForum.ru

С++ для начинающих

Войти
Регистрация
Восстановить пароль
 
Рейтинг: Рейтинг темы: голосов - 34, средняя оценка - 4.97
Zhomart
0 / 0 / 0
Регистрация: 16.06.2009
Сообщений: 9
#1

Ошибка компиляций mmsystem.h (на с++) - C++

16.06.2009, 09:19. Просмотров 4654. Ответов 4
Метки нет (Все метки)

Я пытался компилить этот код, но к сожелению он не скомпилился
C++
1
2
3
4
5
6
7
8
9
10
11
#include <iostream>
#include <cstdio>
#include <mmsystem.h>
using namespace std;
 
int main(){
    freopen("input","r",stdin);
    freopen("output","w",stdout);
 
    return 0;
}
Вот ошибка
g++ 2.cpp
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1639:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1640:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1641:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1642:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1643:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1644:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1645:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1646:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1647:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1648:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1649:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1650:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1651:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1652:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1653:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1654:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1655:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1656:
error: `DWORD' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1657:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1658:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1659:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1660:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1661:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1662:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1663:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1664:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1665:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1666:
error: `DWORD' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1667:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1668:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1669:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1670:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1671:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1672:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1673:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1674:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1675:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1676:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1677:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1678:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1679:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1680:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1681:
error: `FOURCC' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1682:
error: `FOURCC' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1683:
error: `LPMMIOPROC' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1684:
error: `LPMMIOPROC' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1685:
error: `HMMIO' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1686:
error: `HMMIO' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1687:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1688:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1689:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1690:
error: `LONG' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1691:
error: `LONG' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1692:
error: `LONG' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1693:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1694:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1695:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1696:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1697:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1698:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1699:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1700:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1701:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1702:
error: `MCIERROR' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1703:
error: `MCIERROR' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1704:
error: `MCIERROR' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1705:
error: `MCIERROR' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1706:
error: `MCIDEVICEID' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1707:
error: `MCIDEVICEID' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1708:
error: `MCIDEVICEID' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1709:
error: `MCIDEVICEID' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1710:
error: `BOOL' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1711:
error: `BOOL' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1712:
error: `BOOL' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1713:
error: `HTASK' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1714:
error: `YIELDPROC' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1717:
error: `DWORD' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1718:
error: `DWORD' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1719:
error: `DWORD' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1720:
error: `DWORD' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1721:
error: `DWORD' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1722:
error: `DWORD' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1723:
error: `DWORD' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1724:
error: `DWORD' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1727:
error: `DWORD' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1728:
error: `MCIDEVICEID' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1729:
error: `LPCSTR' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1730:
error: `LPCSTR' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1731:
error: `LPCSTR' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1732:
error: `DWORD' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1733:
error: `HWND' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1736:
error: `DWORD' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1737:
error: `MCIDEVICEID' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1738:
error: `LPCWSTR' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1739:
error: `LPCWSTR' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1740:
error: `LPCWSTR' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1741:
error: `DWORD' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1742:
error: `HWND' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1745:
error: `DWORD' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1746:
error: `DWORD' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1747:
error: `DWORD' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1748:
error: `DWORD' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1751:
error: `DWORD' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1752:
error: `DWORD' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1755:
error: `DWORD' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1756:
error: `HWND' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1758:
error: `LPCSTR' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1761:
error: `DWORD' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1762:
error: `HWND' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1764:
error: `LPCWSTR' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1767:
error: `DWORD' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1772:
error: `RECT' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1776:
error: `DWORD' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1777:
error: `RECT' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1778:
error: `HDC' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1781:
error: `DWORD' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1782:
error: `MCIDEVICEID' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1783:
error: `LPCSTR' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1784:
error: `LPCSTR' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1785:
error: `LPCSTR' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1786:
error: `DWORD' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1787:
error: `HWND' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1790:
error: `DWORD' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1791:
error: `MCIDEVICEID' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1792:
error: `LPCWSTR' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1793:
error: `LPCWSTR' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1794:
error: `LPCWSTR' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1795:
error: `DWORD' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1796:
error: `HWND' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1799:
error: `DWORD' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1800:
error: `HWND' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1802:
error: `LPCSTR' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1805:
error: `DWORD' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1806:
error: `HWND' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1808:
error: `LPCWSTR' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1811:
error: `DWORD' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1816:
error: `RECT' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1820:
error: `DWORD' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1821:
error: `LPCSTR' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1822:
error: `RECT' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1825:
error: `DWORD' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1826:
error: `LPCWSTR' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1827:
error: `RECT' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1830:
error: `DWORD' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1831:
error: `LPCSTR' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1832:
error: `RECT' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1835:
error: `DWORD' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1836:
error: `LPCWSTR' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1837:
error: `RECT' does not name a type

D:\Informatics\Poject\Wav>
Please help
Заранее СПС
Similar
Эксперт
41792 / 34177 / 6122
Регистрация: 12.04.2006
Сообщений: 57,940
16.06.2009, 09:19
Здравствуйте! Я подобрал для вас темы с ответами на вопрос Ошибка компиляций mmsystem.h (на с++) (C++):

зависает компиляций - C++
Только начал изучать классы с++, попробовал написать простейшую программу с классами - площадь квадрата. #include &lt;iostream&gt; ...

Все сделал, проект закончил, и ошибка такая при компиляций - Delphi
Помогите! Все сделал, проект закончил, и ошибка такая при компиляций: Что делать? Не компилирует Добавлено через 12 минут ...

Ошибка после нескольких компиляций unit1.pas(47,15) Error: Forward declaration not solved "TForm1.FormCreate(T - Lazarus
После нескольких компиляций, после того как я закомментировал полностью процедуру двойного клика по таблице StringGrid1DblClick начала...

.NET 4.x Подсчитать количество компиляций - C#
Здравствуйте, меня всегда волновал вопрос как посчитать количество компиляций, или дату последней компиляции чтобы вывести их в данных о...

MMSystem - Delphi
Проблема... Я добавил в программу музыку.. при запуске идёт функция - PlaySound('sound\play.wav', 0, SND_ASYNC); ... Как зделать...

Выводит ошибку при компиляций - Delphi
Выводит ошибку http://s017.***********/i432/1212/85/458769238d39.png

Надоела реклама? Зарегистрируйтесь и она исчезнет полностью.
Haster
инженер-системотехник
109 / 108 / 2
Регистрация: 10.03.2009
Сообщений: 533
16.06.2009, 09:30 #2
А зачем тебе нужен файл mmsystem.h?
CyBOSSeR
Эксперт C++
2300 / 1670 / 86
Регистрация: 06.03.2009
Сообщений: 3,675
16.06.2009, 09:35 #3
Тебе нужно дополнительно подключить заголовочный файл windows.h.
Дело в том, что HWND, DWORD - типы которые используются в mmsystem.h, а объявленные в windows.h.
YurA_280784
Заблокирован
16.06.2009, 09:43 #4
Ребята библиотечки нуна не забывать подключать
winmm.lib и dsound.lib

Короче после хедера mmsystem.h вбить нуна
C++
1
2
#pragma comment(lib,"winmm.lib")
#pragma comment(lib,"dsound.lib")
Zhomart
0 / 0 / 0
Регистрация: 16.06.2009
Сообщений: 9
16.06.2009, 09:50  [ТС] #5
Спасибо, сработало с windows.h.
Я написал
C++
1
2
3
#include <iostream>
#include <mmsystem.h>
#include <windows.h>
Оказывается надо windows.h писать выше!
MoreAnswers
Эксперт
37091 / 29110 / 5898
Регистрация: 17.06.2006
Сообщений: 43,301
16.06.2009, 09:50
Привет! Вот еще темы с ответами:

Подключение mmSystem.h - C#
Добрый день. Только начинаю осваиваться в C#. Нужно написать лабу с воспроизведением и записью звука с микрофона. в C++ для того,...

mmsystem и OpenDialog - Delphi
Здравствуйте! Помогите разобраться пожалуйста. Воспроизвожу звук с помощью mmsystem и все ок. PlaySound('\sound.wav', 0,...

Mmsystem.h под windows 7 - C++ WinAPI
Есть хоть кто нибудь, кто использовал Mmsystem.h под windows 7 (в отношении работы с системным микшером) ??? Почему на всех линиях по...

1C 8.x Директивы компиляций, передача данных между клиентом и сервером - 1С
Вот собственно код: &amp;НаСервере function wa() var tz,tzs; tz=новый ТаблицаЗначений; tz.Колонки.Добавить(&quot;наименование&quot;); ...


Искать еще темы с ответами

Или воспользуйтесь поиском по форуму:
Yandex
Объявления
16.06.2009, 09:50
Ответ Создать тему
Опции темы

КиберФорум - форум программистов, компьютерный форум, программирование
Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Рейтинг@Mail.ru