목록분류 전체보기 (409)
SPRING :: NOTE
RichEdit Control 추가 AppName.cpp에 아래 소스 추가 AppName::InitInstance() { // 응용 프로그램 매니페스트가 ComCtl32.dll 버전 6 이상을 사용하여 비주얼 스타일을 // 사용하도록 지정하는 경우, Windows XP 상에서 반드시 InitCommonControlsEx()가 필요합니다. // InitCommonControlsEx()를 사용하지 않으면 창을 만들 수 없습니다. INITCOMMONCONTROLSEX InitCtrls; InitCtrls.dwSize = sizeof(InitCtrls); // 응용 프로그램에서 사용할 모든 공용 컨트롤 클래스를 포함하도록 // 이 항목을 설정하십시오. InitCtrls.dwICC = ICC_WIN95_CLASS..
EDIT CONTROL 편집 제한(막기) /* TRUE : 편집 사용, FALSE : 편집 제한 */ GetDlgItem(IDC_EDIT_CONTROL)->EnableWindow(FALSE);
/* TRUE : 사용 안함, FALSE : 사용 함 */ m_btnQuery.EnableWindow(TRUE); // 변수사용 GetDlgItem(IDC_BTN_QUERY)->EnableWindow(TRUE ); // Resource Id 사용 /* 버튼 텍스트 수정 */ m_btnStop.SetWindowTextA("STOP"); SetDlgItemText(IDC_BTN_START, "STOP"); /* 버튼 숨기기(안보이게 하기) */ m_btnName.ShowWindow(SW_HIDE);
C의 파일 입출력을 이용하다 보면 원하는 디렉토리에 저장을 할 필요가 많다. 이를 위해 컴파일 전 혹은 이벤트 전 원하는 위치에 일일이 디렉토리를 만들어야 되는데, 이를 위해 소스상 디렉토리 만드는 소스를 생성한다. /* DIR MAKER */ void applicationDlg::CreateDir(CString strPath) { CString strPrefix(_T("")), strToken(_T("")); int nStart = 0, nEnd; while( (nEnd = strPath.Find('/', nStart)) >= 0) { CString strToken = strPath.Mid(nStart, nEnd-nStart); CreateDirectory(strPrefix + strToken, NUL..
#include #include #include #include #include "visa.h" #include ViSession defaultRM, viN9320B; ViStatus errStatus; ViChar cIdBuff[256]= {0}; char cEnter = 0; int iResult = 0; /*Set the input port to 50MHz amplitude reference*/ void Route50MHzSignal() { viQueryf(viN9320B, "*IDN?\n", "%t", &cIdBuff); /* prompt the user*/ /* to connect the amplitude reference output to the input*/ printf ("Connect C..
KEYSIGHT - Download Page
/************************************************************/ /* Using Marker Delta Mode and Marker Minimum Search */ /* */ /* This example is for the N9320B Spectrum Analyzers */ /* */ /* This C programming example does the following. */ /* The SCPI instrument commands used are given as reference. */ /* */ /* - Opens a USB session */ /* - Clears the Analyzer */ /* - Resets the Analyzer */ /* *..
/************************************************************/ /* Using Marker Peak Search and Peak Excursion */ /* */ /* This example is for the N9320B Spectrum Analyzer. */ /* */ /* This C programming example does the following. */ /* The SCPI instrument commands used are given as reference. */ /* */ /* - Opens a USB session */ /* - Clears the Analyzer */ /* *CLS */ /* - Resets the Analyzer */..