|
ya sure...
they are exactly this...
1>------ Build started: Project: zipping, Configuration: Debug Win32 ------
1>Compiling...
1>zipping.cpp
1>c:\documents and settings\313853\my documents\visual studio 2008\projects\zipping\zip.h(13) : error C2065: 'HZIP' : undeclared identifier
1>c:\documents and settings\313853\my documents\visual studio 2008\projects\zipping\zip.h(13) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\documents and settings\313853\my documents\visual studio 2008\projects\zipping\zip.h(17) : error C2146: syntax error : missing ';' before identifier 'ZRESULT'
1>c:\documents and settings\313853\my documents\visual studio 2008\projects\zipping\zip.h(17) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\documents and settings\313853\my documents\visual studio 2008\projects\zipping\zip.h(17) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\documents and settings\313853\my documents\visual studio 2008\projects\zipping\zip.h(22) : error C2146: syntax error : missing ';' before identifier 'CreateZip'
1>c:\documents and settings\313853\my documents\visual studio 2008\projects\zipping\zip.h(22) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\documents and settings\313853\my documents\visual studio 2008\projects\zipping\zip.h(22) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\documents and settings\313853\my documents\visual studio 2008\projects\zipping\zip.h(23) : error C2146: syntax error : missing ';' before identifier 'CreateZip'
1>c:\documents and settings\313853\my documents\visual studio 2008\projects\zipping\zip.h(23) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\documents and settings\313853\my documents\visual studio 2008\projects\zipping\zip.h(23) : error C2086: 'int HZIP' : redefinition
1> c:\documents and settings\313853\my documents\visual studio 2008\projects\zipping\zip.h(22) : see declaration of 'HZIP'
1>c:\documents and settings\313853\my documents\visual studio 2008\projects\zipping\zip.h(23) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\documents and settings\313853\my documents\visual studio 2008\projects\zipping\zip.h(24) : error C2146: syntax error : missing ';' before identifier 'CreateZipHandle'
1>c:\documents and settings\313853\my documents\visual studio 2008\projects\zipping\zip.h(24) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\documents and settings\313853\my documents\visual studio 2008\projects\zipping\zip.h(24) : error C2086: 'int HZIP' : redefinition
also if u cud tell me how do we use infozip instead ??
|
|
|
|
|
Just make sure you include <windows.h> (in example you can include it in stdafx.h , if you are using precompiled headers) before the include of zip.h and the errors must gone.
Regards
Nuri Ismail
|
|
|
|
|
thnks a lot....thumbs up....i've worked whole day for this....
but its only u that helped...
u really rock....n made my efforts worth.....
wish u lots of luck!!!
|
|
|
|
|
Thank you and best wishes!
|
|
|
|
|
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
|
|
|
|
|
I have resolved the issue....no need to reply....thanks alot to everyone...
|
|
|
|
|
How to design a C (or C++) program that can extract object edges and detect the presence of straight lines.
DESIGN SPECIFICATION
1. Rescale the image down by the factor of 2, to reduce computational complexity of the
subsequent stages
2. Extract boundaries of objects using:
- 3x3gradient operators
- binary morphology
3. Detect the presence of straight lines and measure their orientation with the precision 3 degree
|
|
|
|
|
|
hello there i have small program i need to complete it is any buddy help me to do this .i will send u my source code via mail ..mail me at m.afroz.khan@gmail.com
|
|
|
|
|
Do you realize how silly is your request?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
CPallini wrote: Do you realize how silly is your request?
Unlikely.
|
|
|
|
|
You know, getting older, I'm more inclined to ask rhetorical questions...
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Hi,
i have a set of files in a folder...i need to copy all files to temporary folder and remove readonly permission to all the files in the folder...pls let me know..
|
|
|
|
|
For copy of files u can do with MoveFileEx[^]
Now to remove read only permission of the File attributes, you can do with SetFileAttributes [^]
Величие не Бога может быть недооценена.
|
|
|
|
|
and pls let me know how can i create a folder if it is not present...
|
|
|
|
|
Just refer CreateDirectory [^]
Величие не Бога может быть недооценена.
|
|
|
|
|
hi everybody! i have a problem by follow!
for example, a.exe was running , now i terminate it by use the windows taskmanager,
how to rerun a.exe when it was terminate by c/c++ code.
|
|
|
|
|
just refer [^]
Величие не Бога может быть недооценена.
|
|
|
|
|
|
Probably you need another process monitoring the original one.
The monitoring process may, for instance, poll every, say 10 seconds, for the original process status and launch it again when needed.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
I once battled a "virus" that employed such a scheme. It polled every second, however. Delete A and B would start it back up. Delete B and A would start it back up.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Well, I suppose it maybe a schema for some viruses. It is also a rather obvious mechanism (at least I hope...).
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
how to check the original process is live by the process's name?
|
|
|
|
|
Finding a process by name is a rather lenghty operation (you must go through EnumWindows [^]). Perhaps a better option would be storing the process handle (if application A starts application B via CreateProcess [^] then A may store the B process handle) and call GetExitCodeProcess [^] when needed.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Could you elaborate a bit further? You want to restart a program that was deliberately terminated via Task Manager by a user?
|
|
|
|