Jeevan Sunkersett
June 3rd, 1999, 01:44 AM
Hi,
I am tackling a situation where-in I want to access functions in a 32 bit DLL, from within a 16 bit application, under a Windows NT, 4.0 worksation environment.
For this I have found one has to resort to Thunk DLL's, "Generic Thunks" under the WinNT environment.
I have followed MSDN documentation, under
Platform SDK -- Building Appls -- Programming Techniques -- Generic Thunks
and accordingly wrote a sample 32 Dll, viz., Dll32.dll, with one exported function -- MyFunc()
I have a 16bit MFC application, MFC16.exe, built using MSVC ver1.52, from where I want to call MyFunc(), in DLL32.DLL.
So in the Mfc16, appl, I wrote the code as defined in MSDN, viz.,
Load the 32 bit library using LoadLibraryEx32W. For this one also has to add an imports section to the 16bit DEF file, defining, where to locate the LoadLibraryEx32W.
However the Mfc16, application cannot compile, giving the
error C2065: 'LoadLibraryEx32W' : undeclared identifier
error C2064: term does not evaluate to a function
error C2562: 'OnFileNew' : 'void' function returning a value
Any clues.....
thanks in advance.
Jeevan S
I am tackling a situation where-in I want to access functions in a 32 bit DLL, from within a 16 bit application, under a Windows NT, 4.0 worksation environment.
For this I have found one has to resort to Thunk DLL's, "Generic Thunks" under the WinNT environment.
I have followed MSDN documentation, under
Platform SDK -- Building Appls -- Programming Techniques -- Generic Thunks
and accordingly wrote a sample 32 Dll, viz., Dll32.dll, with one exported function -- MyFunc()
I have a 16bit MFC application, MFC16.exe, built using MSVC ver1.52, from where I want to call MyFunc(), in DLL32.DLL.
So in the Mfc16, appl, I wrote the code as defined in MSDN, viz.,
Load the 32 bit library using LoadLibraryEx32W. For this one also has to add an imports section to the 16bit DEF file, defining, where to locate the LoadLibraryEx32W.
However the Mfc16, application cannot compile, giving the
error C2065: 'LoadLibraryEx32W' : undeclared identifier
error C2064: term does not evaluate to a function
error C2562: 'OnFileNew' : 'void' function returning a value
Any clues.....
thanks in advance.
Jeevan S