[comp.sys.mac.programmer] 2 Problems

rg2c+@andrew.cmu.edu (Robert Nelson Gasch) (11/28/90)

Hi,
I've got 2 problems that have become really annoying over the past
couple of days. If anybody could shed any light on these, I'd
be very glad.

1) I'm used to the standard file extensions of C, so the Mac system
gives me some trouble. I open a file using 
    PBOpen (&ioParamVariable, 0)
so far everything is fine. Now from my understanding of the matter, I'm
supposed to read from the file using
    PBRead (&openIOParmBlkVariable, 0);
which is supposed to place the contents of the file in the buffer. How
do I specify the size of this buffer? Can I avoid the last call and use
standard C I/O functions to read from the file? If so, where is the pointer
to the file stored, after I open it as above?

2)
    I have a regular window, and I draw some lines and dots in it. When a
dialogue box (such as in problam 1) is used, the window is not refreshed
afterwoods. I seem to be using all the proper update calls (GetPort, SetPort,
BeginUpdate, EndUpdate, SetPort) yet it does not get updated. Any hints??


Thanx alot --> Rob