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
#include "SingleInstance.h" | |
// | |
CSingleInstance::CSingleInstance(TCHAR* pMutexName) | |
{ | |
this->m_hMutex = CreateMutex(NULL, FALSE, pMutexName); | |
this->m_bExist = (ERROR_ALREADY_EXISTS == GetLastError())?TRUE:FALSE; | |
} | |
CSingleInstance::CSingleInstance(const CSingleInstance& instance) | |
{ | |
if (this == &instance) |
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
#include "WindowPosition.h" | |
// | |
CWndPos::CWndPos() | |
{ | |
InitStruct(&this->m_pos, SWndPos); | |
InitStruct(&this->m_wndSize, SWndSize); | |
this->m_sysSize.width = GetSystemMetrics(SM_CXSCREEN); | |
this->m_sysSize.height = GetSystemMetrics(SM_CYSCREEN); | |
} | |
CWndPos::CWndPos(HWND hWnd) |
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
#ifndef _INITSTRUCT_H_ | |
#define _INITSTRUCT_H_ | |
// | |
// initialize struct | |
#define InitStruct(s, t) memset((void*) s, 0x0, sizeof(t)) | |
// | |
// copy struct | |
#define CopyStruct(s_dst, s_src, t) memcpy((void*) s_dst, (void*) s_src, sizeof(t)) | |
// | |
#endif |
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
#include "WinMainCmdline.h" | |
// | |
CCmdLine::CCmdLine() | |
{ | |
this->m_lpCmdLine = NULL; | |
} | |
CCmdLine::CCmdLine(const CCmdLine& cl) | |
{ | |
unsigned int nBufferSize = 0; | |
this->m_lpCmdLine = NULL; |
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
#include "SingleInstance.h" | |
// | |
CSingleInstance::CSingleInstance(TCHAR* pMutexName) | |
{ | |
this->m_hMutex = CreateMutex(NULL, FALSE, pMutexName); | |
this->m_bExist = (ERROR_ALREADY_EXISTS == GetLastError())?TRUE:FALSE; | |
} | |
CSingleInstance::CSingleInstance(const CSingleInstance& instance) | |
{ | |
if (this == &instance) |
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"?> | |
<urlset | |
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> | |
<!-- created with Free Online Sitemap Generator www.xml-sitemaps.com --> |
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
#include <iostream> | |
#include <limits> | |
#define STUDENTNUMBER 8 | |
#define STUDENTDATA 4 | |
void ScoreInput(int a[][STUDENTDATA]); | |
void ScorePrint(int a[][STUDENTDATA]); | |
void ScoreSorting(int a[][STUDENTDATA], int f); | |
using std::cin; | |
using std::cout; | |
using std::endl; |
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
正在比較檔案 AAEngine_Default.ini 和 AAENGINE_UPDATED.INI | |
***** AAEngine_Default.ini | |
BuildingQuadStaticMeshName=EngineBuildings.BuildingQuadMesh | |
ProcBuildingLODColorTexelsPerWorldUnit=0.075 | |
ProcBuildingLODLightingTexelsPerWorldUnit=0.015 | |
MaxProcBuildingLODColorTextureSize=1024 | |
***** AAENGINE_UPDATED.INI | |
BuildingQuadStaticMeshName=EngineBuildings.BuildingQuadMesh | |
ProcBuildingLODColorTexelsPerWorldUnit=0.075000 | |
ProcBuildingLODLightingTexelsPerWorldUnit=0.015000 |
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
#include "w32socket.h" | |
#include <iostream> | |
#include <Windows.h> | |
// | |
int main(int argc, char* argv[]) | |
{ | |
char domain[] = "localhost"; | |
char ip[] = "127.0.0.1"; | |
char request[] = "from server\n"; | |
char buffer[BUF_SIZE]; |
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
#include "w32socket.h" | |
#include <iostream> | |
#include <Windows.h> | |
// | |
int main(int argc, char* argv[]) | |
{ | |
char domain[] = "localhost"; | |
char ip[] = "127.0.0.1"; | |
char request[] = "from client\n"; | |
char buffer[BUF_SIZE]; |