• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 235
  • Last Modified:

Thunking dlls with Delphi ???

hello all
How can i call a 16 bit dll from my delphi3 application...
0
dyancer
Asked:
dyancer
1 Solution
 
rickpetCommented:
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
 
rickpetCommented:
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
 
erajojCommented:
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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
rickpetCommented:
This is the article from Delphi Magazine
http://www.itecuk.com/delmag/thunk95.htm

Rick
0
 
dyancerAuthor Commented:
Hello rickpet and erajoj
It seem that i'v got a lot of stuff to look at,

Thanx u both alot...



0
 
EmmDiehCommented:
Call32NT is another possibility
found for ex. :
http://sunsite.icm.edu.pl/delphi/ftp/d10free/call32nt.zip
0
 
dyancerAuthor Commented:
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
 
rickpetCommented:
So where you able to do it Dyancer?

Did they help you out???

Rick
0
 
dyancerAuthor Commented:
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
 
rickpetCommented:
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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now