• Hello Guest! We're hosting a challenge to welcome vintage Intel macs to the MLA during the month of July! See this thread for more information.
  • We've made some quality of life improvements to the Trading Post. More info here.

Search results

  1. C

    Is there a programming forum here for help using the Toolbox Manager and Quickdraw Manager?

    Hi, I have searched for information and the behaviour of appending data to a file seems to involve a function called SetEOF, do you have any other information to provide, thanks.
  2. C

    Possibility to emulator Portable Book

    Hi all, I was wondering why there aren't any emulators that can emulate PB and I was hoping to touch on this. All I know is that it uses the 68000 PMU ASC and I would like to know how much it differs from the Mac Classic and if I can continue this work based on the MacSE emulation. Thanks guys.
  3. C

    Is there a programming forum here for help using the Toolbox Manager and Quickdraw Manager?

    Hi, I know I'm asking a bit too much, how should I do an append operation on a file, like wb+ in open? Thank you.
  4. C

    Is there a programming forum here for help using the Toolbox Manager and Quickdraw Manager?

    Thank you, it works, what I meant was that malloc works fine without the need for an L after the number. on a side note, it's been a long time since I've seen code that needed an L after a number, I'm spoilt by modern compilers. LOL
  5. C

    Is there a programming forum here for help using the Toolbox Manager and Quickdraw Manager?

    Oh thank you so much, I'll try that, malloc works fine, this one confused me.
  6. C

    Is there a programming forum here for help using the Toolbox Manager and Quickdraw Manager?

    Hi, I checked the SIZE, it's 1024, here is my code, I put NewPtr at the top of main, it doesn't complain about any errors, but once I use this space it triggers a system 25 error, which I know means out of memory : MaxApplZone(); buff = (unsigned char*)NewPtr(128 * 1024); if(buff == NULL)...
  7. C

    Is there a programming forum here for help using the Toolbox Manager and Quickdraw Manager?

    Sorry, I'd like to program on a classic Mac, the kind with only 4MB.
  8. C

    Is there a programming forum here for help using the Toolbox Manager and Quickdraw Manager?

    Oh, you mean NewPtr should be called before InitGraf?
  9. C

    Is there a programming forum here for help using the Toolbox Manager and Quickdraw Manager?

    There is no code other than some window initialisation, no recursion or anything else. By the way, is there a compiler that supports the C99 standard on a classic Mac? Declaring variables at the beginning is very cumbersome.
  10. C

    Is there a programming forum here for help using the Toolbox Manager and Quickdraw Manager?

    Hi, I have set the partition to 1024 but NewPtr and NewHandle both fail with the error message Insufficient Memory. My environment is SE with 4MB of RAM. in the end I was just hoping to get a 32KB space and it still fails. Oh, and I've used MaxApplZone at the beginning of the programme.
  11. C

    Is there a programming forum here for help using the Toolbox Manager and Quickdraw Manager?

    Hi, I wrote just a small tool that implements the same functionality as ImportFl for minivmac, which I use because of the large amount of information linking NewPtr and malloc. Well, I set the Partition to 1024,it still doesn't work, what should I do to get 128K of space using NewPtr?
  12. C

    Is there a programming forum here for help using the Toolbox Manager and Quickdraw Manager?

    Thank you, I'll give it a go, I know a toolkit routine called HLock prevents the memory manager from moving it, yes?
  13. C

    Is there a programming forum here for help using the Toolbox Manager and Quickdraw Manager?

    Sorry, I'm using Think C and I'm not sure how I should set the size of the allocated memory. NewHandle also fails, which is a bit strange. The reason I'm using 128K of RAM is that I have a homebrew emulator, but lack a way to import files, and I'm going to make that happen with this RAM.
  14. C

    Is there a programming forum here for help using the Toolbox Manager and Quickdraw Manager?

    Hi, do you know any details about NewPtr? I was hoping to request a very large space, about 128K, but it failed, how should I achieve this? Thank you.
  15. C

    Is there a programming forum here for help using the Toolbox Manager and Quickdraw Manager?

    Hi, I would like to ask you a question, I am using NewPtr to request a 128K space and it fails, what should I do about it? Thanks.
  16. C

    Is there a programming forum here for help using the Toolbox Manager and Quickdraw Manager?

    Is this an emulator? I'm writing a software that uses large chunks of RAM, and I'm glad to see your post, by the way, I would really like to have a real Mac, but such machines don't exist in my area.
Back
Top