TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: All
from: Dan Larson
date: 1994-10-28 01:19:16
subject: 16-BIT TO 32-BIT CALLBACK

Can anyone help me onthis one:

I have (almost) successfully interfaced 32-bit CSet++ 2.1 code with the 16-bit
Lotus Notes API libraries. Yes, I got the linkage set up right, Yes i found all
the places where I have to manually thunk pointers within structures ( I do thi

using a union between a _Seg16 declaration and a 32-bit declaration...), and
pointer to pointers ... so far so good.....

My problems start with NSFSearchProc(). I successfully got the linkage right an

all of the paramters thunked on entry to the "action_routine", a callback
function. Everything inside the callback routine works just fine until the firs

time the callback routine tries to call another function. I get an access
violation right at the point where the assembly code starts pushing paramters o

the stack for the function call. I am assuming that the problem is that the
stack pointer handed to me by the 16-bit NSFSearch function calling my 32-bit
"action_routine" needs to be thunked before I can use it. I haven't the
slightest idea how to make sure my stack pointer gets thunked when the 16-bit
code calls my 32-bit routine... Would anyone who knows how please help me out? 

am sure I could pull it off if I had an assembler (just imitate what the
compiler does when it thunks a pointer...), but I don't have an assembler or
16-bit compiler. A simple example of a 32-bit routine that can be called by
16-bit code with all of the proper thunking and linkage would be nice....

Thank you in advance... I am in need of a quick response so if you can reply by
CServe my address there is 75324,1422

___
 * MR/2 1.52 NR * Psychoceramics: The study of crackpots.

--- WILDMAIL!/WC v4.10g

* Origin: Freezing Point BBS - WDNet HQ - Mpls MN: (1:282/85.0)
SEEN-BY: 12/2442 54/54 620/243 624/50 632/348 640/820 690/660 711/409 410 413
SEEN-BY: 711/430 807 808 809 934 942 949 712/353 623 713/888 800/1
@PATH: 282/85 1 270/101 396/1 3615/50 229/2 12/2442 711/409 54/54 711/808 809
@PATH: 711/934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.