C++Builder Programming Forum
C++Builder  |  Delphi  |  FireMonkey  |  C/C++  |  Free Pascal  |  Firebird
볼랜드포럼 BorlandForum
 경고! 게시물 작성자의 사전 허락없는 메일주소 추출행위 절대 금지
C++빌더 포럼
Q & A
FAQ
팁&트릭
강좌/문서
자료실
컴포넌트/라이브러리
메신저 프로젝트
볼랜드포럼 홈
헤드라인 뉴스
IT 뉴스
공지사항
자유게시판
해피 브레이크
공동 프로젝트
구인/구직
회원 장터
건의사항
운영진 게시판
회원 메뉴
북마크
볼랜드포럼 광고 모집

C++빌더 Q&A
C++Builder Programming Q&A
[72057] 제가 해결한 방법이에요
[] 1599 읽음    2014-12-01 03:07
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);
:
: 이구요...
:
: 뭘 추가 해줘야 하는건가요?
:
: 제발 부탁드립니다.
:
:
:

+ -

관련 글 리스트
8217 [재질문] mmsystem 에겐 문제가 없다.... 다만........... 나크 3050 2001/06/13
72057     제가 해결한 방법이에요 1599 2014/12/01
42048     Re:mmsystem 에겐 문제가 없다.... #include 추가 박영목 2722 2005/09/29
8221     자답 입니다. 허허허... 나크 1738 2001/06/14
Google
Copyright © 1999-2015, borlandforum.com. All right reserved.