Home
Support
Microsoft Visual C++에서 64-bit 정수형 변수를 선언하는 방법
Microsoft Visual C++에서 64-bit 정수형 변수를 선언하는 방법
주요한 소프트웨어:
주요한 소프트웨어 버전: 6.0
문제가 해결된 소프트웨어 버전:
부차적인 소프트웨어: Driver Software>>NI-DAQ
문제점: Microsoft Visual C++에서 64-bit 정수형을 선언하려고 합니다. nidaq.h에는 64-bit 정수형 타입이 선언되어 있지 않습니다. 그렇다면 어떻게 64-bit 정수형 변수를 선언하고 사용할 수 있습니까?
솔루션: Visual C++에는 64-bit 정수형 데이터 타입이 제공됩니다. 데이터 타입은 __int64입니다. int64앞에 underscores 2개가 있습니다. 예를들어 test라는 64-bit 정수형 변수를 선언하려고 한다면 코드는 다음과 같습니다.
__int64 test;
"test" 변수는 표준 정수형입니다. __int64와 int의 메모리의 할당의 차이만 있을 뿐입니다.
관련 링크:
첨부:
리포트 날짜: 10/25/2002
마지막 업데이트: 06/15/2008
문서 번호: 2QOAJAY1
Other Support Options
Ask the NI Community
Collaborate with other users in our discussion forums
Request Support from an Engineer
A valid service agreement may be required, and support options vary by country.