問題タブ [winmain]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
1 に答える
122 参照

c++ - Windows XP と Windows 10 ではコマンド ライン引数の解析が異なる

コマンドライン引数を考えてみましょう:

私の C++ アプリケーションの main() は、次のように引数を受け取ります。

  1. ウィンドウズ10

    /li>
  2. WindowsXP

    /li>

引数 argv[0] は別の方法で解析されています。私のアプリケーションでは、それらが同じである必要があります。
Windows XP でもパス全体を取得する方法はありますか? main と winmain
の 両方を試しましたが、結果は同じです。