いつもありがとうございます
元のプログラムが大きいので、恐らくアクセス違反の原因と思われる
文字化けの部分だけを抜き出しました
下を各バージョンのDXライブラリで実行すると・・・
20210928版だと上に「abcde」、下に文字化けした文字
20210502版だと両方文字化けせず「abcde」になります
DX_CHARCODEFORMAT_UTF8にしていますが、しなくても文字化けするようです
宜しくお願いいたします<(_ _)>
-----------------------------------------------------------------
#include "DxLib.h"
#include <locale.h>
int WINAPI wWinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLine, int nCmdShow )
{
setlocale( LC_ALL, ".utf8" );
SetUseCharCodeFormat( DX_CHARCODEFORMAT_UTF8 );
ChangeWindowMode(1);
DxLib_Init();
int fon=CreateFontToHandle(u8"MS ゴシック",38,9,(0x02),0);
int col=GetColor(255,255,255);
while( 1 )
{
ProcessMessage();
ClearDrawScreen();
if(GetWindowUserCloseFlag(TRUE)){break;}
DrawFormatString( 50,100,col,u8"abcde",0 );
DrawStringToHandle(50,200,u8"abcde",col,fon);
ScreenFlip();
}
DxLib_End();
return 0;
}