|
Hi,
How to delete a folder along with the files inside it...
|
|
|
|
|
|
just refer [^]
Величие не Бога может быть недооценена.
|
|
|
|
|
RemoveDirectory() only deletes empty directories. To delete files and folders simultaneously, use SHFileOperation() .
"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
|
|
|
|
|
Hi All
How to read Image's RGB value (only block and white)
kindly give me your solution
Regards
~~~~~~~~~~~~~Raju~~~~~~~~~~~~~
|
|
|
|
|
You may use CBitmap::GetBitmapBits [^].
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 Pal
thanks for replay ..
it can possible load jpeg images and it can possible to render the images w.r.t RGB
regards
~~~~~~~~~~~~~Raju~~~~~~~~~~~~~
|
|
|
|
|
|
rajugis wrote: it can possible load jpeg images
You may use CImage class for the purpose, see CImage::Load [^] and, for instance, CImage::GetPixel [^].
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]
|
|
|
|
|
Just in addition to CPallini's post.
If you decide to use CImage class you will notice that the GetPixel and SetPixel methods are slow. So if you need a fast pixel access you can use this[^] class with combination of CImage class.
Using CxImage[^] library could also be an option.
Regards
Nuri Ismail
|
|
|
|
|
Nuri Ismail wrote: Just in addition to CPallini's post.
If you decide to use CImage class you will notice that the GetPixel and SetPixel methods are slow.
That was the reason of 'for instance'.
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]
|
|
|
|
|
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! ![Smile | :)](https://codeproject.global.ssl.fastly.net/script/Forums/Images/smiley_smile.gif)
|
|
|
|
|
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
|
|
|
|