MFC-based control panel under VC++ 4.x
David Elliott -- dce@netcom.com Friday, July 12, 1996 Environment: VC++ 4.0/4.1, Win95, Win NT 3.51 Last month, I asked how to create a control panel applet using MFC/VC++ 4.x. I was directed to a sample on MSDN written by Nigel Thompson. After trying what was outlined in the sample and having it not work, I decided to try the sample itself. The DLL on MSDN works just fine when installed on Win95, but if I rebuild it under VC++ 4.0 or 4.1, it doesn't work. The info in the article is all based on VC++ 2.2, which I don't have, so I can't even figure out how to debug it. I have some info about calling rundll32.exe, but when I try this, it tells me that shell32.dll is missing something, even when I give explicit paths to the files. Any ideas out there? David Elliott - dce@netcom.com Visit The Land of the Squishy - http://www.btw.com/dce/
Marvin Hymowech -- Marvin_Hymowech@msn.com Wednesday, July 17, 1996 I presume you're referring to the "ntcplapp" sample. I encountered the same problem in January of this year and called Microsoft Tech support. Their response follows: "Under VC4.0 with MFC compiling a Control Panel applet under NT results in a clean build, but no applet displayed in Control Panel. Instead Control Panel displays two copies of the ODBC applet. The problem is caused by VC 4.0 resolving the CPIApplet entry point in the new applet by making a call to the ODBC library. VC 4.0 MFC includes the ODBC library by default. [David's note: Boy, I just don't get this at all. What the heck is this doing in a library?] The workaround is to add ODBCP32.lib to VC 4.0's Build Settings Linker Input Ignore Libraries edit control. This will allow the new applet to be correctly called by CONTROL.EXE." Hope this helps, - Marvin Hymowech ------------------------------------------------------- >>Environment: VC++ 4.0/4.1, Win95, Win NT 3.51 >>Last month, I asked how to create a control panel applet using >>MFC/VC++ 4.x. I was directed to a sample on MSDN written by >>Nigel Thompson. >>After trying what was outlined in the sample and having it not work, I >>decided to try the sample itself. The DLL on MSDN works just fine when >>installed on Win95, but if I rebuild it under VC++ 4.0 or 4.1, it >>doesn't work. >>The info in the article is all based on VC++ 2.2, which I don't have, >>so I can't even figure out how to debug it. I have some info about >>calling rundll32.exe, but when I try this, it tells me that shell32.dll >>is missing something, even when I give explicit paths to the files. >>Any ideas out there? >>David Elliott - dce@netcom.com >>Visit The Land of the Squishy - http://www.btw.com/dce/ --------------------------------------------------------------------
| Вернуться в корень Архива |