일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- 지식나눔강좌
- 티스토리
- Javascript
- VS ERROR
- 배열
- 연산자
- 백준
- 김성엽
- 포인터
- Win32
- Kotlin
- c
- 문법
- Tips프로그래밍강좌
- Desktop
- c++
- tipssoft
- CS
- Windows
- Direct2D
- 프로그래밍
- Tips강좌
- 리뷰
- 알고리즘
- doit코틀린프로그래밍
- Programming
- c#
- 함수
- 이지스퍼블리싱
- Visual Studio
Archives
- Yesterday
- Today
- Total
목록charset (1)
F.R.I.D.A.Y.
WinAPI 보호된 메모리를 읽거나 쓰려고 했습니다.
C#에서 WinAPI로 뭔가를 하려고 했더니 보호된 메모리라고 예외를 뱉는다. 사용하려던 Windows API는 GetWindowText(HWND hWnd, LPSTR lpstring, int nMaxCount); 그래서 C# 코드는 이렇게 했었다. [DllImport("user32.dll", SetLastError = false)] public static extern int GetWindowText(IntPtr hWnd, out StringBuilder lpText, in int maxCount = 256); // ... StringBuilder windowTitle = new StringBuilder(256); wa.GetWindowText(hWnd, out windowTitle, windowTit..
DEV/.Net
2022. 4. 6. 01:54