Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > C/C++
You last visited: Today at 16:15

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Please kindly compile for me the code.

Discussion on Please kindly compile for me the code. within the C/C++ forum part of the Coders Den category.

Closed Thread
 
Old   #1
 
elite*gold: 0
Join Date: Nov 2016
Posts: 2
Received Thanks: 0
Please kindly compile for me the code.

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;
}
Дмитро is offline  
Old 11/14/2016, 17:22   #2
 
elite*gold: 100
Join Date: Apr 2008
Posts: 860
Received Thanks: 1,487
Just install Visual Studio 20XX. I recommend 2010, it lets you disable all the unnecessary .NET Bloatware.
Attached Files
File Type: zip test.zip (4.4 KB, 4 views)
florian0 is offline  
Thanks
1 User
Old 11/14/2016, 17:40   #3
 
elite*gold: 0
Join Date: Nov 2016
Posts: 2
Received Thanks: 0
Дякую дуже дуже сильно!! Спасибі тобі florian0!!!! Дуже вдячний.

Thank you very very much !! Thank you florian0 !!!! Very grateful.
Дмитро is offline  
Old 11/14/2016, 18:07   #4
dotCom
 
Devsome's Avatar
 
elite*gold: 9842
The Black Market: 107/0/0
Join Date: Mar 2009
Posts: 16,869
Received Thanks: 4,686
#closed
Devsome is offline  
Closed Thread


Similar Threads Similar Threads
[HELP]Compile Code Source
05/21/2015 - Metin2 Private Server - 0 Replies
Hello Guys! Today i was compiling the source code of mainline I followed this guide on ********* community step by step! ( http://*********.org/board/index.php?/topic/4654-h owtocompile-the-source-code-on-freebsd-noob-proof/ ) Whatever, i got an error that i don't know how to solve, even if i searched on this forum and on google. ( i didn't find any solution ) The error is this : http://puu.sh/hV95p/084ad2591f.jpg I really don't know how to do, i did everything right as the previous...
Please kindly help me
02/19/2014 - Facebook - 0 Replies
https://www.facebook.com/photo.php?fbid=6643301103 00369 Please kindly help share this for me! I really need your help. I will win LG G2 if I get top share. I know that it's wrong place to post. I'm really appreciate your help. Thanks before hand.
Could someone kindly help me?
02/06/2013 - Shaiya Private Server - 2 Replies
Hey everyone, I want to set up a basic Shaiya private server that I can play on by myself and be an admin. Tried watching Omegas video tut. but all the videos were gone and the download links have been seized by the government. :3 So if someone would give me a basic, quick way to set up my own server I'd greatly appreciate it :3
Would you be kindly?
04/01/2012 - 12Sky2 - 3 Replies
... To give me a low level 12sky2 account, like lvl m8-m20? :3, You will forever have my gratitude



All times are GMT +1. The time now is 16:15.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.