Click here to Skip to main content
15,885,244 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: creating a zip folder Pin
Nuri Ismail10-Sep-09 0:59
Nuri Ismail10-Sep-09 0:59 
AnswerRe: creating a zip folder Pin
gunjan ga10-Sep-09 1:19
gunjan ga10-Sep-09 1:19 
GeneralRe: creating a zip folder Pin
Nuri Ismail10-Sep-09 1:25
Nuri Ismail10-Sep-09 1:25 
GeneralRe: creating a zip folder Pin
gunjan ga10-Sep-09 1:31
gunjan ga10-Sep-09 1:31 
GeneralRe: creating a zip folder Pin
Nuri Ismail10-Sep-09 1:45
Nuri Ismail10-Sep-09 1:45 
GeneralRe: creating a zip folder Pin
gunjan ga10-Sep-09 1:58
gunjan ga10-Sep-09 1:58 
GeneralRe: creating a zip folder Pin
Nuri Ismail10-Sep-09 2:07
Nuri Ismail10-Sep-09 2:07 
GeneralRe: creating a zip folder [modified] Pin
gunjan ga10-Sep-09 7:44
gunjan ga10-Sep-09 7:44 
hi Nuri...
sry to bother u again but can u tell me what is _T("\\sample")???
what type is it???
i have string folder_name to pass to create zip folder... i want to pass normal string to it..how can i do it..

int _tmain(int argc, _TCHAR* argv[])
{
char temp[] = "c:\\tempo\\Zippi.zip";
HZIP hz; DWORD writ;

// EXAMPLE 1 - create a zipfile from existing files

hz = CreateZip(_T('temp'),0);-->this gives an error.how do i pass string var here or how to convert.
ZipAdd(hz,_T("gunjan.txt"), _T("c:\\tempo\\gunjan.txt"));
ZipAdd(hz,_T("kajal.txt"), _T("c:\\tempo\\kajal.txt"));
CloseZip(hz);
_tprintf(_T("Created 'c:\\tempo\\Zippi.zip'\n"));

return 0;
}


gives error:


Compiling...
zipping.cpp
d:\documents and settings\admin\my documents\visual studio 2008\projects\zipping\zipping\zipping.cpp(18) : error C2665: 'CreateZip' : none of the 2 overloads could convert all the argument types
d:\documents and settings\admin\desktop\gunjan\zip.h(22): could be 'HZIP CreateZip(const TCHAR *,const char *)'
while trying to match the argument list '(int, int)'
Build log was saved at "file://d:\Documents and Settings\admin\My Documents\Visual Studio 2008\Projects\zipping\zipping\Debug\BuildLog.htm"
zipping - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

modified on Thursday, September 10, 2009 2:28 PM

GeneralRe: creating a zip folder Pin
gunjan ga11-Sep-09 0:15
gunjan ga11-Sep-09 0:15 
QuestionBMP Image handling in c /c++ Pin
Mohd Afroz Khan10-Sep-09 0:20
Mohd Afroz Khan10-Sep-09 0:20 
AnswerRe: BMP Image handling in c /c++ Pin
«_Superman_»10-Sep-09 0:28
professional«_Superman_»10-Sep-09 0:28 
GeneralRe: BMP Image handling in c /c++ Pin
Mohd Afroz Khan10-Sep-09 0:41
Mohd Afroz Khan10-Sep-09 0:41 
QuestionRe: BMP Image handling in c /c++ Pin
CPallini10-Sep-09 1:41
mveCPallini10-Sep-09 1:41 
AnswerRe: BMP Image handling in c /c++ Pin
Michael Schubert10-Sep-09 2:17
Michael Schubert10-Sep-09 2:17 
GeneralRe: BMP Image handling in c /c++ Pin
CPallini10-Sep-09 2:40
mveCPallini10-Sep-09 2:40 
QuestionRemove Attributes... Pin
kumar sanghvi9-Sep-09 23:44
kumar sanghvi9-Sep-09 23:44 
AnswerRe: Remove Attributes... Pin
Adam Roderick J9-Sep-09 23:59
Adam Roderick J9-Sep-09 23:59 
GeneralRe: Remove Attributes... Pin
kumar sanghvi10-Sep-09 0:00
kumar sanghvi10-Sep-09 0:00 
GeneralRe: Remove Attributes... Pin
Adam Roderick J10-Sep-09 0:03
Adam Roderick J10-Sep-09 0:03 
Questionhow to rerun a process when it was terminated? Pin
iceman86169-Sep-09 22:53
iceman86169-Sep-09 22:53 
AnswerRe: how to rerun a process when it was terminated? Pin
Adam Roderick J9-Sep-09 22:59
Adam Roderick J9-Sep-09 22:59 
AnswerRe: how to rerun a process when it was terminated? Pin
Selvam R9-Sep-09 23:05
professionalSelvam R9-Sep-09 23:05 
AnswerRe: how to rerun a process when it was terminated? Pin
CPallini9-Sep-09 23:16
mveCPallini9-Sep-09 23:16 
General[OT] Re: how to rerun a process when it was terminated? Pin
David Crow10-Sep-09 3:43
David Crow10-Sep-09 3:43 
GeneralRe: [OT] Re: how to rerun a process when it was terminated? Pin
CPallini10-Sep-09 7:57
mveCPallini10-Sep-09 7:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.