Subject: Re: IIgs registry? From: supertimer@aol.com (Supertimer) Date: Sat, Jan 2, 1999 1Ç11 xË Message-id: <19990102151143.13974.00004004@ng110.aol.com> sagochangi@aol.com (Sagochangi) wrote: >I just got a copy of Orca/C for Christmas. And it's giving me some major >headaches. > >First, I tried to compile the standard "Hello, world" program. It ran fine >under the test window, but gave me this error when I tried to run the >executable under GS/OS: > >The application "" cannot be found for this document. > >Hmm, I thought. Maybe I set the compile options wrong. So I played with all >the options, to no avail. I tried to run one of the pre-compiled samples, the >"Quick" benchmark, just to see what would happen. I got the same error. So I >tried registering the file to itself. That seemed to work. The program >executed in a text window, and returned me to the desktop. I tried to run >another sample, but it executed the "Quick" program again. Apparently, all the >Orca/C compiled programs are looking for Quick now, trying to pass themselves >as a parameter to the benchmarker. > >I deleted the entire Orca installation, and reinstalled under a different >directory. Then I tried to run another sample program. I got a similar >message this time: > >The application "quick" cannot be found for this document. > >It looks like I've screwed up some kind of registry. How can I fix this >problem, and how am I supposed to compile programs to execute themselves under >GS/OS? The Orca manual provided no help that I could find. I'm an experienced >C/C++ programmer, but I'm still very new to the IIgs. Any help would be >appreciated. There are two different registry systems on the IIGS. The first one was inherited from before System 6 and can be found inside the icon files in the Icons folder on the boot disk. If this registry is damaged, the solution is to delete the icon files that are damaged. The second registry is stored in something called an rBundle. Whenever a program supporting this System 6 and System 6.0.1 method is first lauched, the resource icons from that application's resource fork and the path are copied into an invisible file called "Desktop" in the Icons folder. To see this file, change the preference options in Finder to see invisible files. If the "Desktop" file is corrupted, it should be deleted. After deleting the corrupted registries, a reinstall (or a relaunch in the case of System 6 or System 6.0.1 registry method files) of the program(s) should fix things. Another suspect: are you compiling the programs as true desktop (S16) applications? Or are they shell (EXE) applications? EXE applications require the Orca shell or equivalent to run which is why they are not normally registered to themselves but rather to a shell.