Retired Document
Important: This sample code may not represent best practices for current development. The project may use deprecated symbols and illustrate technologies and techniques that are no longer recommended.
Source/VCDemoMain.c
/* |
VCDemoMain.c |
main function for VCDemo. |
==================== |
A friendly reminder: |
The intent here is just to test and demo a QD3D Viewer client. |
This application performs virtually NO error checking. |
This application is not supported by anyone, |
not even the author, who shall thankfully remain anonymous. |
DO NOT USE THIS CODE FOR ANYTHING OTHER THAN "GETTING THE GENERAL IDEA"! |
======================================================================== |
© 1995 Apple Computer, Inc. |
*/ |
#include <QuickDraw.h> |
#include <Windows.h> |
#include "EventLoop.h" |
#include "MenuDispatch.h" |
WindowPtr MainView; |
extern void InitToolBox(short numberOfMasters); |
extern void MainEvent(void); |
extern void BuildMenuBars(void); |
extern void ChooseFile(short item); |
void main(void) |
{ |
InitToolBox(4); |
BuildMenuBars(); |
ChooseFile(cmdNew); |
SetPort(MainView); |
while(!Done) { |
MainEvent(); |
if(!FrontWindow()) |
MainView = nil; |
} |
} |
/* EOF */ |
Copyright © 2003 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2003-01-14