일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- CS
- VS ERROR
- Visual Studio
- Windows
- 배열
- Desktop
- Javascript
- Direct2D
- 리뷰
- Kotlin
- doit코틀린프로그래밍
- 프로그래밍
- c++
- tipssoft
- Tips강좌
- c#
- 포인터
- Tips프로그래밍강좌
- 백준
- 문법
- Win32
- c
- 지식나눔강좌
- 연산자
- 김성엽
- 알고리즘
- Programming
- 함수
- 이지스퍼블리싱
- 티스토리
Archives
- Yesterday
- Today
- Total
목록charset (1)
F.R.I.D.A.Y.

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