일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
- aduino
- sensor
- UNO
- wpf
- c++
- Read
- inheritance
- Contour
- flutter
- java
- stream
- Barcode
- Class
- APP
- file access
- atmega328
- memory
- length
- Pointer
- public
- Unity
- digitalRead
- 3D
- Android
- mfc
- parameter
- compare
- SERIAL
- Encapusulation
- preprocessing
- Today
- Total
목록DllImport (2)
폴크(FOLC)

# 특정 영역에 대해서 CPU 가동에 대한 소요 시간을 확인 > QueryPerformanceCounter 를 이용 # 소스 코드 using System.Runtime.InteropServices; class TimeChecker { [DllImport("Kernel32.dll")] private static extern bool QueryPerformanceCounter(out long lpPerformanceCount); [DllImport("Kernel32.dll")] private static extern bool QueryPerformanceFrequency(out long lpFrequency); private long m_freq, m_st, m_ed; public TimeChecker() ..

# WPF 를 이용하는 과정에서 HDD 에 존재하는 파일 ( ini format ) 제어 > Save, Load 형태 - DllImport("kernel32") 이용 > exe 파일 위치에 test.ini 파일 생성 # 소스 코드 using System.Runtime.InteropServices; public class INIformat { DllImport("kernel32")] private static extern long WritePrivateProfileString(string section, string key, string val, string filepath); DllImport("kernel32")] private static extern int GetPrivateProfileString..