mirror of
https://github.com/staxrip/staxrip.git
synced 2026-10-17 05:31:10 +08:00
23 lines
477 B
C++
23 lines
477 B
C++
|
|
#pragma once
|
|
|
|
#define WIN32_LEAN_AND_MEAN
|
|
|
|
#include <Windows.h>
|
|
|
|
#include <string>
|
|
#include <stdexcept>
|
|
|
|
///////////////////// convert strings
|
|
|
|
std::string ConvertWideToANSI(const std::wstring& wstr);
|
|
std::wstring ConvertAnsiToWide(const std::string& str);
|
|
|
|
std::string ConvertWideToUtf8(const std::wstring& wstr);
|
|
std::wstring ConvertUtf8ToWide(const std::string& str);
|
|
|
|
////////////////////// misc
|
|
|
|
std::string GetWinErrorMessage(int id);
|
|
bool FileExists(LPCWSTR szPath);
|