On Monday 10 January 2011 08:04:26 Benoît Minisini wrote:
> > Hi list
> >
> > Enclosed is picture - when I click on a menu item, and the code
> > attatched to a menu item
>
> "attached" how ? Where ?
>
to explain further
Menu may have several items:
-- display result
-- delete document
-- displ
i attach the Projects in case you want to see them.
On Mon, 2011-01-10 at 01:54 +0200, Demosthenes Koptsis wrote:
> so i manage to make it work...
>
> i saw an example that said to use PATH_MAX+1
> https://buildsecurityin.us-cert.gov/bsi/articles/knowledge/coding/760-BSI.html
>
> so i did
>
>
so i manage to make it work...
i saw an example that said to use PATH_MAX+1
https://buildsecurityin.us-cert.gov/bsi/articles/knowledge/coding/760-BSI.html
so i did
Example 1) --
' Gambas module file
'char *getcwd(char *buf, size_t size);
Extern getcwd(buf As Pointer, size As
> Of course you are right!
>
> The Joueur() instances of my class are quite big, but
> nowadays the RAM is gigantic!
> this is surely a reminiscence of my "economy of RAM" syndrom
> coming from the Amiga's days (512KK)
> so, Forget it!
>
> regards
> Dominique Simonart
>
You are exactly usin
Of course you are right!
The Joueur() instances of my class are quite big, but
nowadays the RAM is gigantic!
this is surely a reminiscence of my "economy of RAM" syndrom
coming from the Amiga's days (512KK)
so, Forget it!
regards
Dominique Simonart
Le 09/01/2011 23:06, Benoît Minisini a écr
1) Ok, i found why this function is dangerous.
https://buildsecurityin.us-cert.gov/bsi/articles/knowledge/coding/760-BSI.html
"Since the user cannot specify the length of the buffer passed to
getwd(), use of this function is discouraged. The length of a pathname
described in {PATH_MAX} is file syst
> Hi,
>
> Often I've to write things like that:
>
> With Joueur(0)
> If Joueur(2).Nombre(Joueur(2).C1) < .Nombre(.C1) Then ...
> ...
> End With
>
> As I already have a With Joueur(0) activated I cannot define
> another one for Joueur(2).
>
> It would be nice to have the possibility to d
Hi,
Often I've to write things like that:
With Joueur(0)
If Joueur(2).Nombre(Joueur(2).C1) < .Nombre(.C1) Then ...
...
End With
As I already have a With Joueur(0) activated I cannot define
another one for Joueur(2).
It would be nice to have the possibility to define temporary
Alias na
Hmmm... I installed all packages for French that I found, but still:
$ LANG=fr_FR gbx3
gbx3: warning: cannot switch to language '(null)'. Did you install the
corresponding locale packages?
(process:9277): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
Sugge
yes i read the man and i know that is suggested not to use this
function.
Although i just use it for demonstration for pointers.
That i didn't do is to check the header files.
The other thing is that i am total newbie to man 3 and i need some time
to get used to it, so please be patient.
i see
pPointer += 4
> Print "Float read:"; Float@(pPointer)
>
> But this raises an error, "Type mismatch, wanted number get pointer
> instead"
> Is this a bug?
>
Probably, I'll look that more closely later...
> As i see there is no intrinsic function of Gambas3 for moving in memory
> forward or backw
> Hi list
>
> Enclosed is picture - when I click on a menu item, and the code attatched
> to a menu item
"attached" how ? Where ?
--
Benoît Minisini
--
Gaining the trust of online customers is vital for the success o
> so what can i do for
>
> char *getwd(char *buf);
>
> ?
>
You must know C programming first, and understand how getwd works. By typing
'man getwd', you will learn that you must not use that function, it is
dangerous and so deprecated.
Then you will read that buf must be a pointer to a memor
> I wonder what would be best way to test different localizations... do I
> need to install all the language packages?
> Or possibly just some component of language package?
>
> Jussi
>
You must install the support for the locale you want your Gambas program to
use.
For example, if you want to
This is what is said here
http://gambasdoc.org/help/howto/extern?v3
"More On Pointers"
READ #mypointer, var1_4byte
mypointer += 4
READ #mypointer, var2_4byte
i tried
Print "\nRead the pointer"
Print "Integer read:"; Integer@(pPointer)
pPointer += 4
Print "Float read:"; Float@(pPointer)
But this
Although i get the working directory,
> > /mnt/store/LINUX/DOCUMENTS/DEVELOPMENT/Gambas/Προγραμματισμός σε
> > > Gambas/Το βιβλίο της Gambas3/Projects/Pointers86
but maybe the implementation of
char *getwd(char *buf);
is not correct i dont know!
On Sun, 2011-01-09 at 21:29 +0200, Demosthene
so what can i do for
char *getwd(char *buf);
?
On Sun, 2011-01-09 at 16:05 +0200, Jussi Lahtinen wrote:
> Hmmm. you cannot do alloc with size of string.
> Size of string is depended on length of string!
>
> Jussi
>
>
> On Sun, Jan 9, 2011 at 15:59, Demosthenes Koptsis
> wrote:
>
> > this
Hi,
New project with new FMain:
PUBLIC SUB Form_KeyPress()
PRINT Key.Code, Key.Text
END
In run-time, when I press a key, eg. 'a', I get:
97 a
97 a
Gambas 2.22, Fedora 14
I want to know if it's a bug?. If it's a bug, it will be fixed, so I wait.
But if it's a feature, I have
I wonder what would be best way to test different localizations... do I need
to install all the language packages?
Or possibly just some component of language package?
Jussi
2011/1/9 Benoît Minisini
> >
> > I don't understand the test that raises "error 84".
> >
> > Format$() formats a number
Hmmm. you cannot do alloc with size of string.
Size of string is depended on length of string!
Jussi
On Sun, Jan 9, 2011 at 15:59, Demosthenes Koptsis wrote:
> this example on pointers raises signal #6.
> Gambas3 svn3432 Ubuntu 10.04, AMD64
>
> ---
> ' Gambas module
> Here is another question-case.
>
> i Alloc 12 bytes.
> i set in memory an integer 4 bytes
> then i set in memory a float 8 bytes.
>
> i can read the memory stream with READ, ok!
>
> How can i to this with Integer@() and Float@() functions?
> How can i move inside memory and use Integer@() and Flo
this example on pointers raises signal #6.
Gambas3 svn3432 Ubuntu 10.04, AMD64
---
' Gambas module file
'char *getwd(char *buf);
Extern getwd(buf As Pointer) As Pointer In "libc:6"
Public Sub Main()
Dim pBuf As Pointer
Dim pFunc As Pointer
Dim sWorkingDirectory As S
Hi Benoît,
return to this after a while because it seems not a compiz related
problem, or at least, not only.
If your first opened Form isn't the FMAIN and is Modal then the balloon
is hidden by the form. If you open the FMAIN and then open a Modal Form
the balloon is corretly displayed.
The attac
Here is another question-case.
i Alloc 12 bytes.
i set in memory an integer 4 bytes
then i set in memory a float 8 bytes.
i can read the memory stream with READ, ok!
How can i to this with Integer@() and Float@() functions?
How can i move inside memory and use Integer@() and Float@()
example:
-
Comment #8 on issue 6 by sotema: signal #11 with Gtk+
http://code.google.com/p/gambas/issues/detail?id=6
Hi Benoit,
I rewrite the full Wizard class five days ago, since then no crash occured.
I did not change a lot the code but, btw You can set the status closed.
Thanks,
Emanuele
Hi list
Enclosed is picture - when I click on a menu item, and the code attatched to
a menu item has any sort of delay to it - for example accessing a database to
pull back data, then the shadow of the menu remains on the screen.
I've tried putting a wait before the actioning of the menu item,
26 matches
Mail list logo