CONST TCHAR -> ASCII : T2CA(str)
매크로가 있더라..
[code]example[/code]
USES_CONVERSION; // 반드시 상단에 기입!
//
// gzFile -> voidp 이다.
//
gzFile zfp;
int n;
TCHAR buf[256] = {0, };
int lerrno;
if (!IsFile())
{
return false;
}
int fh;
::_tsopen_s(&fh, static_cast<LPCTSTR>(m_szFileName), _O_RDONLY, _SH_DENYNO, _S_IREAD);
if ((zfp = ::gzopen(T2CA(m_szDestinationFile), "wb")) == NULL)
{
return false;
}
매크로가 있더라..
[code]example[/code]
USES_CONVERSION; // 반드시 상단에 기입!
//
// gzFile -> voidp 이다.
//
gzFile zfp;
int n;
TCHAR buf[256] = {0, };
int lerrno;
if (!IsFile())
{
return false;
}
int fh;
::_tsopen_s(&fh, static_cast<LPCTSTR>(m_szFileName), _O_RDONLY, _SH_DENYNO, _S_IREAD);
if ((zfp = ::gzopen(T2CA(m_szDestinationFile), "wb")) == NULL)
{
return false;
}
'Windows > MFC' 카테고리의 다른 글
zip compression (0) | 2013.10.02 |
---|---|
fatal error C1189: #error : Please use the /MD switch for _AFXDLL builds (0) | 2013.10.02 |
윈도우 자체의 특수 폴더 접근 방법 (0) | 2013.10.02 |
object 위치 찾기 (0) | 2013.10.02 |
비트맵 배경 제거 (TransparentBitmap) (0) | 2013.10.02 |