Re: Pointers and such.

new topic     » topic index » view thread      » older message » newer message

--BWindow(BRect frame,
--      const char *title,
--      window_type type,
--      uint32 flags,
--      uint32 workspaces = B_CURRENT_WORKSPACE ( = o mk)
--)

integer MyBWindow

constant lib = open_dll("libbe.so")

MyBWindow = 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})
^^^^Bzzz! WRONG!!!!!

When calling a C procedure you should use c_proc(). call_proc() is for
calling Euphoria procedures with their routine_id.


______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu