Skip to content

Commit

Permalink
Add project files.
Browse files Browse the repository at this point in the history
  • Loading branch information
David-FromVS authored and David-FromVS committed Sep 19, 2020
1 parent 50240fb commit c8dd3e6
Show file tree
Hide file tree
Showing 14 changed files with 1,310 additions and 0 deletions.
8 changes: 8 additions & 0 deletions StdAfx.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// stdafx.cpp : source file that includes just the standard includes
// UTF8Conv.pch will be the pre-compiled header
// stdafx.obj will contain the pre-compiled type information

#include "stdafx.h"



26 changes: 26 additions & 0 deletions StdAfx.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//

#if !defined(AFX_STDAFX_H__738621FE_FCE3_4198_BC12_F3084DC75CAA__INCLUDED_)
#define AFX_STDAFX_H__738621FE_FCE3_4198_BC12_F3084DC75CAA__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers

#include <afxwin.h> // MFC core and standard components
#include <afxext.h> // MFC extensions
#include <afxdtctl.h> // MFC support for Internet Explorer 4 Common Controls
#ifndef _AFX_NO_AFXCMN_SUPPORT
#include <afxcmn.h> // MFC support for Windows Common Controls
#endif // _AFX_NO_AFXCMN_SUPPORT


//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_STDAFX_H__738621FE_FCE3_4198_BC12_F3084DC75CAA__INCLUDED_)
77 changes: 77 additions & 0 deletions UTF8Conv.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
// UTF8Conv.cpp : Defines the class behaviors for the application.
//

#include "stdafx.h"
#include <commctrl.h>
#include "UTF8Conv.h"
#include "UTF8ConvDlg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

#if defined(_M_IA64)
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='ia64' publicKeyToken='6595b64144ccf1df' language='*'\"")
#else
#if defined(_M_X64)
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'\"")
#else
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"")
#endif
#endif

/////////////////////////////////////////////////////////////////////////////
// CUTF8ConvApp

BEGIN_MESSAGE_MAP(CUTF8ConvApp, CWinApp)
//{{AFX_MSG_MAP(CUTF8ConvApp)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG
ON_COMMAND(ID_HELP, CWinApp::OnHelp)
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CUTF8ConvApp construction

CUTF8ConvApp::CUTF8ConvApp()
{
// TODO: add construction code here,
// Place all significant initialization in InitInstance
}

/////////////////////////////////////////////////////////////////////////////
// The one and only CUTF8ConvApp object

CUTF8ConvApp theApp;

/////////////////////////////////////////////////////////////////////////////
// CUTF8ConvApp initialization

BOOL CUTF8ConvApp::InitInstance()
{
const INITCOMMONCONTROLSEX iccex{ sizeof( iccex ), ICC_LINK_CLASS };

if ( InitCommonControlsEx( &iccex ) )
{
CUTF8ConvDlg dlg;
m_pMainWnd = &dlg;
int 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;
}
49 changes: 49 additions & 0 deletions UTF8Conv.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
// UTF8Conv.h : main header file for the UTF8CONV application
//

#if !defined(AFX_UTF8CONV_H__BA5C5808_95EE_4F29_A50A_1F95705DFE32__INCLUDED_)
#define AFX_UTF8CONV_H__BA5C5808_95EE_4F29_A50A_1F95705DFE32__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#ifndef __AFXWIN_H__
#error include 'stdafx.h' before including this file for PCH
#endif

#include "resource.h" // main symbols

/////////////////////////////////////////////////////////////////////////////
// CUTF8ConvApp:
// See UTF8Conv.cpp for the implementation of this class
//

class CUTF8ConvApp : public CWinApp
{
public:
CUTF8ConvApp();

// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CUTF8ConvApp)
public:
virtual BOOL InitInstance();
//}}AFX_VIRTUAL

// Implementation

//{{AFX_MSG(CUTF8ConvApp)
// NOTE - the ClassWizard will add and remove member functions here.
// DO NOT EDIT what you see in these blocks of generated code !
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};


/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_UTF8CONV_H__BA5C5808_95EE_4F29_A50A_1F95705DFE32__INCLUDED_)
Loading

0 comments on commit c8dd3e6

Please sign in to comment.