|
The line is wrong: you should replace it with
cTestFile.Write(csSetID, csSetID.GetLength() * sizeof(TCHAR));
Anyway, I doubt this is what you really want to do (i.e. Are you trying to write a wide-char text file?)?
jadhavjitendrar wrote: So plz give me solution ,it's urgent..
I recall you one of the implicit mechanism of this forum: "urgentz requests go directly inside the recycle bin".
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]
|
|
|
|
|
jadhavjitendrar wrote: for(int nCnt = 0; nCnt < nRecordCnt; nCnt++)
{
for(int nCnt = 0; nCnt < nFieldCnt; nCnt++)
The inner and outer loop should use different variables.
"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,
I have a doubt whether Microsoft Excel will support data of unicode big endian encoded type...
I tried manually pasting unicoded big endian encoded data.. it was showing junk characters...
I have a doubt whether MS Excel 2007 will support Unicode Big Endian type for saving and opening..
Thanks,
Rakesh.
|
|
|
|
|
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!
|
|
|
|