|
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 ?
|
|
|
|
|
It's work sir, so what is the problem in my code.
I found that IStream need to include objidl.h and I try it give the same error. There is no any details regrading the atlbase.h
Can you advice me on this.
I appreciate your help all the time...
CodingLover
|
|
|
|
|
The compiler was complaining that CComPtr was not defined, so I just googled for it and found this page[^] (first result). If you look at the requirements section, it says which header file you have to include.
So, whenever you have such kind of error, the easiest thing to do is just google to see which files need to be included.
|
|
|
|
|
Thanks a lot.
I appreciate your help all the time...
CodingLover
|
|
|
|
|
|
Hi
In vc++ 6.0 , i want to know how to create a Menu Bar Button in Form View SDI (as File,Edit,Help) at run time through code.
thanks
regards
shakumar
shakumar
|
|
|
|
|
shakumar_22 wrote: In vc++ 6.0 , i want to know how to create a Menu Bar Button in Form View SDI (as File,Edit,Help) at run time through code.
Get the pointer of Menu using GetMenu api, than extract teh particular menu by using GetSubMenu api, and on pointer of returned Menu class as the new button!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You/xml>
|
|
|
|
|
|
Hi,
I am reading the jpeg image and writing the data to the text file(as binary). I want to reconstruct the jpeg image (like BMP) using the data written in text file. And I want to display it on dialog. Is it possible..?? If Yes let me know the procedure.
Thanx in advance.
Reagards
Shiva
|
|
|
|
|
Did you have a look at GDI+ look here [^]
Regards,
Sandip.
|
|
|
|
|
Do you want to show jpeg file so you can use of CImage class.
|
|
|
|
|
Hi all,
I m using a tree ctrl ,Here i m create diffrent Parents and its Child.
I m using checkbox funcnality here.
I want if i check the parents's check box then all child of selected parent is also checked.
Please anyone can tell me how can i do this.
Thanks in advance.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
Hello and good day. I have 2 applications wherein I want the 1st which creates a graph send its image to the 2nd which will display it. I searched for some ways and ended up using a MFC shared DLL wherein I have a HBITMAP which the 1st one will write image on, and the 2nd one will read (using WM_COPYDATA for signalling, and mutex for synch). It's declared as the ff:
#pragma bss_seg("MFCDLLSample")
TESTDLL_API HBITMAP DLLImageBmp;
#pragma bss_seg()
Now, I checked first if it works by having the 1st app make a graph then display it on another picture box (same app) and it actually worked. When I tried to display it in the 2nd, it does not display. I coded it like this in the 2nd app:
PicWnd = GetDlgItem(IDC_PICBOX);
PicDC = PicWnd->GetDC();
oldBmp = (HBITMAP)PicDC->SelectObject(DLLImageBmp);
PicPaintDC.BitBlt(0, 0, 404, 404, PicDC, 0, 0, SRCCOPY);
CDialog::OnPaint();
Can anyone help me out with this? I really need to know what might be wrong with my code or implementation.
Thank you in advance for the help and time!
--added contents:
I forgot, TESTDLL_API's definition is this:
#ifdef TESTDLL_EXPORTS
#define TESTDLL_API __declspec(dllexport)
#else
#define TESTDLL_API __declspec(dllimport)
#endif
Thanks again!
modified on Monday, June 23, 2008 12:48 AM
|
|
|
|