C를 이용한(콘솔) 건반형 리듬게임 / 졸작(졸업작품) 및 프로젝트
닫기
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
해당 자료는 8페이지 까지만 미리보기를 제공합니다.
8페이지 이후부터 다운로드 후 확인할 수 있습니다.

소개글

C를 이용한(콘솔) 건반형 리듬게임 / 졸작(졸업작품) 및 프로젝트에 대한 보고서 자료입니다.

목차

[Debug]
  1.txt
  2.txt
  test.exe
  test.ilk
  test.obj
  test.pch
  test.pdb
  vc60.idb
  vc60.pdb
  젓가락행진곡.txt
  학교종.txt
  학교종H.txt

1.txt
2.txt
test.cpp
test.dsp
test.dsw
test.ncb
test.opt
test.plg
젓가락행진곡.txt
학교종.txt
학교종H.txt



test.exe로 게임을 실행합니다.


파일 23, 폴더 1
4.71MB

본문내용

test.cpp





#include
#include
#include
#include
#pragma comment(lib, "winmm.lib")

typedef struct {
    int instrument;    // 악기
    int key;        // 키(건반위치 0~7)
    int note;        // 음(미디), 재생한 후에는 0으로
    DWORD time;        // 나오는시간
    int oldpos;        // 처음은 -1이고, 노트를 그린경우 어디에 그렸는지 Y좌표 표시 (나중에 지워주기위해)
    int manual;
} NOTE;

extern "C" WINBASEAPI HWND WINAPI GetConsoleWindow();

void CALLBACK MidiOutProc(HMIDIOUT MidiOut, UINT Msg, DWORD Instance, DWORD Param1, DWORD Param2)
{
}

void OutputError(MMRESULT mmrErrCode)
{
    char szErrMsg[128];
    midiInGetErrorText(mmrErrCode, (LPSTR)szErrMsg, sizeof(szErrMsg));
    MessageBox(0, szErrMsg, "Error", MB_OK);
}

void GetDevCaps(HMIDIOUT hDevOutHandle, MIDIOUTCAPS *Caps)
{
    UINT uDeviceID = -1;
    MMRESULT mmResult = midiOutGetID(hDevOutHandle, &uDeviceID);
    if(mmResult != MMSYSERR_NOERROR)
    {
        OutputError(mmResult);
        return;
    }
    if(uDeviceID & 0x80000000)
        return;

    if(midiOutGetDevCaps(uDeviceID, Caps, sizeof(MIDIOUTCAPS)) != MMSYSERR_NOERROR)
        OutputError(mmResult);
}

키워드

  • 가격10,000
  • 페이지수23페이지
  • 등록일2014.08.08
  • 저작시기2012.05
  • 파일형식압축파일(zip)
  • 자료번호#932568
본 자료는 최근 2주간 다운받은 회원이 없습니다.
청소해
다운로드 장바구니