|
Documentation says
CImage Class
CImage provides enhanced bitmap support, including the ability to load and save images in JPEG, GIF, BMP, and Portable Network Graphics (PNG) formats.
I cant see TIFF in the list
What about Image class of GDI+??
Or you don't/can't use GDI+??
I hope it helps..
Regards,
Sandip.
|
|
|
|
|
thaks for your reply i am only allowed to use CImage class
|
|
|
|
|
susanne1 wrote: thaks for your reply i am only allowed to use CImage class
In this case this article might help you
Transparent Bitmap
Regards,
Sandip.
|
|
|
|
|
SandipG wrote: I cant see TIFF in the list
The docs are incorrect.
CImage uses GDI+ to load images, and TIFF images are supported.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Mark Salsbery wrote: CImage uses GDI+ to load images, and TIFF images are supported.
Is it?? Thanks I didn't know.
Mark Salsbery wrote: The docs are incorrect.
I checked it with MSDN.. I should be careful next time..
Thanks for the information.
Regards,
Sandip.
|
|
|
|
|
SandipG wrote: I checked it with MSDN.
I checked it by writing code and testing it
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Mark Salsbery wrote: I checked it by writing code and testing it Poke tongue
Regards,
Sandip.
|
|
|
|
|
What are you having problems with?
Here's a little example...
CImage img;
img.Load(_T("C:\\somepath\\some.tif"));
CClientDC dc(pWnd);
img.Draw(dc, 0, 0);
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hi All
how can i make a application which is auto run? I mean when system is start then application is run.Plz help me
singh
|
|
|
|
|
Add a key inside
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
At least on XP it should 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]
|
|
|
|
|
Can you explane example..
singh
|
|
|
|
|
well, do you understand what "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run " is ?
do you know regedit ?
can't you just write such an entry for you application in this registry key ?
|
|
|
|
|
i know what is regedit..
Well i am useing Dialog Application.Can you tell me how can i use it?
Plz help for lerner..
singh
|
|
|
|
|
polopo wrote: Can you tell me how can i use it?
Use what?
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
- Launch regedit tool.
- Open the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
key.
- Issue the add string value command adding the path of your application.
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]
|
|
|
|
|
Goto Start>Programs>Startup
right click on Startup and select "Explore". Startup folder will open. Copy your application to Startup folder.
Done.
|
|
|
|
|
If you want to do it programatically you can use RegSetValue[^]
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|
|
Hi i am new to vc++.
I am embedding a help doc (chm ) in my application and opening it using the ShellExecute() function but how can i close the help doc if the application closes.Can anybody suggest me the right approach for doing this???
Thanks in advance...
|
|
|
|
|
Instead of ShellExecute use CreateProcess to open the document. you will get a handle to the process which you can use later to close the .chm
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
ShellExecuteEx() handle it well too
|
|
|
|
|
Use HtmlHelp API instead of ShellExecute and CreateProcess..
It think it will take care of closing the help with application.
Read documentation for HtmlHelp details..
Regards,
Sandip.
|
|
|
|
|
See this thread[^]
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|
|
Hello all
i am wondering how to make a spy on a web page, and keep tracking og user events, my traget is doing an event log for any user input on this webpage
Best Regards,
Ahmed sabry
|
|
|
|
|
google for BHO... short form for Browser helper object!
"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>
|
|
|
|
|
A-M-S-S wrote: my traget is doing an event log for any user input on this webpage
Please, can you explain what kind of an application are you developing? Somehow, it seems like a malicious application to me. We don't provide help to write malicious code. Or, can you explain?
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|