| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
Tags
- checkbox
- LogonUI
- 깃티
- CmdKey
- DataTable
- Gitea GPG
- unable to boot the simulator
- gitea
- gitea설치
- 깃티gpg
- 시놀로지
- Gitea 설치
- synology
- 시놀로지깃티설치
- theme
- Re
- gfd
- c#
- Header
- 트레이아이콘
- Capcom
- trayicon
- toroisegit
- Resident Evil
- DataGridView
- 젤리핀
- Resident
- 깃티설치
- jellyfin
- Column
Archives
- Today
- Total
목록Programming/C++ (1)
C O D I N G
std::String과 System::String간의 변환방법
"일반적으로 String은 다 똑같다." 라고 알고있었는데 C++으로 코딩을 해보니 같은 String이지만 std::String과 닷넷String은 다르다 그래서 std::string으로 변수사용을 했다면 컨트롤에 있는 Text를 해당 변수에 넣어주기 위해서는 변환해주어야 한다. std::string -> System::String 변환방법 #include // 헤더 추가하고 std::string 변수명 = mslr::interop::marshal_as(System::String의 TEXT); System::String -> std::string 변환방법 String^ temp = gcnew String(System::String변수명.c_str()); 위와 같은 방법을 쓰면 변환이 가능하다.
Programming/C++
2016. 6. 8. 06:43