Михаил Шестопалов
Михаил Шестопалов

Спасите помогите.... Microsoft Visual

в общем все не влезает. . буду постить кусками
Выкидывает кучу ошибок.. . скажите мне пожалуйста, что не так? (я не программ, скачал скрипт, надеялся что рабочий. Скажите мне, этот скрипт вообще адекватен, или он с головы написан.. )

#if _WIN32_WINNT < 0x0500
#define _WIN32_WINNT 0x0500
#endif
#include
#include
#include
#include
#include "resource.h"
#pragma comment(lib, "winmm.lib")

#define processId 1868
#define realmlist logon.wowcircle.com
#define server 3.3.5.12340
#define rate 5
#define name wow.exe
#define memory 256
#define fraction horde
#define type undead
#define mapId autodetect
#define place dalaran
#define coords autodetect
#define cell 1x1
#define valueOf 1
#define currentHealth 19653
#define curentMana 29253
#define currentRage 1
#define money 22944477
#define allsloth clear
#define good 47556
#define serverdelay autodetect
#define interfaceUI get.alldataOfInterface();
#define stats_power get.character.stats.power();
#define honor get.character.stats.honor();
#define tallent get.character.stats.allTallent();
#define tallent_value 57,3,11
#define profession get.data.professoon ();

typedef struct _Ship {
COORD pos;
DWORD mtime;
int type; // 1 - shipA, 2 - shipB
int cnt;
int life;
} Ship, *PShip;

DWORD WINAPI ThreadInputDevice(LPVOID param);
DWORD WINAPI ThreadSpikerSound(LPVOID param);
BOOL ParemtersConsole(const WCHAR* caption);
void InitGame(void);
int DrawStatus(BOOL reset, int plife, int pbonus, int pmimo, int pkill);
BOOL IsQuitGame(void);
void DrawSpaceshipA(PShip ship, DWORD tick);
void DrawSpaceshipB(PShip ship, DWORD tick);
void DrawUser(void);
void DrawBullet(PCOORD pos, BOOL redraw);
void MoveBullet(void);
void GeneratePosition(PShip ship);
void CrushShip(PShip ship);
bool IsCollisionShip(PCOORD pos);
void CollisionBullet(PCOORD pos);
void OutputText(const CHAR* str, SHORT x, SHORT y, SHORT width = 0, WORD color = 0);
void CleanConsole(CHAR ch = ' ', WORD color = 0);
void BeginGame(void);
void EndGame(void);
CHAR* SaveStatus(int bonus, int kill, int mimo);

HANDLE hout = NULL;
HANDLE hin = NULL;
HANDLE thread = NULL;
HANDLE sthread = NULL;
HGLOBAL sound = NULL;
PShip ships = NULL;
BOOL restart = FALSE;
BOOL gameover = FALSE;
DWORD idsound = 0uL;
COORD screen;
COORD upos;
COORD utmp;
DWORD speed[2];

CRITICAL_SECTION section;
std::list bullets;

int main(void) {

DWORD tick = 0uL;
DWORD tmove = 0uL;

if(! ParemtersConsole(L"Космический одиночка"))
return 1;

sthread = CreateThread(NULL, 0uL, (LPTHREAD_START_ROUTINE)ThreadSpikerSound, (LPVOID)NULL, 0uL, &idsound);
if(sthread == NULL)
return 2;

thread = CreateThread(NULL, 0uL, (LPTHREAD_START_ROUTINE)ThreadInputDevice, (LPVOID)NULL, CREATE_SUSPENDED, NULL);
if(thread == NULL) {
TerminateThread(sthread, 0uL);
return 3;
}

BeginGame();
ResumeThread(thread);
srand(time(NULL));
InitializeCriticalSection(§ion);

prev:
InitGame();

while( IsQuitGame() ) {

if(restart) {
restart = FALSE;
goto prev;
}

if(gameover)
continue;

tick = GetTickCount();

for(int i = 0; i < MAX_SHIPS; i++) {
if(ships.type & SHIP_A)
DrawSpaceshipA(&ships, tick);
else if(ships.type & SHIP_B)
DrawSpaceshipB(&ships, tick);

if(IsCollisionShip(&ships.pos)) {
if(DrawStatus(FALSE, 1, ships.type * 10, 0, 1) < 0) {
EndGame();
break;
}
PostThreadMessage(idsound, WM_COMMAND, SPIK_CRUSH, 0);
CrushShip(&ships);
}
}

if((tick - tmove) > 10uL) {
tmove = tick;
MoveBullet();
}

Sleep(0uL);
}

WaitForMultipleObjects(1uL, &sthread, TRUE, INFINITE);
CloseHandle(sthread);
CloseHandle(thread);
DeleteCriticalSection(§ion);

if(bullets.size() > 0u)
bullets.clear();

delete[] ships;

if(sound) {
GlobalUnlock(sound);
#ifdef _WIN32
FreeResource(sound);
#endif
sound = NULL;
}
return ERROR_SUCCESS;
}

http://pastebin.com/yS6nX4HH вот там оно

Ленка
Ленка

pastebin.com - туда выкладывай

Похожие вопросы
Microsoft Visual Studio
Microsoft Visual Studio версии
Microsoft Visual Studio 2010
Подскажите по microsoft visual c#!!!
Microsoft Visual Studio 10
Microsoft Visual Basic 6.0
Microsoft Visual c+ +
можно установить microsoft visual c++ на ubuntu ???можно установить microsoft visual c++ на ubuntu ???
Помогите с установкой библиотеки в microsoft visual studio
Помогите решить на С++ (Microsoft Visual C++ 2010)