[comp.sys.mac.programmer] 2 Junior questions...

rout@quads.uchicago.edu (Mark Routbort) (12/04/90)

I was wondering if anyone would be so kind as to help me out on these two
novice-type questions.


1)  I'm using THINK Pascal's 'open' routine and reference to the file buffer
variable (file^) to read my data files.  The problem I'm having is opening
a file in a folder that is different than the one that the compiled application
is in.  If I use the THINK Pascal function OldFileName, I get a filename in
the form Volume:Dir:SubDir:File that does work to open files in different 
folders.  However, I want to be able to filter out file types like when using
SFGetFile.  The filename from SFGetFile is just 'File.'  So, how can I 
get 'Volume:Dir:SubDir:File' from the SFReply info or otherwise.  I'd rather
_not_ use FSOpen and convert the application to such use because my boss
already has a bunch of data files that were created using the THINK interface.

2)  I am obviously having a conceptual problem with using SetPortBits and
CopyBits to draw off the screen and then copy my drawing to screen.  I can
get everything to work if I create a source GrafPort associated with a window
that is both onscreen and visible - but not otherwise.  So I think that I'm 
somehow not actually using a source other than ScreenBits.  Can someone send
me a bare bones code segment to actually set up a bitmap than can be drawn
into using QuickDraw calls invisibly?


With deep appreciation...




--

Mark Routbort                          Due to circumstances beyond my control,
rout@midway.uchicago.edu               There will be no big parade this Sunday.
                                           -- Colonel Scheisskopf in Catch-22