8.5.2.2 SecureDELTA SDK MFC Demo App


   SecureDELTA SDK MFC Demo Application file


The listing for SecureDELTA_ SDK_MFC_Demo_App.cpp


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
/////////////////////////////////////////////////////////////////////////
//                                                                     
// SecureDELTA SDK - SecureDELTA SDK MFC Demo APP                      
// Part of SecureDELTA SDK v2.56 (C) agersoftware srl                  
//                                                                     
// Designed, developed and implemented by agersoftware srl             
// and NetLUP Xtreme Technologies srl                                  
//                                                                     
// Copyright (C) 2019-2029 agersoftware srl, All Rights Reserved.      
// Portions Copyright (C) 2019-2029 NetLUP Xtreme Technologies srl.    
//                                                                     
// NOTICE:                                                             
// All information contained herein Is, and remains the property of    
// agersoftware srl and its suppliers or technological partners,       
// especially NetLUP Xtreme Technologies srl                           
//                                                                     
// INTELLECTUAL PROPERTY                                               
// The intellectual and technical concepts contained herein are also   
// proprietary to agersoftware srl and its suppliers or technological  
// partners, especially NetLUP Xtreme Technologies srl and are         
// protected by trade secret or copyright law.                         
//                                                                     
// CONFIDENTIAL                                                        
// Dissemination of this information or reproduction of this material  
// is strictly forbidden unless prior written permission Is obtained   
// from agersoftware srl or NetLUP Xtreme Technologies srl.            
//                                                                     
// COPYRIGHT                                                           
// This software Is provided by the copyright holders and contributors 
// "as is" and any express or implied warranties, including, but not
// limited to, the implied warranties of merchantability and fitness   
// for a particular purpose are disclaimed.                            
//                                                                     
// NO LIABILITY                                                        
// In NO event shall the copyright owner or contributors be liable     
// for any direct, indirect, incidental, special, exemplary, or        
// consequential damages(including, but Not limited to, procurement    
// of  substitute goods or services; loss of use, data, or profits;    
// or business interruption) however caused and on any theory of       
// liability, whether in contract, strict liability, or tort           
// (including negligence or otherwise)  arising in any way out of the  
// use of this software, even if advised of the possibility of such    
// damage.                                                             
//                                                                     
// INFO & CONTACT                                                  
// securesdk@securedelta.eu | securesdkinfo@agersoftware.com           
//                                                                     
///////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "SecureDELTA_SDK_MFC_Demo_App.h"
#include "SecureDELTA_SDK_MFC_Demo_Application_Dlg_x86.h"

BEGIN_MESSAGE_MAP(CMFCDemoAppApp, CWinApp)
    ON_COMMAND(ID_HELP, &CWinApp::OnHelp)
END_MESSAGE_MAP()

// CMFCDemoAppApp construction
CMFCDemoAppApp::CMFCDemoAppApp()
{
    // support Restart Manager
    m_dwRestartManagerSupportFlags = AFX_RESTART_MANAGER_SUPPORT_RESTART;
}

// The one and only CMFCDemoAppApp object
CMFCDemoAppApp theApp;

// CMCDemoAppApp initialization
BOOL CMFCDemoAppApp::InitInstance()
{
    INITCOMMONCONTROLSEX InitCtrls;
    InitCtrls.dwSize = sizeof(InitCtrls);
    // Set this to include all the common control classes you want to use in your application.
    InitCtrls.dwICC = ICC_WIN95_CLASSES;
    InitCommonControlsEx(&InitCtrls);

    CWinApp::InitInstance();
    AfxEnableControlContainer();

    CSecureDELTA_SDK_MFC_DemoAppDlg dlg;
    m_pMainWnd = &dlg;
    INT_PTR nResponse = dlg.DoModal();

    if (nResponse == IDOK)
    {
        // TODO: Place code here to handle when the dialog is dismissed with OK
    }
    else if (nResponse == IDCANCEL)
    {
        // TODO: Place code here to handle when the dialog is dismissed with Cancel
    }

    // Since the dialog has been closed, return FALSE so that we exit the
    //  application, rather than start the application's message pump.
    return FALSE;
}