garippe

Members
  • Content count

    3
  • Joined

  • Last visited

Community Reputation

122 Neutral

About garippe

  • Rank
    Newbie
  1. yes that works. thank you very much deviangel
  2. Warnings have gone but still i have run time error :( : "The application failed to initialize properly (0xc01500002)."
  3. i a new in allegro programming, i install the allegro and compile the code below, compiling was succeeded,but i had 10 warning and so my program crash when i executed it. The crash message was : "The application failed to initialize properly (0xc01500002)." my program code is: /* Displaying a bitmap on the screen. */ #include <allegro.h> int main( void ) { BITMAP *bmp; /* pointer to the bitmap */ allegro_init(); /* initialize Allegro */ install_keyboard(); /* allow Allegro to recieve keyboard input */ set_color_depth( 16 ); /* set the color depth to 16-bit */ set_gfx_mode( GFX_AUTODETECT, 640, 480, 0, 0 ); /* set graphics mode */ bmp = load_bitmap( "picture.bmp", NULL ); /* load the bitmap file */ blit( bmp, screen, 0, 0, 0, 0, bmp->w, bmp->h ); /* draw the bitmap */ readkey(); /* wait for a keypress */ destroy_bitmap( bmp ); /* free the memory allocated to bmp */ return 0; } /* end function main */ END_OF_MAIN() /* Allegro-specific macro */ Warnings are: ------ Build started: Project: alleggro, Configuration: Debug Win32 ------ Compiling... all.cpp d:\program files\vc\include\allegro\internal\alconfig.h(397) : warning C4312: 'type cast' : conversion from 'unsigned int' to 'unsigned char *' of greater size d:\program files\vc\include\allegro\internal\alconfig.h(404) : warning C4312: 'type cast' : conversion from 'unsigned int' to 'unsigned char *' of greater size d:\program files\vc\include\allegro\inline\draw.inl(421) : warning C4312: 'type cast' : conversion from 'unsigned int' to 'unsigned char *' of greater size d:\program files\vc\include\allegro\inline\draw.inl(435) : warning C4312: 'type cast' : conversion from 'unsigned int' to 'unsigned char *' of greater size d:\program files\vc\include\allegro\inline\draw.inl(446) : warning C4312: 'type cast' : conversion from 'unsigned int' to 'unsigned short *' of greater size d:\program files\vc\include\allegro\inline\draw.inl(460) : warning C4312: 'type cast' : conversion from 'unsigned int' to 'unsigned short *' of greater size d:\program files\vc\include\allegro\inline\draw.inl(471) : warning C4312: 'type cast' : conversion from 'unsigned int' to 'unsigned short *' of greater size d:\program files\vc\include\allegro\inline\draw.inl(485) : warning C4312: 'type cast' : conversion from 'unsigned int' to 'unsigned short *' of greater size d:\program files\vc\include\allegro\inline\draw.inl(521) : warning C4312: 'type cast' : conversion from 'unsigned int' to 'unsigned int *' of greater size d:\program files\vc\include\allegro\inline\draw.inl(535) : warning C4312: 'type cast' : conversion from 'unsigned int' to 'unsigned int *' of greater size Linking... Embedding manifest... Build log was saved at "file://c:\Documents and Settings\garippe\My Documents\Visual Studio\Projects\directory\Debug\BuildLog.htm" alleggro - 0 error(s), 10 warning(s) i have a headache.. i hope your help...