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.
Windows 7 および Visual Studio 2010 で C++ を使用して LPT ポートを使用しようとしています。
#include <conio.h> int main() { _outp(0x378,00000000); int input=_inp(0x278); }
しかし、私はこのエラーが発生しています
"External component has thrown an exception."
では、これにどう対処するか?
私が知る限り、LPT1 は、おそらくシステム BIOS に認識されている物理 LPT1 デバイスがある場合を除き、すべての実用的な目的で、Windows 7 ではサポートされなくなりました。
ただし、LPT2 から LPT9 までの番号が付けられた 8 つの論理プリンター ポートを自由に使用できます。