일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- Nodejs
- Android
- FIDO2
- MYSQL
- fido
- git
- OTP
- 안드로이드
- MSYS2
- SSH
- Xcode
- css
- 앱리소스
- 앨범북
- appres
- OSX
- SwiftUI
- MFA
- 인증
- 앱스토어
- WebAuthn
- SWIFT
- kmip
- openssl
- otpkey
- apple
- albumbook
- 2FA
- SSL
- 애플
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