   Debuging and exception handlng
  Can anyone explain how to fixthis:Unhandled exception at 0x77d47291 in bounc''e ball.exe: 0xC0000005: Access violation writing location 0x00000000. 
  Well I can''t fix it without some source code, but I can tell you your problem.  You created a pointer and then set it to NULL.  Thne you tried to write something to it.  This won''t work, before you can write to a pointer you have to give it some memory to point to.Two ways:int* px;int x;px = &xOR:int* px = new int();Then write to the pointer. ;  LoadString(hInst, 0, 0, MAX_LOADSTRING) ; ;  If you don''t assign a buffer for the string to be loaded into, how do you expect to use the string? In other words: why the heck are you using 0 as the third parameter to LoadString()? ;  it gives me this error:c:\Documents and Settings\Randle\My Documents\Visual Studio Projects\bounc''e ball\bb.cpp(195): error C2664: ''LoadStringA'' : cannot convert parameter 3 from ''int'' to ''LPSTR'';  because parameter must be a LPSTR, which is a pointer to a string ;  so...what do I have to do to fix ti ,because I don''t understand. ;  LPSTR is a char *, so://either do this:char * buffer = new char[bufferSize];//or do this:char buffer[BUFER_SIZE];//then:LoadString(hInst, 0, buffer, MAX_LOADSTRING);    i believe that the MAX_LOADSTRING should be replaced with the actual size of your buffer or you'll get buffer overrun errors later on.  I apologize if leaving the 2nd param as NULL also causes errors, i've never used the LoadString method before.and also, at the risk of pissing you off (aka i'm going to give advice now)... I'd really suggest not working with the WIN32 API until you have a solid understanding of standard C/C++.  If you don't know what a char* is, or know how to interpret runtime exceptions or use a debugger your world is going to be a nightmare working with the WIN32 api.  It's not very clearly written (IMHO) and you'll get really pissed off and frustrated without solid fundimentals.  That said, you'll obviously do what you please, but you'll be happier in WIN32 with a really solid understanding of programming basics.-me   [edited by - Palidine on February 16, 2004 9:35:30 PM];  thanks you da man! ;  you know that you have to call "delete[] buffer" when you are done using the buffer right (in the case that you've used "new buffer[x]"?  otherwise you'll have massive memory leaks all over the place.-me   [edited by - Palidine on February 17, 2004 9:00:40 PM]