Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.sys.apple2.programmer > #3095
| From | Kelvin Sherlock <email@domain.com> |
|---|---|
| Newsgroups | comp.sys.apple2.programmer |
| Subject | Re: How hard would it be... (IIgs) |
| Date | 2016-10-06 20:12 -0400 |
| Organization | A noiseless patient Spider |
| Message-ID | <nt6p95$h97$1@dont-email.me> (permalink) |
| References | <alpine.BSF.2.02.1610061858490.53308@frieza.hoshinet.org> |
#include <Locator.h>
#include <Window.h>
int main(int argc, char **argv) {
Ref ssRef;
ssRef = StartupTools(MMStartUp(), RefIsResource, (Ref)1);
AlertWindow(awCString+awPointer, NULL, (Ref)"Hello");
ShutDownTools(RefIsHandle, ssRef);
return 0;
}
Untested, of course, and it depends on the toolbox StartStopRecord
being in the resource fork.
On 2016-10-06 23:02:15 +0000, Steve Nickolas said:
> How hard would it be to come up with something to just set up the GUI
> and pop up a dialog box? Something like this on Windows...
>
> #include <windows.h>
>
> #define MSGBOX_ALERT 48
>
> int main (int argc, char **argv)
> {
> MessageBox(0, "Hello, cruel world.", "Message", MSGBOX_ALERT);
> return 0;
> }
>
> (though noting, I would probably not be using C, and I might have to
> initialize stuff by hand that ProDOS-16 or GS/OS do for me.)
>
> -uso.
Back to comp.sys.apple2.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
How hard would it be... (IIgs) Steve Nickolas <usotsuki@buric.co> - 2016-10-06 19:02 -0400
Re: How hard would it be... (IIgs) Kelvin Sherlock <email@domain.com> - 2016-10-06 20:12 -0400
Re: How hard would it be... (IIgs) Steve Nickolas <usotsuki@buric.co> - 2016-10-06 20:19 -0400
Re: How hard would it be... (IIgs) Michael J. Mahon <mjmahon@aol.com> - 2016-10-07 11:53 -0500
Re: How hard would it be... (IIgs) Steve Nickolas <usotsuki@buric.co> - 2016-10-07 12:59 -0400
Re: How hard would it be... (IIgs) Nick Westgate <nick.westgate@gmail.com> - 2016-10-09 16:36 -0700
Re: How hard would it be... (IIgs) Polymorph <mike.a.stephens@gmail.com> - 2016-10-11 19:33 -0700
Re: How hard would it be... (IIgs) Nick Westgate <nick.westgate@gmail.com> - 2016-10-12 17:06 -0700
Re: How hard would it be... (IIgs) Smohn Jith <Smohn@smohn.com> - 2016-10-11 18:16 -0500
csiph-web