2014-02-15から1日間の記事一覧

cygwin64でwindowsネイティブアプリ

ソースコード cygwin64でMessageBoxの文字化け回避 - プログラミングのメモ $ PATH=$PATH:/usr/x86_64-w64-mingw32/sys-root/mingw/bin $ x86_64-w64-mingw32-g++ -DUNICODE -std=c++11 -mwindows -Wall test.cpp -o sample.exe $ ldd sample.exe ntdll.dll …

cygwin64でMessageBoxの文字化け回避

#include <windows.h> // fileencoding=utf-8 // fileformat=utf-8 int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { // 成功 //LPCWSTR s = L"あいうえお"; // 成功 //WCHAR s[] = L"あいうえお"; //WCHAR const </windows.h>…