16-dll for 95
Susanto Purnama -- purnama@actsw.amat.com Monday, January 22, 1996 Hi, I'm planning to port the existing Win3.1 MFC program to win95. The program makes use of 16dll. And I still need the dll in win95. question: Will using 16dll in 95 cause any side-effect? thanks Susanto Purnama purnama@actsw.amat.com
Brad Wilson -- bradw@netnet.net Wednesday, January 24, 1996 [Mini-digest: 3 responses] Susanto Purnama wrote: > Hi, I'm planning to port the existing Win3.1 MFC program to > win95. The program makes use of 16dll. And I still > need the dll in win95. > question: Will using 16dll in 95 cause any side-effect? Using a 16-bit DLL from a 32-bit application is difficult. You cannot directly call any of the functions in the 16-bit DLL. You have a variety of methods that you could use (such as creating a 16-bit application that links to the DLL and creates a hidden window, and passing messages to do things). If the DLL is even moderately complex, chances are that it's going to be extremely difficult to do this. You should get a 32-bit DLL counterpart if possible. -- class CBradWilson : public CWorldWatchProgrammingTeam { public: void GetInetAddr ( CString& s ) { s = "bradw@exptech.com"; } void GetE164Addr ( CString& s ) { s = "+1 (810) 620-9803"; } void GetURL ( CString& s ) { s = "http://www.exptech.com"; } void GetDisclaimer( CString& s ) { s = "All I say is fact :-p"; } }; // QOTW: "Don't think of yourself as the least intelligent creature in this // room ... if you consider the entire planet, you're smarter than // literally hundreds of people." - Dogbert to Dilbert -----From: Marty FriedCommon problem. No easy solution. You can use the Thunking mechanism (flat thunking, I believe for Win95). There is a different thunking scheme for NT, and for Win32s. They aren't compatible. It's not fun. -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- Marty Fried (mfried@linex.com) Marin County, California -----From: Doug Boone Well, assuming that you mean that you're using a 16-bit DLL (I don't have a 16dll anywhere) the word "lots" comes to mind... It means you're going to get into thunking land which is pretty trecherous. You can do it but you need a really good reason.
| Вернуться в корень Архива |