15关(刚收夏侯仪)后进城后不能出城,出城程序就报错
天地劫吧
全部回复
仅看楼主
level 1
stuate 楼主
我用的盘是当年电脑与光盘的附赠版本,打上1.3补丁,用窗口模式。另外,现在不能全屏游戏,log文件中错误提示Can't startup DirectDraw
2008年02月06日 08点02分 1
level 0
Posted - 9/17/2003 5:54:09 PM you don't actually need winmm.lib. It contains various multimedia functions that may be nice to have. But it is not required for directdraw."Most people would sooner die than think; in fact, they do so. " User Rating: 1022 | Rate This User Report this Post to a Moderator | Link jimiwa Member since: 8/28/2002 From: USA Posted - 9/18/2003 11:57:14 AM well, here's the code:// mushroom hunter.cpp : Defines the entry point for the application.//#include
#include
#include
#include "stdafx.h"
#include "mushroom hunter.h"#
define MAX_LOADSTRING 100#define WIN32_LEAN_AND_MEAN// Global Variables:HINSTANCE hInst; // current instanceTCHAR szTitle[MAX_LOADSTRING]; // The title bar textTCHAR szWindowClass[MAX_LOADSTRING]; // the main window class nameLPDIRECTDRAW lpdd = NULL;LPDIRECTDRAW7 lpdd7 = NULL;// Forward declarations of functions included in this code module:ATOM MyRegisterClass(HINSTANCE hInstance);BOOL InitInstance(HINSTANCE, int);LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);LRESULT CALLBACK About(HWND, UINT, WPARAM, LPARAM);int APIENTRY _tWinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPTSTR lpCmdLine,int nCmdShow){// TODO: Place code here.MSG msg;HACCEL hAccelTable;if (FAILED(DirectDrawCreateEx(NULL, (void **)&lpdd7, IID_IDirectDraw7, NULL))){exit(1);}if (FAILED(lpdd7->SetCooperativeLevel(hwnd,, DDSCL_NORMAL))){exit(1);}// Initialize global stringsLoadString(hInstance, IDS_APP_TITLE, szTitle, MAX_LOADSTRING);LoadString(hInstance, IDC_MUSHROOMHUNTER, szWindowClass, MAX_LOADSTRING);MyRegisterClass(hInstance);// Perform application initialization:if (!InitInstance (hInstance, nCmdShow)) {return FALSE;}hAccelTable = LoadAccelerators(hInstance, (LPCTSTR)IDC_MUSHROOMHUNTER);// Main message loop:while (GetMessage(&msg, NULL, 0, 0)) {if (!TranslateAccelerator(msg.hwnd, hAccelTable, &msg)) {TranslateMessage(&msg);DispatchMessage(&msg);}}return (int) msg.wParam;}//// FUNCTION: MyRegisterClass()//// PURPOSE: Registers the window class.//// COMMENTS://// This function and its usage are only necessary if you want this code// to be compatible with Win32 systems prior to the 'RegisterClassEx'// function that was added to Windows 95. It is important to call this function// so that the application will get 'well formed' small icons associated// with it.//ATOM MyRegisterClass(HINSTANCE hInstance){WNDCLASSEX wcex;wcex.cbSize = sizeof(WNDCLASSEX); wcex.style = CS_HREDRAW | CS_VREDRAW;wcex.lpfnWndProc = (WNDPROC)WndProc;wcex.cbClsExtra = 0;wcex.cbWndExtra = 0;wcex.hInstance = hInstance;wcex.hIcon = LoadIcon(hInstance, (LPCTSTR)IDI_MUSHROOMHUNTER);wcex.hCursor = LoadCursor(NULL, IDC_ARROW);wcex.hbrBackground = (HBRUSH)(COLOR_WINDOW+1);wcex.lpszMenuName = (LPCTSTR)IDC_MUSHROOMHUNTER;wcex.lpszClassName = szWindowClass;wcex.hIconSm = LoadIcon(wcex.hInstance, (LPCTSTR)IDI_SMALL);
2008年02月06日 17点02分 3
level 0
Posted - 9/17/2003 5:54:09 PM you don't actually need winmm.lib. It contains various multimedia functions that may be nice to have. But it is not required for directdraw."Most people would sooner die than think; in fact, they do so. " User Rating: 1022 | Rate This User Report this Post to a Moderator | Link jimiwa Member since: 8/28/2002 From: USA Posted - 9/18/2003 11:57:14 AM well, here's the code:// mushroom hunter.cpp : Defines the entry point for the application.//#include
#include
#include
#include "stdafx.h"
#include "mushroom hunter.h"#
define MAX_LOADSTRING 100#define WIN32_LEAN_AND_MEAN// Global Variables:HINSTANCE hInst; // current instanceTCHAR szTitle[MAX_LOADSTRING]; // The title bar textTCHAR szWindowClass[MAX_LOADSTRING]; // the main window class nameLPDIRECTDRAW lpdd = NULL;LPDIRECTDRAW7 lpdd7 = NULL;// Forward declarations of functions included in this code module:ATOM MyRegisterClass(HINSTANCE hInstance);BOOL InitInstance(HINSTANCE, int);LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);LRESULT CALLBACK About(HWND, UINT, WPARAM, LPARAM);int APIENTRY _tWinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPTSTR lpCmdLine,int nCmdShow){// TODO: Place code here.MSG msg;HACCEL hAccelTable;if (FAILED(DirectDrawCreateEx(NULL, (void **)&lpdd7, IID_IDirectDraw7, NULL))){exit(1);}if (FAILED(lpdd7->SetCooperativeLevel(hwnd,, DDSCL_NORMAL))){exit(1);}// Initialize global stringsLoadString(hInstance, IDS_APP_TITLE, szTitle, MAX_LOADSTRING);LoadString(hInstance, IDC_MUSHROOMHUNTER, szWindowClass, MAX_LOADSTRING);MyRegisterClass(hInstance);// Perform application initialization:if (!InitInstance (hInstance, nCmdShow)) {return FALSE;}hAccelTable = LoadAccelerators(hInstance, (LPCTSTR)IDC_MUSHROOMHUNTER);// Main message loop:while (GetMessage(&msg, NULL, 0, 0)) {if (!TranslateAccelerator(msg.hwnd, hAccelTable, &msg)) {TranslateMessage(&msg);DispatchMessage(&msg);}}return (int) msg.wParam;}//// FUNCTION: MyRegisterClass()//// PURPOSE: Registers the window class.//// COMMENTS://// This function and its usage are only necessary if you want this code// to be compatible with Win32 systems prior to the 'RegisterClassEx'// function that was added to Windows 95. It is important to call this function// so that the application will get 'well formed' small icons associated// with it.//ATOM MyRegisterClass(HINSTANCE hInstance){WNDCLASSEX wcex;wcex.cbSize = sizeof(WNDCLASSEX); wcex.style = CS_HREDRAW | CS_VREDRAW;wcex.lpfnWndProc = (WNDPROC)WndProc;wcex.cbClsExtra = 0;wcex.cbWndExtra = 0;wcex.hInstance = hInstance;wcex.hIcon = LoadIcon(hInstance, (LPCTSTR)IDI_MUSHROOMHUNTER);wcex.hCursor = LoadCursor(NULL, IDC_ARROW);wcex.hbrBackground = (HBRUSH)(COLOR_WINDOW+1);wcex.lpszMenuName = (LPCTSTR)IDC_MUSHROOMHUNTER;wcex.lpszClassName = szWindowClass;wcex.hIconSm = LoadIcon(wcex.hInstance, (LPCTSTR)IDI_SMALL);
2008年02月06日 17点02分 6
level 6
楼上这是……?
2008年02月08日 11点02分 8
level 6
是根据 “Can't startup DirectDraw” google 楼主慢慢看啊 看完可以考4级英语了
2008年02月09日 08点02分 9
level 6
我估计...看完绝对能考出C语言...
2008年02月09日 15点02分 10
level 6
没关系 慢慢学 一天一句
2008年02月10日 12点02分 11
level 0
同样问题啊.出城就错误另外1.3全屏方法是.CD2复制到游戏目录.打免CD补丁就可以了
2008年02月13日 12点02分 12
1