Click here to Skip to main content
15,881,757 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questioncut one small rectangle piece in one full image Pin
Game-point10-Sep-09 21:02
Game-point10-Sep-09 21:02 
AnswerRe: cut one small rectangle piece in one full image Pin
Sauce!10-Sep-09 21:11
Sauce!10-Sep-09 21:11 
GeneralRe: cut one small rectangle piece in one full image Pin
Game-point10-Sep-09 21:27
Game-point10-Sep-09 21:27 
AnswerRe: cut one small rectangle piece in one full image Pin
CPallini10-Sep-09 21:12
mveCPallini10-Sep-09 21:12 
Questionhow to Count The Number Of Records In An Access Database [modified] Pin
jadhavjitendrar10-Sep-09 20:10
jadhavjitendrar10-Sep-09 20:10 
AnswerRe: how to Count The Number Of Records In An Access Database Pin
CPallini10-Sep-09 21:04
mveCPallini10-Sep-09 21:04 
GeneralRe: how to Count The Number Of Records In An Access Database Pin
norish10-Sep-09 21:36
norish10-Sep-09 21:36 
Questionwhat is _T("\\sample")??? Pin
gunjan ga10-Sep-09 20:03
gunjan ga10-Sep-09 20:03 
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 ==========
AnswerRe: what is _T("\\sample")??? Pin
Stuart Dootson10-Sep-09 20:30
professionalStuart Dootson10-Sep-09 20:30 
GeneralRe: what is _T("\\sample")??? Pin
gunjan ga10-Sep-09 21:09
gunjan ga10-Sep-09 21:09 
GeneralRe: what is _T("\\sample")??? Pin
CPallini10-Sep-09 21:16
mveCPallini10-Sep-09 21:16 
AnswerRe: what is _T("\\sample")??? Pin
Adam Roderick J10-Sep-09 20:51
Adam Roderick J10-Sep-09 20:51 
GeneralRe: what is _T("\\sample")??? Pin
gunjan ga11-Sep-09 0:06
gunjan ga11-Sep-09 0:06 
GeneralRe: what is _T("\\sample")??? Pin
Code-o-mat11-Sep-09 0:49
Code-o-mat11-Sep-09 0:49 
QuestionConvert from int to user-defined type. Pin
Sauce!10-Sep-09 19:09
Sauce!10-Sep-09 19:09 
AnswerRe: Convert from int to user-defined type. Pin
Adam Roderick J10-Sep-09 19:47
Adam Roderick J10-Sep-09 19:47 
GeneralRe: Convert from int to user-defined type. Pin
Sauce!10-Sep-09 20:09
Sauce!10-Sep-09 20:09 
QuestionRe: Convert from int to user-defined type. Pin
Adam Roderick J10-Sep-09 22:51
Adam Roderick J10-Sep-09 22:51 
GeneralRe: Convert from int to user-defined type. Pin
David Crow11-Sep-09 3:59
David Crow11-Sep-09 3:59 
AnswerRe: Convert from int to user-defined type. Pin
Stuart Dootson10-Sep-09 20:31
professionalStuart Dootson10-Sep-09 20:31 
GeneralRe: Convert from int to user-defined type. Pin
Sauce!10-Sep-09 20:48
Sauce!10-Sep-09 20:48 
AnswerRe: Convert from int to user-defined type. Pin
norish10-Sep-09 21:19
norish10-Sep-09 21:19 
GeneralRe: Convert from int to user-defined type. Pin
Sauce!10-Sep-09 22:39
Sauce!10-Sep-09 22:39 
AnswerRe: Convert from int to user-defined type. Pin
norish11-Sep-09 3:51
norish11-Sep-09 3:51 
QuestionHow to use CListCtrl to handle message Pin
jinjiashan10-Sep-09 17:02
jinjiashan10-Sep-09 17:02 

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.