|
Just a guess here but try handling the NM_CLICK notification message instead of BN_CLICKED, aside of that, try using spy++ to see what the parent of the groupbox receives when you click the box.
p.s: i hate groupboxes.
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Sometimes you just have to hate coding to do it well. <
|
|
|
|
|
Hi all,
Im working on a program , its fuction is that it should open a tiff file in Paint and save it as jpg file. What are the Windows API fnctions used to open,save and close a image file.
Thanks,
modified on Friday, November 6, 2009 2:31 AM
|
|
|
|
|
Karthika85 wrote: it should open a tiff file in Paint and save it as jpg file.
Karthika85 wrote: What are the Windows API fnctions used to open,save and close a image file.
If you need to open Paint for the purpose, why are you asking for image related Windows API ?
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]
|
|
|
|
|
Ok. then what are the functions used to open and save the image
Thanks
|
|
|
|
|
Why cant to Google it.
I found a lot on googling just see below [^]
Величие не Бога может быть недооценена.
|
|
|
|
|
After loading a bitmap,how to save it as jpg file?
|
|
|
|
|
Just refer this article in codeproject CxImage[^]
Величие не Бога может быть недооценена.
|
|
|
|
|
If you're using MFC (or ATL ), the an option is using the CImage [^] class.
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 added CIMage class in my code and its header file.But it is showing following error.
Cannot open include file: 'atlimage.h': No such file or directory
|
|
|
|
|
Which VS version you are using?
Величие не Бога может быть недооценена.
|
|
|
|
|
|
Sorry
it wont support CImage.
Else you can use OleCreatePictureIndirect or OleLoadPictureEx APIs.
But i prefer to use GDI+ directly since CImage is just a wrapper to GDI+.
Just see the help [^]
Величие не Бога может быть недооценена.
modified on Friday, November 6, 2009 4:59 AM
|
|
|
|
|
CPallini wrote: ...an option is using the CImage [^] class.
Does that work with TIFF images?
"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
|
|
|
|
|
DavidCrow wrote: Does that work with TIFF images?
Good question, in fact it may work [^].
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]
|
|
|
|
|
Karthika85 wrote: its fuction is that it should open a tiff file in Paint
Do you really need to open Paint ? Why do you want to do that ?
|
|
|
|
|
I am having a GIF file. i neef to convert it to PDF. I am having a PDFConverter tool which will convert only tiff files to PDF. I need to convert this GIF to TIFF. So i need some API functions to chane the image format.
|
|
|
|
|
choose CxImage library ..which is available from codeproject.com ..which is having lots of functionality is there ..i hope your problem is solved ..... 
|
|
|
|
|
Ok but what does Paint have to do here ?
Why do you want to open Paint to do that ?
|
|
|
|
|
hi every body ....
i have some problem in my project...
i.e convertion of word(or)excel to pdf ?
this project is developed in vc++6.0
please help me.......
thanks in advance....
modified on Friday, November 6, 2009 11:02 PM
|
|
|
|
|
Could you not try this[^]?
|
|
|
|
|
eswar pothula wrote: i.e convertion of word(or)excel to tiff ?
Yet the subject indicates you want to convert to PDF.
"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
|
|
|
|
|
class A
{
public:
int a;
A() : a(20)
{
}
void sum()
{
cout<<"hi"<<endl;
}
};
main()
{
="" a="" *ptr="new" a();
="" delete="" ptr;
="" ptr-="">a = 20;
}
I want this appication to crash , but dont know y this is not crashing after delete shouldnt the memory be cleaned and ptr becomes a dangling pointer!!!!
Please kindly tell me y this is not crashing
Regards
Hari
|
|
|
|
|
A *ptr = new A();
delete ptr;
ptr = NULL;
ptr->a = 20;
Now it will crash!
You measure democracy by the freedom it gives its dissidents, not the freedom it gives its assimilated conformists.
|
|
|
|
|
|
To answer seriously, the memory has been marked available on the heap but it still exists and is not cleared. You still have a pointer to it although it's invalid. If that block of memory was allocated to something else later in the program, who knows what would happen but probably nothing good. If an invalid pointer is going to be in scope for a while, it's a good idea to null it out and get an immediate crash if you happen to use it again.
You measure democracy by the freedom it gives its dissidents, not the freedom it gives its assimilated conformists.
|
|
|
|