|
MMSystem.h를 Include할 때
Windows.h도 함께 Include 시켜보세요.
#include<Windows.h>
#include<MMSystem.h>
나크 님이 쓰신 글 :
: 메인 폼에서 mmsystem을 include 한 h 파일을 include 만 하면 에러가 나네요...
:
: 메인 폼은 gxapp 인데 gxapp.h 에서
:
:
: #ifndef gxAppH
: #define gxAppH
: //---------------------------------------------------------------------------
: #include <Classes.hpp>
: #include <Controls.hpp>
: #include <StdCtrls.hpp>
: #include <Forms.hpp>
: #include <ScktComp.hpp>
: #include "GlobalVar.h"
: #include "gxPacket.h"
: #include "gxDef.h"
: #include "stdio.h"
: #include <ComCtrls.hpp>
: #include <ImgList.hpp>
: #include <ExtCtrls.hpp>
:
: #include "RXSplit.hpp"
:
: #include "gxAudioForm.h"
:
:
: 이렇게 되어 있구..
:
:
: gxAudioForm.h는 진짜 말 그대로 아무것도 없는데 mmsystem include 만 되어 있는 놈...
:
:
:
: 그 전체 내용은 다음과 같습니다.
:
: //---------------------------------------------------------------------------
:
: #ifndef gxAudioFormH
: #define gxAudioFormH
: //---------------------------------------------------------------------------
: #include <Classes.hpp>
: #include <Controls.hpp>
: #include <StdCtrls.hpp>
: #include <Forms.hpp>
:
: //---------------------------------------------------------------------------
:
: #include <mmsystem.h>
: #include <winsock.h>
: #include "gxAudioDef.h"
: //---------------------------------------------------------------------------
: class TForm1 : public TForm
: {
: __published: // IDE-managed Components
: private: // User declarations
: public: // User declarations
: __fastcall TForm1(TComponent* Owner);
:
:
: //---------------------------------------------------------------------------
:
: };
: //---------------------------------------------------------------------------
: extern PACKAGE TForm1 *Form1;
: //---------------------------------------------------------------------------
: #endif
:
:
: 이게 답니다.
:
: 근데 에러는..
:
:
: [C++ Error] mmsystem.h(363): E2189 extern variable cannot be initialized
: [C++ Error] mmsystem.h(363): E2108 Improper use of typedef 'HDRVR'
: [C++ Error] mmsystem.h(363): E2293 ) expected
: [C++ Error] mmsystem.h(364): E2189 extern variable cannot be initialized
: [C++ Error] mmsystem.h(364): E2108 Improper use of typedef 'LPCWSTR'
: [C++ Error] mmsystem.h(364): E2293 ) expected
: ..
: .
: .
: .
: [C++ Error] mmsystem.h(1873): E2040 Declaration terminated incorrectly
: [C++ Error] mmsystem.h(1873): E2228 Too many error or warning messages
:
: 이렇게 납니다.
:
: 처음 에러 나는 문장은,
:
: WINMMAPI LRESULT WINAPI CloseDriver(HDRVR hDriver, LONG lParam1, LONG lParam2);
:
: 이구요...
:
: 뭘 추가 해줘야 하는건가요?
:
: 제발 부탁드립니다.
:
:
:
|