DLLTRACE as an AFXDLL fails ?
Mark Worrall -- 100237.3307@compuserve.com
Saturday, January 11, 1997
If you take the MSVC\MFC\SAMPLES\DLLTRACE app, and compile the exe and
compile the dll as is, i.e. as a USRDLL it works fine. But if you then
follow the instructions in MFC Tech Note 33 and recompile it as an AFXDLL
(i.e no code changes), when you run the calling EXE it GPFs on start up (on
both W3.11 and Win95) !
Does anyone know why this occurs and how to correct it ?
Mark
Environment: Windows95 Win3.1 MSVC 1.52
Hemanta Banerjee -- hemantab@indus.hclt.com
Monday, January 13, 1997
Hi ,
If DLLTRACE sample has a dialog within the DLL code.Hence when u do a load
library the resource context is not set to the library. Hence the Create or
DoModal is not able to get the resource and bang it crashes.
If the case is as told above then u should do a AfxSetResourceContext
to the hinst u get after loadlibrary.
> If you take the MSVC\MFC\SAMPLES\DLLTRACE app, and compile the exe and
> compile the dll as is, i.e. as a USRDLL it works fine. But if you then
> follow the instructions in MFC Tech Note 33 and recompile it as an AFXDLL
> (i.e no code changes), when you run the calling EXE it GPFs on start up (on
> both W3.11 and Win95) !
>
> Does anyone know why this occurs and how to correct it ?
>
> Mark
>
> Environment: Windows95 Win3.1 MSVC 1.52
>
>
Regards,
Hemanta Banerjee.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Office :- Residence :-
HCL Technologies Limited, #17, Sriramnagar 1st Cross,
50-53 Greams Road, Thiruvanmiyur,
Madras - 600 0006. Madras - 600 041.
Ph :- (91)-(44)-8279140,8279312 (91)-(44)-#######
email :- hemantab@hclt.com laddo@hotmail.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Вернуться в корень Архива
|