I want to know the complete method of msi installation because
The msi file created when installed is not displaying the pictures that are of .png type why does this happen and how to solve this problem?
Before creating msi when I execute the program in the vc++2008 its showing pictures. why I am not able to view png pictures when I create the same program msi other pics of bitmap type can be viewed.
I have placed png pictures in res folder.
and also followed the following procedure
solution explorer->ResourceFiles->right click mouse->add existing item->(added png files of res folder)
What else should I do to make my png pictures appear after installing msi.
[updated]
I have used picture ctrl to display png
BOOL CPictureCtrl::Load(BYTE* pData, size_t nSize)
{
return LoadFromStream(pData, nSize);
}
....
CPictureCtrl m_picCtrl;
CFile picFile;
if(picFile.Open(_T("res/uprightAcousticPiano.png"), CFile::modeReadWrite | CFile::typeBinary))
{
cout("opened");
BYTE* pBuffer = new BYTE[(unsigned int)picFile.GetLength()];
if(pBuffer != NULL)
{
picFile.Read(pBuffer, (UINT)picFile.GetLength());
cout("displayed");
m_picCtrl.Load(pBuffer, (size_t)picFile.GetLength());
delete pBuffer;
}
}
....