DXライブラリ
Posted: 2020年11月08日(日) 09:39
DXライブラリにおいて
winmainに波線が出て、
winmain対する整合性のない注釈
とエラーが出ます。
対応策を教えていただけないでしょうか?
winmainに波線が出て、
winmain対する整合性のない注釈
とエラーが出ます。
対応策を教えていただけないでしょうか?
#include "DxLib.h"
int Key[256];
int HozonKey() {
char tmpKey[256];
GetHitKeyStateAll(tmpKey);
for (int i = 0; i < 256; i++) {
if (tmpKey[ i ] != 0) {
Key++;
}
else {
Key = 0;
}
}
return 0;
}
int x = 320, y = 240;
int Machine;
void Rdlu() {
if (Key[KEY_INPUT_RIGHT] >= 1) {
x++;
}
if (Key[KEY_INPUT_DOWN] >= 1) {
y++;
}
if (Key[KEY_INPUT_LEFT] >= 1) {
x--;
}
if (Key[KEY_INPUT_UP] >= 1) {
y--;
}
}
void Draw() {
DrawRotaGraph(x, y, 1.0, 0.0, Machine, TRUE);
}
int WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int) {
ChangeWindowMode(TRUE), DxLib_Init(), SetDrawScreen(DX_SCREEN_BACK);
Machine = LoadGraph("画像/machine.jpg");
while (ScreenFlip() == 0 && ProcessMessage() == 0 && ClearDrawScreen() == 0 && HozonKey() == 0) {
Rdlu();
Draw();
}
DxLib_End(); // 終了処理
return 0;
}
int WINAPI
WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd)
{
int WINAPI
WinMain(_In_ HINSTANCE hInstance, _In_opt_ HINSTANCE hPrevInstance, _In_ LPSTR lpCmdLine, _In_ int nShowCmd)
{