Solved

Thunking dlls with Delphi ???

Posted on 1998-07-22
10
225 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
This is the article from Delphi Magazine
http://www.itecuk.com/delmag/thunk95.htm

Rick
0
 
LVL 1

Author Comment

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

Thanx u both alot...



0
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
LVL 1

Expert Comment

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

Author Comment

by:dyancer
Comment Utility
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
Comment Utility
So where you able to do it Dyancer?

Did they help you out???

Rick
0
 
LVL 1

Author Comment

by:dyancer
Comment Utility
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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

763 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

11 Experts available now in Live!

Get 1:1 Help Now