DLL & win95 (fwd)
Djamal SIMOHAND -- djamal@lyohp5.in2p3.fr Wednesday, October 09, 1996 Environment: VC++1.5 and Win95 Hi All, I have developed and application by using VC++ 1.5 under win 95. When i execute for the first time my application from explorer it works fine. But when i try to execute again my application from the explorer i received an error message: "windows cannot open more than one copy of this program" This problem doesn't exist if i execute my application from workbench of VC++. In order to find where is the problem i use the debug win and i remarked this thing: When i execute my application inside VC++ and i out from my application i receive these messages in the debug win: "MFCDLL Initializing" "Inside of MFC-Supplied _WEP, Calling (virtual) CWinApp::ExitInstance()" But when i execute my application from explorer and i out from my application i receive only the first message in debug win: "MFCDLL Initializing" Any suggestions about this problem... This problem doesn't exist at all when i use my application with win3.x Thanks, Dja PS: My application use the Large model and MFC250.DLL. it uses also two others DLL develloped by me: the first one is an _USRDLL and the second one is an _AFXDLL.
Yury Peskin -- YPeskin@vendorsystems.com Thursday, October 10, 1996 Djamal, Do you load your own DLLs with LoadLibrary()? If so, do you release them with FreeLibrary() when you're exiting? Hope this helps, Yury
Alun -- alun@des.co.uk Friday, October 11, 1996 ======== Original Message ======== Environment: VC++1.5 and Win95 Hi All, I have developed and application by using VC++ 1.5 under win 95. When i execute for the first time my application from explorer it works fine. But when i try to execute again my application from the explorer i received an error message: "windows cannot open more than one copy of this program" This problem doesn't exist if i execute my application from workbench of VC++. In order to find where is the problem i use the debug win and i remarked this thing: When i execute my application inside VC++ and i out from my application i receive these messages in the debug win: "MFCDLL Initializing" "Inside of MFC-Supplied _WEP, Calling (virtual) CWinApp::ExitInstance()" But when i execute my application from explorer and i out from my application i receive only the first message in debug win: "MFCDLL Initializing" Any suggestions about this problem... This problem doesn't exist at all when i use my application with win3.x Thanks, Dja PS: My application use the Large model and MFC250.DLL. it uses also two others DLL develloped by me: the first one is an _USRDLL and the second one is an _AFXDLL. ======== Fwd by: Alun ======== Hi We had a similar problem with DLL's when had to support Win 95, the only difference being that our DLL's are all written in C using SDK and not C++ using MFC. We found that by adding the SHARED flag to the DATA line in the Module Definition file cured the problem. ie: Old line DATA PRELOAD MOVEABLE New line DATA PRELOAD MOVEABLE SHARED Hope this helps The Loon
| Вернуться в корень Архива |