English Amiga Board


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

 
 
Thread Tools
Old 21 April 2014, 20:49   #1
mritter0
Registered User
 
Join Date: Sep 2013
Location: Bettendorf, IA, USA
Age: 52
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:

http://www.os4coding.net/blog/trixie...on-programming

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

Code:
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
Exit

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, 21:06   #2
tomse
We need more scans!
 
tomse's Avatar
 
Join Date: Feb 2010
Location: Copenhagen / Denmark
Age: 48
Posts: 326
Perhaps this can be of some use to you?
http://wiki.amigaos.net/index.php/DeveloperDoc:Main
tomse is offline  
Old 24 April 2014, 04:27   #3
mritter0
Registered User
 
Join Date: Sep 2013
Location: Bettendorf, IA, USA
Age: 52
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, 07:34   #4
tolkien
AmigaMan
 
tolkien's Avatar
 
Join Date: Oct 2012
Location: Castro Urdiales/Spain
Posts: 760
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 20:16
Proper HD and WinUAE Macca support.WinUAE 54 14 August 2007 07:43
cdtv proper configuration truestep New to Emulation or Amiga scene 5 19 July 2007 15:54
KICK OFF 2 v1.4e - A proper crack manicx Games images which need to be WHDified 0 07 December 2002 15:52
Proper crack of One step beyond Drake1009 request.Old Rare Games 6 04 March 2002 14: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 01:12.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.10641 seconds with 13 queries