I'm trying to dynamically subclass a field on a property page. The code looks like this:
BOOL CMyPropertyPage::OnInitDialog()
{
CPropertyPage::OnInitDialog();
m_myedithandler.SubclassDlgItem(IDC_TEXT,this);
return TRUE;
}
The SubclassDlgItem fails on an ASSERT in
BOOL...
How do I tell from inside a program what name the .exe has?
For example, if the running program is called myprog.exe, I want to have code in the program that will get a string containing "myprog.exe".
I have two versions of my app. The older one was created in Visual C++ 4.1, and I'm maintaining it there. The newer version is being developed in Visual C++ 6.0, which was of course installed more recently.
I am doing some revisions to the old version, under 4.1. When 'Execute' finds a...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.