It turns out this isn't an issue any more. When I didn't have any luck here I posted the issue on Experts-Exchange and got a usable reply within hours.
Thanks for the quick reply. I'm not certain what is meant by
>>"step in" in the line with FromHandlePermanent.<<
If it refers to the debugger, I have stepped through the FromHandlePermanent function, and it runs fine. The problem is that it returns a non-NULL pWnd, presumably...
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...
The two posts offered are correct. Unfortunately, I didn't specify that I'm using MFC with MDI. Can anyone tell me how to identify my .exe name from inside the program in this situation?
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".
abp...Thanks for the quick response.
(1) When I look in the registry, the only keys under devbld.pkg are for 6.0; I don't see any sign of 4.1.
(2) Even if I could find 4.1, I would be nervous about deleting a key for 6.0, since I will be wanting to use 6.0 when I work on my other projects...
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.