|
Dear friends
How do I add an event handler for responding to the check box click in a TreeView control
in a dialog box
thanx
Ranojay
|
|
|
|
|
|
Thanks friend
The article you refered is with VB but I want to do it in MSVC 2005
best regards
ranojay
|
|
|
|
|
hi,
I am workin on Visual studio 2008,win32 console application.(using unmanaged C++)
To do :-
i have a folder containing various files,now i want to zip this folder using this library...
Work done:-
i tried doin it...included zip.cpp in my project and also zip.h in source(tools->options->include->(path of zip.h))
Problem :-
hope i did correct....without doing anything,when i compile my project it gives me errors in zip.h....
about 76 errors...
can anyone please help me in doin this...its an urgent work....
thanks in advance...
|
|
|
|
|
Which library you use? What are the error codes?
BTW: Have you seen this thread: -> here[^]?
Regards
Nuri Ismail
|
|
|
|
|
yes,m using zip.h & zip.cpp
ya i have seen this thread as well....but is the code for zip.h incorrect....the errors raised are syntactical.....
|
|
|
|
|
Can you please paste some of the error codes.
|
|
|
|
|
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 [^]
Величие не Бога может быть недооценена.
|
|
|
|