1. Re: Pointers and such.

--_------_BeOS.rmp.954816406_------_
Content-Transfer-Encoding: quoted-printable

David, and any others who can help...
     I am trying to get a window to open under BEOS with the attached
files.
What am I doing wrong?  I know that someone out there can help...
     I am just learning my way into the system, but while it bears some
resemblance to Windoze programming, it doesn't give you a lot to go on
when you don't know a lot about c/c++ in the first place.  I enclosed a
description of the co-ordinate system.  I know that I am not passing
the arguments correctly, but will be looking through all I have
archived of this.

Monty (sore from staring at the computer)


This is the Jist of it:

--BWindow(BRect=A0frame,
--=A0=A0=A0=A0=A0=A0const=A0char=A0*title,
--=A0=A0=A0=A0=A0=A0window_type=A0type,
--=A0=A0=A0=A0=A0=A0uint32=A0flags,
--=A0=A0=A0=A0=A0=A0uint32=A0workspaces=A0=3D=A0B_CURRENT_WORKSPACE ( =3D o mk)
--)

integer MyBWindow

constant lib =3D open_dll("libbe.so")

MyBWindow =3D define_c_proc(lib, "BWindow", {C_POINTER, C_POINTER,
                                                  C_CHAR, C_ULONG,C_ULONG})


call_proc(MyBWindow, {BRect_frame, allocate_string("My Window"),
                                                  B_TITLED_WINDOW , #0,#0})


I get a big fat error here.

I set this in a global Bwinstuff.e file...
sequence  left =3D {0.0},
         top =3D {0.0},
         right =3D {180.0},
         bottom =3D {135.0}

global sequence BRect_frame
        BRect_frame =3D {left, top, right, bottom}

Need to get these amounts into it, there is in fact more info in the
description of Bwindow, maybe I will enclose that also...(Don't forget
that stuff is all copyrighted... smile

What am I doing wrong, wrong data types?  I am setting the C types from
inside of Euphoria's dll.e file, "borrowed".


m
--_------_BeOS.rmp.954816406_------_
        boundary="++++++BFile19078375476++++++"

--++++++BFile19078375476++++++
        name="Bwin.zip"

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu