/[rtss_sdk]/trunk/Samples/SharedMemory/RTSSSharedMemorySample/RTSSSharedMemorySample.cpp
ViewVC logotype

Contents of /trunk/Samples/SharedMemory/RTSSSharedMemorySample/RTSSSharedMemorySample.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (show annotations) (download)
Fri Aug 8 11:41:35 2014 UTC (5 years, 4 months ago) by william
File size: 2767 byte(s)
initial commit of RTSS SDK (from 6.1.0.7305)
Available from: http://www.guru3d.com/files-details/rtss-rivatuner-statistics-server-download.html
1 // RTSSSharedMemorySample.cpp : Defines the class behaviors for the application.
2 //
3 // created by Unwinder
4 /////////////////////////////////////////////////////////////////////////////
5 #include "stdafx.h"
6 #include "RTSSSharedMemorySample.h"
7 #include "RTSSSharedMemorySampleDlg.h"
8 /////////////////////////////////////////////////////////////////////////////
9 #ifdef _DEBUG
10 #define new DEBUG_NEW
11 #undef THIS_FILE
12 static char THIS_FILE[] = __FILE__;
13 #endif
14 /////////////////////////////////////////////////////////////////////////////
15 // CRTSSSharedMemorySampleApp
16 /////////////////////////////////////////////////////////////////////////////
17 BEGIN_MESSAGE_MAP(CRTSSSharedMemorySampleApp, CWinApp)
18 //{{AFX_MSG_MAP(CRTSSSharedMemorySampleApp)
19 // NOTE - the ClassWizard will add and remove mapping macros here.
20 // DO NOT EDIT what you see in these blocks of generated code!
21 //}}AFX_MSG
22 ON_COMMAND(ID_HELP, CWinApp::OnHelp)
23 END_MESSAGE_MAP()
24 /////////////////////////////////////////////////////////////////////////////
25 // CRTSSSharedMemorySampleApp construction
26 /////////////////////////////////////////////////////////////////////////////
27 CRTSSSharedMemorySampleApp::CRTSSSharedMemorySampleApp()
28 {
29 // TODO: add construction code here,
30 // Place all significant initialization in InitInstance
31 }
32 /////////////////////////////////////////////////////////////////////////////
33 // The one and only CRTSSSharedMemorySampleApp object
34 /////////////////////////////////////////////////////////////////////////////
35 CRTSSSharedMemorySampleApp theApp;
36 /////////////////////////////////////////////////////////////////////////////
37 // CRTSSSharedMemorySampleApp initialization
38
39 BOOL CRTSSSharedMemorySampleApp::InitInstance()
40 {
41 AfxEnableControlContainer();
42
43 // Standard initialization
44 // If you are not using these features and wish to reduce the size
45 // of your final executable, you should remove from the following
46 // the specific initialization routines you do not need.
47
48 #ifdef _AFXDLL
49 Enable3dControls(); // Call this when using MFC in a shared DLL
50 #else
51 Enable3dControlsStatic(); // Call this when linking to MFC statically
52 #endif
53
54 CRTSSSharedMemorySampleDlg dlg;
55 m_pMainWnd = &dlg;
56 int nResponse = dlg.DoModal();
57 if (nResponse == IDOK)
58 {
59 // TODO: Place code here to handle when the dialog is
60 // dismissed with OK
61 }
62 else if (nResponse == IDCANCEL)
63 {
64 // TODO: Place code here to handle when the dialog is
65 // dismissed with Cancel
66 }
67
68 // Since the dialog has been closed, return FALSE so that we exit the
69 // application, rather than start the application's message pump.
70 return FALSE;
71 }
72 /////////////////////////////////////////////////////////////////////////////

  ViewVC Help
Powered by ViewVC 1.1.22