ADC Home > Reference Library > Technical Q&As > Legacy Documents > Graphics & Imaging >

Legacy Documentclose button

Important: This document is part of the Legacy section of the ADC Reference Library. This information should not be used for new development.

Current information on this Reference Library topic can be found here:

NOTE: This Technical Q&A has been retired. Please see the Technical Q&As page for current documentation.

Adding File and Clipboard Support to a QuickDraw 3D Application

Q: I'm trying to create a simple QuickDraw 3D program to send a metafile to the clipboard. It seems that I need to create a memory-storage object, have QuickDraw 3D write into it, and then send it to the clipboard via the scrap manager.

How do I get QuickDraw 3D to write to a memory-storage object? While I can create a memory-storage object, there are no facilities to write directly to a storage object [[pi]], as everything seems to be geared to writing to a file.

A: You can access any storage object's data with Q3Storage_SetData, Q3Storage_GetData. These will alter the contents of a storage object but cannot be attached to an open "file object" at the time. You might also want to check out the Tumbler Sample on the Developer CD for an example of an update.

[Jun 01 1995]


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.