English Amiga Board

Go Back   English Amiga Board > Coders > Coders. Language > Coders. C/C++

Thread Tools
Old 21 April 2014, 21:49   #1
Registered User

Join Date: Sep 2013
Location: Bettendorf, IA, USA
Age: 49
Posts: 204
Proper ReAction coding

I have been looking at OS3.9/OS4 ReAction source code from several different programmers to get a base idea for my code. I came across this blog post:


I agree with not using the macros as things could/will change down the road.

WindowBase = IIntuition->OpenClass("window.class", 52, &WindowClass);
I haven't come across any source that uses the above code. Seems like every program "is doing it wrong."

Does anyone know of an example source code that does it "the correct way" in all aspects? Proper way to:

Open libraries
Open classes
Layout gadgets
Listen for messages
Close everything it opened

The example could be just 1 or 2 gadgets, BUT NO MACROS, NO SHORTCUTS, for any of the steps.

I know everyone has their own style, but maybe a modern baseline should be laid out so things are done the current and proper way OS4 expects things to be done.
mritter0 is offline  
Old 21 April 2014, 22:06   #2
We need more scans!

tomse's Avatar
Join Date: Feb 2010
Location: Copenhagen / Denmark
Age: 45
Posts: 320
Perhaps this can be of some use to you?
tomse is offline  
Old 24 April 2014, 05:27   #3
Registered User

Join Date: Sep 2013
Location: Bettendorf, IA, USA
Age: 49
Posts: 204
I started a project with the above example as a base. I am on OS3.9 and get 'undefined identifier "IIntuition"' error message. I can't find where IIntuition is defined in the includes. I assume it is not in my V39 intuition/intuition.h and is only for OS4?

@Thomas: I compiled all of your ReAction examples and they ran. You don't use it at all. Is there a work-around that is still "proper"?
mritter0 is offline  
Old 24 April 2014, 08:34   #4

tolkien's Avatar
Join Date: Oct 2012
Location: Castro Urdiales/Spain
Posts: 658
I think IIntuition is only for AOS4 and so...
tolkien is offline  

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Proper startupcode in asm? oRBIT Coders. General 9 19 May 2010 21:16
Proper HD and WinUAE Macca support.WinUAE 54 14 August 2007 08:43
cdtv proper configuration truestep New to Emulation or Amiga scene 5 19 July 2007 16:54
KICK OFF 2 v1.4e - A proper crack manicx Games images which need to be WHDified 0 07 December 2002 16:52
Proper crack of One step beyond Drake1009 request.Old Rare Games 6 04 March 2002 15:27

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 03:52.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.
Page generated in 0.09578 seconds with 14 queries