Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uwm.edu!src.honeywell.com!msi.umn.edu!cs.umn.edu!ub.d.umn.edu!mfort From: mfort@ub.d.umn.edu (Michael Fort) Newsgroups: comp.sys.mac.programmer Subject: Segment Loading Keywords: Turbo, Segment Loading, Launch Message-ID: <963@ub.d.umn.edu> Date: 1 Mar 91 18:57:30 GMT Sender: mfort@ub.d.umn.edu Organization: University of Minnesota, Duluth. Information Services. Lines: 25 Here is what I am trying to do... Launch a file from a Turbo Pascal (sorry LSP users) application using the _Launch trap macro. Obviously it as an assembly only routine. Sooo, I was going to use a simple freeware assembler to write a subroutine of code to be called from Turbo. I could then include the code resource in the resource fork as a CODE resource, and load it in. 1) Can I just load it in through resource manager calls, or 2) Is there a segment loader routine that does this? I would really appreciate any sample code for using the _Launch trap to launch a file by name (and possibly heirarchical). Also, any such sample code using the resource from Turbo would be great! Two last inquisitions... 1) How do you stop the damn squeeking of a Mac Plus keyboard, and 2) How would you cast a pointer to a code resource to a function in TP? Am I asking too much ?!?! Thank you ahead of time, Mike Fort Please send email perferably to mfort@ub.d.umn.edu