Biancu wrote:
class CDlgClass
void CIngresarResDlg::OnOK()
{
Imagen nuevaRes ;
This is an image object (presumably) that is constructed with no current or
parent window. It's just an empty constructor.
Imagen* pnuevaRes;
pnuevaRes = &nuevaRes;
pnuevaRes ->SendMessage (WM_INGRESAR_RES , 0, 0);
}
The sender Object needs a pointer to the receiver class, which is the
Image class.
You need to learn more C++ before attempting to use MFC. (You might also try
to get a better library than MFC. It is a very bad example of C++
architecture.) The SendMessage() method doesn't "need" a pointer. If
pnuevaRes->SendMessage() would work, then nuevaRes.SendMessage() would
work, with a dot.
But either way it won't work, because the nuevaRes object is not linked to
any real window to receive the message.
From here, you must use Google Groups to find a newsgroup that covers MFC.
(You might also find one that uses a language you like besides English.)
They will tell you how to send the message to the correct image control.
This newsgroup is only qualifed to discuss the raw C++ language itself. We
know -> but not Image objects!
--
Phlip
http://www.greencheese.us/ZeekLand <-- NOT a blog!!!