i need to pass the window through this ctor, the create function did not work because i do not have
a dialog in my rc, all what i need to do is to modify the normal font dialog(disable some fields in it).
CTestFontDialog(LPLOGFONT lplfInitial, DWORD dwFlags, CDC* pdcPrinter, CWnd* pParentWnd) :
CFontDialog(lplfInitial, dwFlags, pdcPrinter, pParentWnd)//pParentWnd ???(is this the window of the sdi appliction???)
I am writing a application in which i use the stl list. through this list i m able to inserting the items but not able to remove the item from specific position. this is my class
ClipEntry(const ClipEntry& r);
const ClipEntry& operator=(const ClipEntry& r);
bool operator == (const ClipEntry& r);
I am inserting the items like this
HRESULT ClipPlayer::AddClip(char* path, ClipEntry** ppClip)
it = m_Clips.insert(m_Clips.end(), ClipEntry());
ClipEntry *pClip = &(*it);
*ppClip = pClip;
Is your m_Clips really declared as above? I.e., does it store pointers to ClipEntrys?
If it does, you shouldn't need to write a comparison operator for ClipEntry since std::list::remove() would simply compare the pointers in order to find a match. (Referring to you ongoing discussion with Stuart.)
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
I have an Application in which i am recovering Images from some devices.
now i want to display these image in vc++ application in such manner that when i recover an image then i save this image in a "Temp" folder, then i need to display this image into any list ctrl and then delete it, again i recover a image i save it it and display it and so on but i dont have any idea how to display image like this .
I have a windows application with several executable and Dll's, and I am trying to make an installer to packge them all together and generate a Setup program.
For this I am using Setup and Deployment project of MSVC 2005. The Installer I am making is working perfectly except It cannot create a desktop shortcut Icon and add a shortcut to the users program menu.
The project has an option to select the short cut, but it only allows you to select the folder where the shorcut is and not the executable file for which you want to make the shortcut
How do I select the executable file for which I want to make adesktop short cut and Icon ?
Thanx in advance
Last Visit: 31-Dec-99 19:00 Last Update: 8-Feb-23 14:00