Click here to Skip to main content
15,888,521 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to retrofit C++ app to support B/S? Pin
kuibing28-Dec-08 19:01
kuibing28-Dec-08 19:01 
AnswerRe: How to retrofit C++ app to support B/S? Pin
Richard Andrew x6428-Dec-08 23:47
professionalRichard Andrew x6428-Dec-08 23:47 
QuestionUnable to Load Image Other than .bmp by LoadImage Function? [modified] Pin
Le@rner28-Dec-08 18:09
Le@rner28-Dec-08 18:09 
AnswerRe: Unable to Load Image Other than .bmp by LoadImage Function? Pin
Hamid_RT28-Dec-08 19:22
Hamid_RT28-Dec-08 19:22 
GeneralRe: Unable to Load Image Other than .bmp by LoadImage Function? Pin
Le@rner28-Dec-08 19:26
Le@rner28-Dec-08 19:26 
GeneralRe: Unable to Load Image Other than .bmp by LoadImage Function? Pin
Hamid_RT28-Dec-08 19:33
Hamid_RT28-Dec-08 19:33 
GeneralRe: Unable to Load Image Other than .bmp by LoadImage Function? [modified] Pin
Le@rner28-Dec-08 19:50
Le@rner28-Dec-08 19:50 
GeneralRe: Unable to Load Image Other than .bmp by LoadImage Function? Pin
Hamid_RT28-Dec-08 20:01
Hamid_RT28-Dec-08 20:01 
You have this line on your code:

if(!bitmap.Attach(::LoadImage(
::GetModuleHandle(NULL), filename, IMAGE_BITMAP, 0, 0,
LR_LOADFROMFILE | LR_CREATEDIBSECTION | LR_DEFAULTSIZE))) {
AfxMessageBox(_T("Error loading bitmap!")); return;
}

change to it:
CImage m;
m.Load(_T("c:\\1.jpg"));
....
....
....
if(!bitmap.Attach(m_.Detach()))
{
AfxMessageBox(_T("Error loading bitmap!")); return;
}

Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )

GeneralRe: Unable to Load Image Other than .bmp by LoadImage Function? Pin
Le@rner28-Dec-08 20:25
Le@rner28-Dec-08 20:25 
GeneralRe: Unable to Load Image Other than .bmp by LoadImage Function? Pin
Hamid_RT28-Dec-08 20:50
Hamid_RT28-Dec-08 20:50 
Questioncrash with vectors in Release Pin
VC++Maniac28-Dec-08 17:25
VC++Maniac28-Dec-08 17:25 
AnswerRe: crash with vectors in Release Pin
_AnsHUMAN_ 28-Dec-08 17:38
_AnsHUMAN_ 28-Dec-08 17:38 
GeneralRe: crash with vectors in Release Pin
VC++Maniac28-Dec-08 23:32
VC++Maniac28-Dec-08 23:32 
GeneralRe: crash with vectors in Release Pin
David Schumaker17-Feb-09 7:35
David Schumaker17-Feb-09 7:35 
GeneralRe: crash with vectors in Release Pin
Maximilien30-Jun-09 8:41
Maximilien30-Jun-09 8:41 
AnswerRe: crash with vectors in Release Pin
semitae11-Feb-10 1:26
semitae11-Feb-10 1:26 
QuestionHANDLE? Pin
dec8228-Dec-08 16:30
dec8228-Dec-08 16:30 
AnswerRe: HANDLE? Pin
Subrat 470826628-Dec-08 16:58
Subrat 470826628-Dec-08 16:58 
AnswerRe: HANDLE? Pin
Hamid_RT28-Dec-08 18:04
Hamid_RT28-Dec-08 18:04 
QuestionEvent driven, blocking Pipe for MFC? Pin
nobaq28-Dec-08 11:54
nobaq28-Dec-08 11:54 
AnswerRe: Event driven, blocking Pipe for MFC? Pin
Richard Andrew x6428-Dec-08 11:57
professionalRichard Andrew x6428-Dec-08 11:57 
GeneralRe: Event driven, blocking Pipe for MFC? Pin
nobaq28-Dec-08 12:26
nobaq28-Dec-08 12:26 
GeneralRe: Event driven, blocking Pipe for MFC? Pin
Richard Andrew x6428-Dec-08 12:30
professionalRichard Andrew x6428-Dec-08 12:30 
GeneralRe: Event driven, blocking Pipe for MFC? Pin
nobaq28-Dec-08 12:45
nobaq28-Dec-08 12:45 
GeneralRe: Event driven, blocking Pipe for MFC? Pin
Richard Andrew x6428-Dec-08 18:50
professionalRichard Andrew x6428-Dec-08 18:50 

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.