This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project version="4"> | |
<component name="Encoding" useUTFGuessing="true" native2AsciiForPropertiesFiles="false" /> | |
</project> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
typedef void(*PenConnectFun)(unsigned long long time, const char* penSerial, int penType); | |
typedef void(*PenDisconnectFun)(unsigned long long time, const char* penSerial, int penType); | |
typedef void(*PenUpFun)(unsigned long long time, const char* penSerial, int penType); | |
typedef void(*PenDownFun)(unsigned long long time, const char* penSerial, int penType); | |
typedef void(*PenErrorFun)(unsigned long long time, const char* penSerial, int penType); | |
typedef void(*PenBatteryCriticalFun)(unsigned long long time, const char* penSerial, int penType); | |
typedef void(*PenBatteryWarningFun)(unsigned long long time, const char* penSerial, int penType); | |
typedef void(*PenInfoFun)(unsigned long long time, const char* penSerial, int penType, const char* productName, const char* btAddr, const char* sw, const char* hw, unsigned short pid, unsigned short vid); | |
typedef void(*PenCoordinateFun)(unsigned long long time, const char* penSerial, int penType, const char* pageSerial, unsigned long long pageId, int nx, int ny, unsign |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CString cs; | |
CT2CA pszConvertedAnsiString (cs); | |
std::string s(pszConvertedAnsiString); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://study.marearts.com/2017/01/get-mac-address-in-mfc.html | |
CString GetMACAddress() | |
{ | |
CString strGateWay = _T(""); | |
CString strMACAddress = _T(""); | |
IP_ADAPTER_INFO ipAdapterInfo[5]; | |
DWORD dwBuflen = sizeof(ipAdapterInfo); | |
DWORD dwStatus = GetAdaptersInfo(ipAdapterInfo, &dwBuflen); | |
if (dwStatus != ERROR_SUCCESS) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://study.marearts.com/2017/01/get-mac-address-in-mfc.html | |
CString GetMacAddressbyIP(CString strIP) | |
{ | |
NCB Ncb; | |
UCHAR uRetCode; | |
LANA_ENUM lenum; | |
int i; | |
CString strOutput = _T(""); | |
CString string; | |
ADAPTER_STATUS Adapter; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://study.marearts.com/2017/01/unicode-cstring-convert-to-char.html | |
char * WtoC(CString str) | |
{ | |
//CString str; //형변환할 문자열이 저장된 CString 변수 | |
wchar_t* wchar_str; //첫번째 단계(CString to wchar_t*)를 위한 변수 | |
char* char_str; //char* 형의 변수 | |
int char_str_len; //char* 형 변수의 길이를 위한 변수 | |
//1. CString to wchar_t* conversion | |
wchar_str = str.GetBuffer(str.GetLength()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://study.marearts.com/2017/01/mfc-encode-decode-example-souce-code.html | |
bool Decode() | |
{ | |
BYTE *bBuff; | |
DWORD dwFileLen; | |
CString csFile; | |
FILE *pFile; | |
// 암호화된 파일 저장하기 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://study.marearts.com/2017/01/mfc-encode-decode-example-souce-code.html | |
bool CEPenService_PenCommunicatorDlg::Encode(CString id, CString pass, CString mac) | |
{ | |
//char *bBuff; | |
CString csFile; | |
FILE *pFile; | |
char bBuff[100]; | |
char * cid = WtoC(id); | |
char * cpass = WtoC(pass); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://study.marearts.com/2017/01/in-mfc-file-exist-check-and-delete-file.html | |
#include "afx.h" | |
CFileStatus fs; | |
if (CFile::GetStatus(_T("AutoLogIn.CPR"), fs)) | |
{ | |
::DeleteFile(_T("AutoLogIn.CPR") ); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://study.marearts.com/2017/01/qstring-to-string-string-to-qstring.html | |
//string to QString | |
QString str = QString::fromUtf8(content.c_str()); | |
//Qstring to string | |
string str = QString.toUtf8().constData(); | |
OlderNewer