|
Simple: Under the green bar at the top of the codeproject page is a input filed labeled "Search".
Just enter "jpeg" in that field and press "Return".
Et voila!
You get any number of articles about reading, decoding and displaying jpeg pictures. Try out a few solutions and produce your personal blend.
Failure is not an option - it's built right in.
|
|
|
|
|
jhwurmbach wrote: Simple: Under the green bar at the top of the codeproject page is a input filed labeled "Search".
Just enter "jpeg" in that field and press "Return".
|
|
|
|
|
JPEG format is the compressed file format. Please refer details here[^].
Regards,
Paresh.
|
|
|
|
|
Yes you can use of CImage class for show bmp,jpg,gif,png and also use of GDI+ after load use of WM_ERASEBKGND for show it
|
|
|
|
|
Is better you see a short code
#include atlImage.h
CImage m_Image;
m_Image.Load(filename);
m_Image.BitBlt(dc.m_hDC,CRect(0,0,640,480),CPoint(0,0));
m_Image.Detach();
|
|
|
|
|
There is a button with image. When I click the button, the dotted lines denoting the focus of a button is coming and
part image becomes invisible and if I click somewhere else in the dialog then also part of image is not becoming visible.
The code is as follows:
CButton *cb = ((CButton*)GetDlgItem(IDC_BUTTON2));<br />
bmpForBtn = CreateMappedBitmap(AfxGetInstanceHandle(),IDB_BITMAP1,0,&clrMap,1); <br />
cb->SetBitmap(bmpForBtn); <br />
Any ideas would be greatly appreciable.
Best Regards,
Suman
|
|
|
|
|
That code looks ok . You have not given the details of clrMap. At which point you are calling this ?? (and hope you may checked the property bitmap of the button in resource editor to true, if not do it. )
If u can Dream... U can do it
|
|
|
|
|
rp_suman wrote: = CreateMappedBitmap(AfxGetInstanceHandle(),IDB_BITMAP1,0,&clrMap,1);
Is there any reson for using this API ? Its documentation says, Creates a bitmap for use in a toolbar .
Prasad
MS MVP - VC++
|
|
|
|
|
I am using that API to apply the bitmap source image to button control.
Best Regards,
Suman
|
|
|
|
|
rp_suman wrote: I am using that API to apply the bitmap source image to button control
Yes, I know that, but there are lot others availables, like LoadBitmap .
Prasad
MS MVP - VC++
|
|
|
|
|
Hi,
In my application i have made a menu which displays menu items along with the associated bitmaps during run time.My Problem is when i move mouse over the menu items the bitmaps are not dispalying properly.They are appearing as shading.How can i rectify this.
Thanks.
|
|
|
|
|
I've been using VC++ 6 and office 2003 for a long time without any problem.
But when I install office 2007, my VC++ 6.0 cannot open file or add file to existing project, but it's still able to open workspace, create new project, compile, run, ... do everything else perfectly !!! But any time I choose File/Open or Project/Add to project/Files then visual C shutdown immediately without saying anything !!! It just closes like it was killed !
Uninstall office 2007 and things go back to normal.
Have any one suffered the same situation ??
|
|
|
|
|
Am working on EVC . Am using the following function to get the battery level but am getting an error .
Function used :
SYSTEM_POWER_STATUS_EX2 SPSE;
GetSystemPowerStatusEx2(&SPSE, sizeof(SPSE), true);
Error :
error C2065: 'GetSystemPowerStatusEx2' : undeclared identifier
error C2065: 'SPSE' : undeclared identifier
Please help me out in this . Thanks
|
|
|
|
|
Try to include Winbase.h in your source file.
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.
|
|
|
|
|
Header: Winbase.h.
Link Library: Coredll.lib. has been already included by me .But still i get the same error .
|
|
|
|
|
|
EVC compiler . Am using a device ,and the specific SDk of the device .In that sdk the winbase.h file does not contain this function GetSystemPowerStatusEx2 . Is there any other way to find the battery level ?
|
|
|
|
|
Did you see MSDN
To compile an application that uses this function, define the _WIN32_WINNT macro as 0x0400 or later
|
|
|
|
|
Have look at this[^] FAQ, by Michael Dunn .
Define _WIN32_WINNT accordingly, make sure, you have latest platform SDK installed.
Prasad
MS MVP - VC++
|
|
|
|
|
Fast! I was typing that and you posted it
PS: I know that Michael Dunn is a tech freak. That doesn't mean you need to wrap his name within the <code> </code> tags
|
|
|
|
|
brahmma wrote: Fast! I was typing that and you posted it
I've bookmarked this FAQ link. Every forthnight, such question arise on forum.
brahmma wrote: PS: I know that Michael Dunn is a tech freak. That doesn't mean you need to wrap his name within the tags
I just wanted to highlight his name(one way is to show in different color), as link refered is not mine.
Prasad
MS MVP - VC++
|
|
|
|
|
|
Hi,
Is there any method in (API/MFC)to find public key token of signed assemblies.
Warm Regards,
Mushq
|
|
|
|
|
|
double atof(
const char *string
);
-- Converts a string to double.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|