Solved

Thunking dlls with Delphi ???

Posted on 1998-07-22
10
227 Views
Last Modified: 2010-04-04
hello all
How can i call a 16 bit dll from my delphi3 application...
0
Comment
Question by:dyancer
10 Comments
 
LVL 3

Expert Comment

by:rickpet
ID: 1358441
First...you can only do this in Windows 95...WinNT does not support Thunks from 32bit apps to 16 bit Dll's.

You will need to do a "Flat Thunk"-you need a Thunk compiler or
you can make an undocumented api call to QT_Thunk

Books and magazines you should look into
"Special Edition Using Delphi 3" written by Miller, Powell, et al
published by Que
"Windows 95 System Programming Secrets" written by Matt Pietrek
published by IDG Books

Magizine articles
"The Delphi Magizine", "Beating The System: Thunking For Profit and Pleasure..." written by Dave Jewell.  Issue 11, July 1996.

Rick
0
 
LVL 3

Expert Comment

by:rickpet
ID: 1358442
If you get Special Edition Using Delphi 3...they have an excellent article on Thunks in chapter 32 page 982.  This should be more than sufficant...even has code and the import file for the needed Kernel32 calls...

Rick
0
 
LVL 4

Expert Comment

by:erajoj
ID: 1358443
Check this address:
     http://members.xoom.com/bgclarke/swthunk.html

32-bit -> 16-bit thunk Source Code:    
     http://members.xoom.com/bgclarke/Files/thunk.zip

/// John
0
 
LVL 3

Expert Comment

by:rickpet
ID: 1358444
This is the article from Delphi Magazine
http://www.itecuk.com/delmag/thunk95.htm

Rick
0
 
LVL 1

Author Comment

by:dyancer
ID: 1358445
Hello rickpet and erajoj
It seem that i'v got a lot of stuff to look at,

Thanx u both alot...



0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 1

Expert Comment

by:EmmDieh
ID: 1358446
Call32NT is another possibility
found for ex. :
http://sunsite.icm.edu.pl/delphi/ftp/d10free/call32nt.zip
0
 
LVL 1

Author Comment

by:dyancer
ID: 1358447
Hello there ,
i was very satisfied with the first two Experts "rickpet and erajoj" ,
and those answer my questions,
Any One of you who first send his comment as an ANSWER will recive the whole points.


thanx.
Dyancer  

0
 
LVL 3

Expert Comment

by:rickpet
ID: 1358448
So where you able to do it Dyancer?

Did they help you out???

Rick
0
 
LVL 1

Author Comment

by:dyancer
ID: 1358449
So, for every body who need to know how to use FLAT-Thunking
these are the Articles ordered by it's importance,
1) http://www.itecuk.com/delmag/thunk95.htm, it contain a good article with a good example of how to..
2) the Book "Special Edition Using Delphi 3" written by Miller,

other suggestions may be applicable , but i did not test them in my project...

0
 
LVL 3

Accepted Solution

by:
rickpet earned 200 total points
ID: 1358450
Dyancer...

Since you seemed to have you used both of my suggestions...I will post an answer...I'm glad I could be of service...

Rick
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Filemaker 14 vs Delphi Embarcadero 7 185
automatically logging in via bde delphi 3 67
Intraweb download file link ? 1 105
Adoquery sql  left join does not work 25 80
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Delivering innovative fully-managed cloud services for mission-critical applications requires expertise in multiple areas plus vision and commitment. Meet a few of the people behind the quality services of Concerto.
Need to grow your business through quality cloud solutions? With everything required to build a cloud platform and solution, you may feel like the distance between you and the cloud is quite long. Help is here. Spend some time learning about the Con…

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now