|
Balanced.
BTW did you remenber to feed your troll this morning?
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]
|
|
|
|
|
Thanks for the vote as usual. There's a troll (only one) and I keep forgetting to feed it.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Is it all?..i mean is there a place in the code, where you have declared :"Now we use heap" ...thanks anyway. I'll try it in my coding and give answer about result.
|
|
|
|
|
Well a C/C++ developer should be able to use both the stack and the heap. I.e. good tutorial 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]
|
|
|
|
|
You were given a good hint, insteads of complaining... why don't you try to search a bit what that clues mean and then re ask if you don't understand it?
Regards.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
Rating helpfull answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
Please post more code. A similar loop execute in less than a second on my system.
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]
|
|
|
|
|
u'r lucky , Please post your code.
|
|
|
|
|
Rustik wrote: u'r lucky
Sure.
Rustik wrote: Please post your code.
Here you are.
int * Arr[2304];
int row;
int col;
for(row=0; row<=2303; row++)
Arr[row] = (int*) malloc(3072 * sizeof(int));
for(row=0; row<=2303; row++){
for(col=0; col<=3071; col++)
Arr[row][col]=row*4096+col;
}
for(row=0; row<=2303; row++)
free (Arr[row]);
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]
modified on Monday, June 23, 2008 8:58 AM
|
|
|
|
|
Is it all?..i mean is there a place in the code, where you have declared :"Now we use heap" ...thanks anyway. I'll try it in my coding and give answer about result.
|
|
|
|
|
Fixed.
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]
|
|
|
|
|
It works...may be u'r Deitel&Deitel's brother . U did me real help, thanks a lot.
|
|
|
|
|
Rustik wrote: It works...may be u'r Deitel&Deitel's brother
I did'nt know about, looks amusing.
Rustik wrote: U did me real help, thanks a lot.
You are welcome.
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]
|
|
|
|
|
Listen, may i ask u another one question: is it possible to work with gif, jpeg, bmp - files(i think now u understand why i ask about 2-dimns. array), using C-language, is there libraries which allows this or only Visual C++ can solve image processing?
|
|
|
|
|
Well you may do raw image processing but dealing with different formats maybe difficult. There are a lot of libraries that can simplify the task, for instance, ATL/MFC 's CImage class [^] or GDI+ 's Image one [^], [^].
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]
|
|
|
|
|
Raw image? U mean raw-data format? In my case it is not best choice. Thanks for the links.
|
|
|
|
|
Hi all,
I'm try to create a class to write a xml file using xmllite. I've include xmllite.h and xmllite.lib in correct place. Anyhow when I compile the following, got a compile error.
CComPtr<istream> pOutFileStream;
</istream>
Error is,
error C2143: syntax error : missing ';' before '<'
error C2501: 'CXMLWriter::CComPtr' : missing storage-class or type specifiers
error C2238: unexpected token(s) preceding ';'
How can solved this.
I appreciate your help all the time...
CodingLover
|
|
|
|
|
Hi,
Please look here[^] for more on usage.
Look at the example given in "Remarks" section.
Regards,
Paresh.
|
|
|
|
|
Thanks for the replay
I appreciate your help all the time...
CodingLover
|
|
|
|
|
If my reply helpful to you, Could you please rate the message ?
Regards,
Paresh.
|
|
|
|
|
Why you guys really worried about the ratings.
I appreciate your help all the time...
CodingLover
|
|
|
|
|
There is meaning for ratings, that's why CP has provoded this facility.
Regards,
Paresh.
|
|
|
|
|
I've been wondering that for years.
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Did you include the required header file ?
|
|
|
|
|
Yes sir,
#pragma once
#include "xmllite.h"
class CXMLWriter
{
public:
CXMLWriter();
virtual ~CXMLWriter();
protected:
CComPtr<istream> pOutFileStream;
};
</istream>
I appreciate your help all the time...
CodingLover
|
|
|
|
|
Did you try to include atlbase.h ?
|
|
|
|