Re: [Gambas-user] Get structure from extern function?

2014-07-03 Thread CJ
> > I'm trying to receive a simple structure from a shared library but > > get an Type Mismatch error saying... > > > >"wanted StructVersion, got Function instead in FMain:87" > > > > You must put "()" after the identifier to call it as a function. Fabien and Benoît, Unfortunately that crash

Re: [Gambas-user] Get structure from extern function?

2014-07-03 Thread Benoît Minisini
Le 03/07/2014 12:04, CJ a écrit : > I'm trying to receive a simple structure from a shared library but > get an Type Mismatch error saying... > >"wanted StructVersion, got Function instead in FMain:87" > You must put "()" after the identifier to call it as a function. -- Benoît Minisini ---

[Gambas-user] R: Get structure from extern function?

2014-07-03 Thread Ru Vuott
Can you show the C code of that shared library ? bye vuott Gio 3/7/14, CJ ha scritto: Oggetto: [Gambas-user] Get structure from extern function? A: gambas-user@lists.sourceforge.net Data: Giovedì 3 luglio 2014, 12:04 I'm trying to receive a si

Re: [Gambas-user] Get structure from extern function?

2014-07-03 Thread Fabien Bodard
Scuse me I've made a bad read .. Just do : Version = LIBVersion() Le 3 juil. 2014 12:05, "CJ" a écrit : > I'm trying to receive a simple structure from a shared library but > get an Type Mismatch error saying... > > "wanted StructVersion, got Function instead in FMain:87" > > Before calling t

Re: [Gambas-user] Get structure from extern function?

2014-07-03 Thread Fabien Bodard
The function and the structure have the same name... It can't work Le 3 juil. 2014 12:05, "CJ" a écrit : > I'm trying to receive a simple structure from a shared library but > get an Type Mismatch error saying... > > "wanted StructVersion, got Function instead in FMain:87" > > Before calling th

[Gambas-user] Get structure from extern function?

2014-07-03 Thread CJ
I'm trying to receive a simple structure from a shared library but get an Type Mismatch error saying... "wanted StructVersion, got Function instead in FMain:87" Before calling the extern function I declare the structure, variable and the library using... Public Struct StructVersion Maj

Re: [Gambas-user] sdl mouse

2014-07-03 Thread Rolf-Werner Eilert
Maybe "Trapped" ? Am 03.07.2014 10:33, schrieb Benoît Minisini: > Le 16/06/2014 15:25, Shane a écrit : >> hi benoit would it be possible to include the ability to keep the mouse >> within the bounds of the sdl window >> >> thanks Shane >> > > I have added a "Window.Grabbed" property in revision #

Re: [Gambas-user] sdl mouse

2014-07-03 Thread Benoît Minisini
Le 16/06/2014 15:25, Shane a écrit : > hi benoit would it be possible to include the ability to keep the mouse > within the bounds of the sdl window > > thanks Shane > I have added a "Window.Grabbed" property in revision #6359 for that. Please test it and tell me if it works. And if you find a be

Re: [Gambas-user] sdl mouse

2014-07-03 Thread Rolf-Werner Eilert
Ok, that may make sense. But I'm not in game programming, so I don't know anything about it. Interesting aspect, anyway! Rolf Am 03.07.2014 09:52, schrieb Shane: > yea It is problematic if that happens. but i have seen it done with some > game engines and the reason i need it is if i have a win

Re: [Gambas-user] sdl mouse

2014-07-03 Thread Shane
yea It is problematic if that happens. but i have seen it done with some game engines and the reason i need it is if i have a windowed action game that use,s the mouse i doesn't take long before the user is clicking outside the game window and losing focus on the game which is a problem i did t

Re: [Gambas-user] sdl mouse

2014-07-03 Thread Rolf-Werner Eilert
Isn't that dangerous? If the application crashes, the mouse is caught within the dead window's boundaries. Maybe you can read the mouse coordinates and reset them to within the window, by code of your application, so that the mouse gets free if the application dies. Rolf Am 03.07.2014 07:44,