Please kindly compile for me the code.

11/14/2016 17:12 Дмитро#1
Good day! Please kindly compile for me the code. I beg you will get ekzeshny file, put it here. Thank you all good thanks. :)

Code:
// exceptions_try_except_Statement.cpp
// Пример try-except и try-finally 
#include <iostream>
#include <windows.h> // для EXCEPTION_ACCESS_VIOLATION
using std::cout;
using std::endl;
// функция-филтр
int filter(unsigned int code, struct _EXCEPTION_POINTERS *ep) {
   cout<<"in filter."<< endl;
   if (code == EXCEPTION_ACCESS_VIOLATION) {
      cout<<"caught AV as expected."<<endl;
      return EXCEPTION_EXECUTE_HANDLER;    // если авария
   }
   else {
      cout<<"didn't catch AV, unexpected."<< endl;
      return EXCEPTION_CONTINUE_SEARCH;    // если нет аварии
   };
}
int main()
{   int* p = 0x00000000;                   // специально нулевой указатель
   cout<<"hello"<< endl;
   __try{
      cout<<"in try 1"<< endl;
      __try{
         cout<<"in try 2"<< endl;
         *p = 13;                          // access violation 
      }__finally{
         cout<<"in finally. termination: "<< endl;
         cout<<(AbnormalTermination() ? "\tabnormal" : "\tnormal")<< endl;
      }
   }__except(filter(GetExceptionCode(), GetExceptionInformation())){
      cout<<"in except"<< endl;
   }
   cout<<"world"<< endl;
}
11/14/2016 17:22 florian0#2
Just install Visual Studio 20XX. I recommend 2010, it lets you disable all the unnecessary .NET Bloatware.
11/14/2016 17:40 Дмитро#3
Дякую дуже дуже сильно!! Спасибі тобі florian0!!!! Дуже вдячний.

Thank you very very much !! Thank you florian0 !!!! Very grateful.
11/14/2016 18:07 Devsome#4
#closed