Login
Username:

Password:

Remember me



Lost Password?

Register now!
Main Menu
Who's Online
1 user(s) are online (1 user(s) are browsing Forum)

Members: 0
Guests: 1

more...
   All Posts (remotenemesis)


(1) 2 »


Re: Mostly no sound in vbox 5.1.30 and 5.2.6 with ac97 soundcard

Joined:
1/20 18:36
From SF Bay Area, California
Group:
Member
Posts: 11
Offline
I have exactly the same problem on vbox 5.2.6 on macOS.

Posted on: 2/16 12:53
Transfer the post to other applications Transfer


Re: Zune/MUI DoNotify

Joined:
1/20 18:36
From SF Bay Area, California
Group:
Member
Posts: 11
Offline
Thanks friends. I tried using a callback hook and MUIM_Group_InitChange/ExitChange and I've at least achieved what I was trying to do.

Here's a working mini-app in case this helps anyone in the future:

#include <stdio.h>
#include <exec/types.h>
#include <exec/libraries.h>
#include <utility/hooks.h>
#include <libraries/mui.h>

#include <proto/exec.h>
#include <proto/intuition.h>
#include <proto/muimaster.h>
#include <proto/utility.h>
#include <proto/alib.h>
#include <clib/alib_protos.h>

static struct Hook addItemHook;

static ULONG AddItem(struct Hook *h, Object *o, APTR *msg)
{

Object *sometext;

sometext = TextObject,
MUIA_Text_Contents, "Sometimes you eat the bear.",
End;

if (DoMethod(o, MUIM_Group_InitChange))
{
DoMethod(o, MUIM_Group_AddTail, sometext);
DoMethod(o, MUIM_Group_ExitChange);
}

return 1;
}

int main(void)
{
addItemHook.h_Entry = HookEntry;
addItemHook.h_SubEntry = (HOOKFUNC)AddItem;

Object *app, *wnd, *button, *group;

app = ApplicationObject,
SubWindow, wnd = WindowObject,
MUIA_Window_Title, "Todo Sample App",
WindowContents, group = VGroup,
Child, button = SimpleButton("_Add"),
End,
End,
End;

if (app != NULL)
{
ULONG sigs=0;

DoMethod(wnd, MUIM_Notify, MUIA_Window_CloseRequest, TRUE,
(IPTR)app, 2,
MUIM_Application_ReturnID, MUIV_Application_ReturnID_Quit);

DoMethod(button, MUIM_Notify, MUIA_Pressed, FALSE,
(IPTR)group,2, MUIM_CallHook, (IPTR)&addItemHook);

set(wnd, MUIA_Window_Open, TRUE);

if (XGET(wnd, MUIA_Window_Open))
{
while((LONG)DoMethod(app, MUIM_Application_NewInput, (IPTR)&sigs)
!= MUIV_Application_ReturnID_Quit)
{
if (sigs)
{
sigs = Wait(sigs | SIGBREAKF_CTRL_C);
if (sigs & SIGBREAKF_CTRL_C)
break;
}
}
}
else
{
puts("window not opened!");
}
MUI_DisposeObject(app);
}

return 0;
}

Posted on: 2/8 21:33
Transfer the post to other applications Transfer


Zune/MUI DoNotify

Joined:
1/20 18:36
From SF Bay Area, California
Group:
Member
Posts: 11
Offline
I thought I understood how DoNotify works but I'm not so sure now. Lets say I have a VGroup ("group") inside a window to which I want to add new Test:

DoMethod(group, MUIM_Add_Tail, sometext);

This works fine. :)

I thought I could be notified of an event and call a method on a Zune/MUI object... like:

DoMethod(button, MUIM_Notify, MUIA_Pressed, FALSE,
(IPTR)group, 2, MUIM_Add_Tail, sometext);

but this doesn't work at all :(

Other examples I've seen simply drop a magic value into the event loop using MUIM_Application_ReturnID and use this in a switch to dispatch to a function call, or alternatively use a callback hook.

Both approaches are reasonable but I don't understand the limitations of what is permitted in MUIM_Notify.

Can anyone offer any insight here?

Cheers!

Posted on: 2/7 21:54
Transfer the post to other applications Transfer


Re: Dev environment setup on AROS

Joined:
1/20 18:36
From SF Bay Area, California
Group:
Member
Posts: 11
Offline
Anytime.

Posted on: 1/31 22:38
Transfer the post to other applications Transfer


Re: Dev environment setup on AROS

Joined:
1/20 18:36
From SF Bay Area, California
Group:
Member
Posts: 11
Offline
SUCCEEESSSSSSSS!!!!!!

@elwis I think you were right.

So I was running AROS in a Virtual Box VM with the Operation System set to Other/Unknown(64 bit).

I tried a fresh Icaros install from a downloaded 2.2.1 ISO (as with the VM above) but this time set the OS to Other/Unknown. In the new VM, gcc and g++ ran from Development:bin but not elsewhere. I ran "path Development:bin add" and everything worked.

On the 64 bit VM gcc and g++ do not run from Development:bin and adding this dir to the path had no effect.

Case closed...?

Thank you so much to everyone for your help with this. Now time to start hacking away!

Posted on: 1/31 21:19
Transfer the post to other applications Transfer


Re: Dev environment setup on AROS

Joined:
1/20 18:36
From SF Bay Area, California
Group:
Member
Posts: 11
Offline
That's my read on it too. Do you have cc1 or cc1plus anywhere on your AROS install?

Posted on: 1/31 7:28
Transfer the post to other applications Transfer


Re: Dev environment setup on AROS

Joined:
1/20 18:36
From SF Bay Area, California
Group:
Member
Posts: 11
Offline
@caveman that's what I thought too. However if I try to compile a simple helloworld ("gcc -o HelloWorld hello.c") I get the following error:

"gcc: error trying to execute 'cc1': execvp: No such file or directory".

or

"g++: error trying to execute 'cc1plus': execvp: No such file or directory" if I used g++

This is on an install of Icaros 2.2.1 with the Development files installed. Can anyone hit me with a cluestick here?

Thanks everyone for the thoughtful suggestions!




Posted on: 1/30 21:01

Edited by remotenemesis on 2018/1/30 21:28:19
Transfer the post to other applications Transfer


Re: Dev environment setup on AROS

Joined:
1/20 18:36
From SF Bay Area, California
Group:
Member
Posts: 11
Offline
That's what I'm looking to do, install a working gcc and SDK on AROS. Although maybe running linux hosted AROS is more common for development maybe?

Posted on: 1/30 12:58
Transfer the post to other applications Transfer


Dev environment setup on AROS

Joined:
1/20 18:36
From SF Bay Area, California
Group:
Member
Posts: 11
Offline
Hey there,

I'm trying to set up a dev environment on AROS (Icaros 2.2.1) and I'm a little stuck with installing g++.

Is anyone able to help with the process?

Thanks!

Posted on: 1/30 8:16
Transfer the post to other applications Transfer


Re: Mind if I stay a while?

Joined:
1/20 18:36
From SF Bay Area, California
Group:
Member
Posts: 11
Offline
Thanks for the greetz everyone – it's been a while since I used that word!

Not ready for device driver development yet but I understand the need.


Posted on: 1/29 7:50
Transfer the post to other applications Transfer



 Top
(1) 2 »




Search
Top Posters
1 paolone
paolone
4375
2 magorium
magorium
4095
3 phoenixkonsole
phoenixkonsole
3897
4 nikolaos
nikolaos
3761
5 deadwood
deadwood
2923
6 ncafferkey
ncafferkey
2693
7 mazze
mazze
2216
8 clusteruk
clusteruk
2111
9 Kalamatee
Kalamatee
2026
10 damocles
damocles
1789
© 2004-2017 AROS Exec