Windows::Forms::TextRenderer::DrawText(gT, numTo100, sfo, Rectangle(2, 2, 12, 12), SystemColors::ControlText);
エラーを出している
1>エラーC2665:'System :: Windows :: Forms :: TextRenderer :: DrawText':8つのオーバーロードのいずれもすべての引数タイプを変換できませんでした
1>は'voidSystem :: Windows :: Forms :: TextRenderer :: DrawText(System :: Drawing :: IDeviceContext ^、System :: String ^、System :: Drawing :: Font ^、System :: Drawing :: Point、System :: Drawing :: Color) '
1>または'voidSystem :: Windows :: Forms :: TextRenderer :: DrawText(System :: Drawing :: IDeviceContext ^、System :: String ^、System :: Drawing :: Font ^、System :: Drawing :: Rectangle 、System :: Drawing :: Color) '
行を失ってもエラーは発生しません。Pointで別の方法で試しましたが、他のプロジェクトでは正常に機能していました。どんなアイデアでもありがたいです、ありがとう。
編集 ここに関連する前の行、FWIWがあります。
System::Drawing::Font sfo(FontFamily::GenericSansSerif, 8.0F, FontStyle::Bold);