Waitrud Weber’s blog

things and reminders for memories

2020-05-30から1日間の記事一覧

3d: WindowsAPI: Windows-make: How do we face memories problem: we can cast ASCII to LPSTR:

We can cast ASCII to LPSTR: --- --- --- .\wButton.cpp Sat May 30 19:22:12 2020 60 : 61 :int wButton::drawButton( HDC hdc ) { 62 : 63 : RECT rect; 64 : //SetTextColor( hdc, RGB(0 ,0, 255)); 65 : //Rectangle( hdc, rect->left, rect->top, rect…

3d: WindowsAPI: Windows-make: How do we face memories problem: ASCII can't be casted to the LPSTR:

We cast LPSTR buffer to LPWSTR and cannnot cast ASCII to LPSATR: So, we may use wsprintf or like that. --- .\wButton.cpp Sat May 30 15:17:17 2020 78 : 79 : Rectangle( hdc, rect.left, rect.top, rect.right, rect.bottom ); 80 :// DrawText( hd…

3d: WindowsAPI: Windows-make: String problem: All characters were English, so, ASCII: The answer is L + "Const Character":

--- (20200530: ) The answer is L + "Const Character": --- --- --- --- ---