Visual Basic - WIN16 DLL in WIN32 System

Life is soft - evento anual de software empresarial
 
Vista:

WIN16 DLL in WIN32 System

Publicado por Pichardo (1 intervención) el 30/04/2001 20:45:46
Como cargo una DLL hecha para WIN16 en un programa Visual Basic de WIN32 ? Tomar en cuenta que en WIN16 no se exportan los nombres de funciones como se hace para WIN32.
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:WIN16 DLL in WIN32 System

Publicado por Vicor Garrido (3 intervenciones) el 23/11/2001 16:16:30
Ha pasado mucho tiempo desde que pusiste este mensaje, espero aún te sea útil. Es un texto que encontre en la web.

Calling 16-bit Code from Win32-based Apps in Windows 95

PSS ID Number: Q125715

Authored 02-Feb-1995 Last modified 01-Jun-1995

The information in this article applies to:

- Microsoft Win32 Software Development Kit (SDK)

SUMMARY

As a developer, you may need to access the functionality provided by a 16-
bit DLL from your Win32-based applications. This is true particularly when
you do not have the source code for the DLL so that you can port it to
Win32. This article discusses the mechanism by which Win32-based DLLs can
call Windows-based DLLs. The mechanism is called a thunk and the method
implemented under Windows 95 is called a flat thunk.

The three major steps in writing the thunk code are:

1. Creating the Thunk Script
2. Building the Win32-based DLL
3. Building the Windows-based DLL

MORE INFORMATION

The recommended way to design a thunk call is to isolate all thunk
specific code in DLLs (a 16-bit DLL and a 32-bit DLL, to provide both sides
of the thunk). That way, you can install certain DLLs on one platform and
replace them on another platform, for portability.

Designing a new flat thunk involves creating a thunk script (.THK file).
This script is compiled with the Thunk Compiler into an assembly file. This
file is assembled using two different flags: -DIS_32 and -DIS_16. This

allows you to create both the 16-bit and 32-bit object modules. These
object modules are linked in the Windows-based and Win32-based DLLs%
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

RE:WIN16 DLL in WIN32 System

Publicado por Vicor Garrido (3 intervenciones) el 23/11/2001 16:16:39
Ha pasado mucho tiempo desde que pusiste este mensaje, espero aún te sea útil. Es un texto que encontre en la web.

Calling 16-bit Code from Win32-based Apps in Windows 95

PSS ID Number: Q125715

Authored 02-Feb-1995 Last modified 01-Jun-1995

The information in this article applies to:

- Microsoft Win32 Software Development Kit (SDK)

SUMMARY

As a developer, you may need to access the functionality provided by a 16-
bit DLL from your Win32-based applications. This is true particularly when
you do not have the source code for the DLL so that you can port it to
Win32. This article discusses the mechanism by which Win32-based DLLs can
call Windows-based DLLs. The mechanism is called a thunk and the method
implemented under Windows 95 is called a flat thunk.

The three major steps in writing the thunk code are:

1. Creating the Thunk Script
2. Building the Win32-based DLL
3. Building the Windows-based DLL

MORE INFORMATION

The recommended way to design a thunk call is to isolate all thunk
specific code in DLLs (a 16-bit DLL and a 32-bit DLL, to provide both sides
of the thunk). That way, you can install certain DLLs on one platform and
replace them on another platform, for portability.

Designing a new flat thunk involves creating a thunk script (.THK file).
This script is compiled with the Thunk Compiler into an assembly file. This
file is assembled using two different flags: -DIS_32 and -DIS_16. This

allows you to create both the 16-bit and 32-bit object modules. These
object modules are
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

RE:WIN16 DLL in WIN32 System

Publicado por Vicor Garrido (3 intervenciones) el 23/11/2001 16:17:00
Ha pasado mucho tiempo desde que pusiste este mensaje, espero aún te sea útil. Es un texto que encontre en la web.

Calling 16-bit Code from Win32-based Apps in Windows 95

PSS ID Number: Q125715

Authored 02-Feb-1995 Last modified 01-Jun-1995

The information in this article applies to:

- Microsoft Win32 Software Development Kit (SDK)

SUMMARY

As a developer, you may need to access the functionality provided by a 16-
bit DLL from your Win32-based applications. This is true particularly when
you do not have the source code for the DLL so that you can port it to
Win32. This article discusses the mechanism by which Win32-based DLLs can
call Windows-based DLLs. The mechanism is called a thunk and the method
implemented under Windows 95 is called a flat thunk.

The three major steps in writing the thunk code are:

1. Creating the Thunk Script
2. Building the Win32-based DLL
3. Building the Windows-based DLL

MORE INFORMATION

The recommended way to design a thunk call is to isolate all thunk
specific code in DLLs (a 16-bit DLL and a 32-bit DLL, to provide both sides
of the thunk). That way, you can install certain DLLs on one platform and
replace them on another platform, for portability.

Designing a new flat thunk involves creating a thunk script (.THK file).
This script is compiled with the Thunk Compiler into an assembly file. This
file is assembled using two different flags: -DIS_32 and -DIS_16. This

allows you to create both the 16-bit and 32-bit object modules. These
object modules are
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar