| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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
- Xcode
- FIDO2
- appres
- 앱스토어
- apple
- openssl
- SWIFT
- otpkey
- WebAuthn
- SSH
- albumbook
- fido
- Android
- SSL
- 앱리소스
- MSYS2
- 2FA
- kmip
- OSX
- OTP
- MYSQL
- git
- MFA
- 애플
- css
- 안드로이드
- Nodejs
- 앨범북
- 인증
- SwiftUI
Archives
- Today
- Total
인디노트
C++ BSTR, CString, char 관련 변환 본문
BSTR => char *
BSTR bstrVal; <= BSTR
USES_CONVERSION; // <atlconv.h>, convert를 위한 macro
char *pbstr = OLE2A(bstrVal); // BSTR -> char *
CString => BSTR *
BSTR *pVal = _bstr_t(m_sign->get_PasswordDlgTitle().AllocSysString()).copy();
BSTR => CString => LPCWSTR
DllExport HRESULT DllPutPasswordDlgTitle(BSTR newVal)
{
CString s(newVal);
m_sign->put_PasswordDlgTitle(s.GetString());
return S_OK;
}
Comments