Checking for existence: C:\Users\Ceset\Desktop\MC\Mini Commandos\bin\Debug\Mini Commandos.exe
Executing: "C:\Users\Ceset\Desktop\MC\Mini Commandos\bin\Debug\Mini Commandos.exe" (in C:\Users\Ceset\Desktop\MC\Mini Commandos\.)
Process terminated with status 0 (0 minutes, 2 seconds)
well Lumpkin a windows opens but a black window shows up. not all my screen. sorry for the misunderstanding
coder777 when i removed the static it gives me cannot call member function without object error.
and when i put bg anywhere else from there. it gives me multiple definiton error. and funnily i dont know how to define it inside class{}; in the header file.
and the third thing u said made me freak out. how can i make bg pass trough the function if i dont have Name?? a further explaination and some example would be nice thx in advance EDIT: i have did some tests problem does seem like it is load func like coder777 said. couse display do shown on the window
first of all i realized a few things. my load function is totally idiotic. dont know what was i thinking. secondly i dont know what would i do if someone were to ask me to help something this idiotic.
so thx everyone for patience. especially both of u
#ifdef __cplusplus
#include <cstdlib>
#else
#include <stdlib.h>
#endif
#include <SDL/SDL.h>
#include "include/image.h" // Note!
#include "include/MC_GLoop.h"
#include "include/MC_FuncsA_GLoop.h"
SDL_Surface* Display = NULL; // This is the gobal Display (kind of constant)
// it is used by image. Other than that image has nothing to do with it
int main ( int argc, char** argv )
{
// The following are once in a lifetime of the program. So it makes sense to put them at the very beginning of the program.
//--------------------------
int MCWidth = 640;
int MCHeight = 480;
int MCBpp = 32;
//--------------------------
if(SDL_Init(SDL_INIT_EVERYTHING) < 0){return 1;}
Display = SDL_SetVideoMode(MCWidth, MCHeight, MCBpp, SDL_HWSURFACE|SDL_DOUBLEBUF);
// Now we want the image
CImage image;
if(image.Load("gfx\\bg.bmp") == false)return 1;
image.Blit();
SDL_Delay(2000);
return 0;
}