Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ハイ!
指定したアプリケーションを使用して C++ から .xml ファイルを開きたい (ファイルのパスとアプリケーションのパスを知っている)。ファイルを右クリックして [Open with...] をクリックし、開始するアプリケーションを選択するのと同じ方法です。
前もって感謝します!
通常、アプリケーションでは、ファイルを開くためのコマンド ライン引数を使用できます。たとえば、メモ帳でファイルを開くには、コマンド ラインを使用できます。
notepad.exe a.txt
そのため、この機能をCreateProcessWindows (引数を指定できる) または他の OS の類似機能で使用できます。HTH
CreateProcess
簡単にどうですか:
system("application.exe file.xml");