CompuServe Messages

#win16 app to win32 dll

    03-Aug-93 07:56:12
Sb: #win16 app to win32 dll
Fm: Dowell 75310,3150
To: all
I am trying to create a DLL under Windows NT so that it can be used by an application created under Visual C++ and run under windows 3.1 using win32s. After reading the WIN32S manual and an article I found on the Network developer CD I understand that it can be done using a universal THUNK to translate 16 to 32 bits and vice-versa. However, I am still a little unsure how do do this as I have not seen an example. The article I read, "Calling a Win32 DLL from a Windows 3.x Application" showed in the diagram three modules that I would have to create in addition to my Win 3.x application and my Win32 DLL; a 16-bit DLL (UT), a Win32 EXE (stub), and a Win32 DLL (UT). What exactly goes into each of these modules? If I do these correctly I shouldn't have to change my Win 3.x application or my Win32 DLL? Please point me to an example or template I can start from for this task as I am fairly new to windows programming.. Thank you very much! There is 1 Reply.