Click here to Skip to main content
15,898,981 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Long Running Program Pin
Ravi Bhavnani26-Dec-08 11:35
professionalRavi Bhavnani26-Dec-08 11:35 
QuestionNeed help for numericupdwon Pin
sai5624-Dec-08 15:34
sai5624-Dec-08 15:34 
AnswerRe: Need help for numericupdwon Pin
Code-o-mat25-Dec-08 6:52
Code-o-mat25-Dec-08 6:52 
QuestionHow to write assignment operator for a class with constant member variable? Pin
ComplexLifeForm24-Dec-08 8:07
ComplexLifeForm24-Dec-08 8:07 
AnswerRe: How to write assignment operator for a class with constant member variable? Pin
Code-o-mat24-Dec-08 9:13
Code-o-mat24-Dec-08 9:13 
AnswerRe: How to write assignment operator for a class with constant member variable? Pin
Stuart Dootson24-Dec-08 13:15
professionalStuart Dootson24-Dec-08 13:15 
GeneralRe: How to write assignment operator for a class with constant member variable? Pin
ComplexLifeForm25-Dec-08 4:54
ComplexLifeForm25-Dec-08 4:54 
QuestionImage problem ? Pin
Le@rner24-Dec-08 0:24
Le@rner24-Dec-08 0:24 
Hi all,

in printing i want to print a image i m using this code.its works but the imgae displayed very-very small.or its only works for image that is add in resource.

<br />
CBitmap bmp;<br />
if (bmp.LoadBitmap(IDB_BITMAP1)!=0)<br />
{<br />
BITMAP bmpInfo;<br />
CRect rect;<br />
bmp.GetBitmap(&bmpInfo);<br />
<br />
CDC dcMemory;<br />
dcMemory.CreateCompatibleDC(pDC);<br />
<br />
CBitmap* pOldBitmap = dcMemory.SelectObject(&bmp);<br />
<br />
int nX = rect.left + (rect.Width() - bmpInfo.bmWidth) / 2;<br />
int nY = rect.top + (rect.Height() - bmpInfo.bmHeight) / 2;<br />
<br />
pDC->BitBlt(rect.left, rect.top, bmpInfo.bmWidth, bmpInfo.bmHeight, &dcMemory,0, 0, SRCCOPY);<br />
}<br />
<br />


i want to use any image that is browse by any location.please tell me what can i do for 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

AnswerRe: Image problem ? Pin
Naveen24-Dec-08 0:34
Naveen24-Dec-08 0:34 
GeneralRe: Image problem ? Pin
Le@rner24-Dec-08 0:42
Le@rner24-Dec-08 0:42 
GeneralRe: Image problem ? Pin
Naveen24-Dec-08 0:48
Naveen24-Dec-08 0:48 
GeneralRe: Image problem ? Pin
Hamid_RT24-Dec-08 0:51
Hamid_RT24-Dec-08 0:51 
GeneralRe: Image problem ? Pin
Code-o-mat24-Dec-08 6:03
Code-o-mat24-Dec-08 6:03 
AnswerRe: Image problem ? Pin
KASR124-Dec-08 1:47
KASR124-Dec-08 1:47 
Questionmedia streaming on a network! Pin
Mustapha Rédouane23-Dec-08 23:34
Mustapha Rédouane23-Dec-08 23:34 
AnswerRe: media streaming on a network! Pin
Naveen24-Dec-08 0:25
Naveen24-Dec-08 0:25 
AnswerRe: media streaming on a network! Pin
Varghese Paul M24-Dec-08 0:25
Varghese Paul M24-Dec-08 0:25 
AnswerRe: media streaming on a network! Pin
Hamid_RT24-Dec-08 0:58
Hamid_RT24-Dec-08 0:58 
QuestionPrint Dialog "Print To File" Pin
Paresh Chitte23-Dec-08 22:41
Paresh Chitte23-Dec-08 22:41 
QuestionHow to convert bianry data to Base64 Pin
Dark_eye23-Dec-08 21:33
Dark_eye23-Dec-08 21:33 
AnswerRe: How to convert bianry data to Base64 Pin
Richard Andrew x6424-Dec-08 5:19
professionalRichard Andrew x6424-Dec-08 5:19 
GeneralRe: How to convert bianry data to Base64 [modified] Pin
Dark_eye24-Dec-08 6:28
Dark_eye24-Dec-08 6:28 
GeneralRe: How to convert bianry data to Base64 Pin
Richard Andrew x6424-Dec-08 7:07
professionalRichard Andrew x6424-Dec-08 7:07 
GeneralRe: How to convert bianry data to Base64 Pin
Member 419459324-Dec-08 15:22
Member 419459324-Dec-08 15:22 
GeneralRe: How to convert bianry data to Base64 [modified] Pin
Dark_eye24-Dec-08 22:40
Dark_eye24-Dec-08 22:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.