Click here to Skip to main content
15,919,613 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: STL and UNICODE Pin
[James Pullicino]3-Jul-01 5:18
[James Pullicino]3-Jul-01 5:18 
Generalload image Pin
Kathrin2-Jul-01 16:08
Kathrin2-Jul-01 16:08 
GeneralRe: load image Pin
Christian Graus2-Jul-01 17:38
protectorChristian Graus2-Jul-01 17:38 
GeneralRe: load image Pin
Kathrin3-Jul-01 21:10
Kathrin3-Jul-01 21:10 
GeneralRe: load image Pin
Erik Thompson3-Jul-01 7:28
sitebuilderErik Thompson3-Jul-01 7:28 
GeneralRe: load image Pin
Kathrin3-Jul-01 22:00
Kathrin3-Jul-01 22:00 
GeneralRe: load image Pin
Erik Thompson4-Jul-01 7:24
sitebuilderErik Thompson4-Jul-01 7:24 
GeneralRe: load image Pin
Kathrin4-Jul-01 19:08
Kathrin4-Jul-01 19:08 
Well, thanks for your suggestion, I tried it and it works.
Now, can I bother you again? I hope I can……..(please……………Smile | :) )
I’m sorry because I forgot to tell you that I what want is to have a bitmap shown after I input a code (in code named : m_strNumber) and I clicked a certain button which works as a trigger.
That’s why on the codes written in my previous letter I tried to load the image on the function : void CImageDlg::OnBitmap().
So my code looks like this:
void CImageDlg::OnBitmap()
{
// Load the image
UpdateData(TRUE);
if(m_strNumber=="001")
m_bmpBitmap.LoadBitmap(IDB_BITMAP1);
else if(m_strNumber=="002")
m_bmpBitmap.LoadBitmap(IDB_BITMAP2);

m_bShowImage = !m_bShowImage;
// Invalidate the second dialog window
m_dlgImage.Invalidate()
}

I have a strange result that if I input the number = 001, and then clicked the OK button, the bitmap is showing perfectly. But then, if I change the number to 002 and clicked the OK button without exiting my apps, my apps will results an error.
How did it happened, did I missed something again? Or do you have any other idea on how I can accomplish it.
Thanks again for your help.

Kathrin
Smile | :)
GeneralRe: load image Pin
Christian Graus4-Jul-01 19:15
protectorChristian Graus4-Jul-01 19:15 
Generalchange filename Pin
2-Jul-01 14:07
suss2-Jul-01 14:07 
GeneralRe: change filename Pin
Carlos Antollini2-Jul-01 14:56
Carlos Antollini2-Jul-01 14:56 
GeneralRe: change filename Pin
2-Jul-01 15:21
suss2-Jul-01 15:21 
GeneralRe: change filename Pin
3-Jul-01 5:22
suss3-Jul-01 5:22 
GeneralCOM IDL Pin
William Bartholomew2-Jul-01 12:42
William Bartholomew2-Jul-01 12:42 
GeneralRe: COM IDL Pin
Richard Caetano2-Jul-01 13:43
Richard Caetano2-Jul-01 13:43 
GeneralRe: COM IDL Pin
Richard Caetano2-Jul-01 13:47
Richard Caetano2-Jul-01 13:47 
GeneralAudio looping using waveform functions. Pin
2-Jul-01 10:47
suss2-Jul-01 10:47 
GeneralCStatusBarCtrl::SetIcon Pin
Rickard Andersson202-Jul-01 9:42
Rickard Andersson202-Jul-01 9:42 
GeneralRe: CStatusBarCtrl::SetIcon Pin
Michael Martin2-Jul-01 13:50
professionalMichael Martin2-Jul-01 13:50 
GeneralProblem importing mso97.dll Pin
Jamie Nordmeyer2-Jul-01 9:09
Jamie Nordmeyer2-Jul-01 9:09 
GeneralRe: Problem importing mso97.dll Pin
Jamie Nordmeyer2-Jul-01 12:35
Jamie Nordmeyer2-Jul-01 12:35 
GeneralRe: Problem importing mso97.dll Pin
Bret Faller3-Jul-01 8:47
Bret Faller3-Jul-01 8:47 
GeneralDynamic query ... Pin
Hadi Rezaee2-Jul-01 8:32
Hadi Rezaee2-Jul-01 8:32 
GeneralRe: Dynamic query ... Pin
Carlos Antollini2-Jul-01 15:20
Carlos Antollini2-Jul-01 15:20 
GeneralRe: Dynamic query ... Pin
Hadi Rezaee2-Jul-01 17:10
Hadi Rezaee2-Jul-01 17:10 

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.