Has anyone tried this code with version 5.10 x64?
I get a compile error in line 43:
"Procedure InsertCharacter(*HoldText.i, Index.i, Character.c)"
the error is "Native types can't be used with pointers"
Any ideas?
xMask - A Masked Edit Gadget
Re: xMask - A Masked Edit Gadget
When all is said and done, more is said than done.
Re: xMask - A Masked Edit Gadget
Yes, insert that string in the forum search -> http://www.purebasic.fr/english/search. ... mit=SearchDevilDog wrote: the error is "Native types can't be used with pointers"
Any ideas?
"Have you tried turning it off and on again ?"
A little PureBasic review
A little PureBasic review
Re: xMask - A Masked Edit Gadget
I have used this file in my program quite a lot. (THANKS!!!)
Now with 5.10 i had similar problem of the error.
i was a little confused with what had to change, but done and fixed now.
I can upload the fixed code if anyone requires it.
Now with 5.10 i had similar problem of the error.
i was a little confused with what had to change, but done and fixed now.
I can upload the fixed code if anyone requires it.
Re: xMask - A Masked Edit Gadget
to fix the error "Native types can't be used with pointers" which you'll get for PB 5.11
first an explanation
from PB Help
line 43 replace this:
with this:
the pointer "*HoldText" is not defined as integer anymore.
line 248 replace this:
with this:
the pointer "*Index" is not defined as integer anymore.
Norm.
first an explanation
from PB Help
now for the fix:As a consequence the type of a pointer depends of the CPU address mode, (‘long' on 32-bit CPU and ‘quad' on 64-bit one for example), so a pointer is a variable of type pointer.
It results from this that assigning a native type to a pointer (*Pointer.l, *Pointer.b ...) makes no sense.
line 43 replace this:
Code: Select all
Procedure InsertCharacter(*HoldText.i, Index.i, Character.c)
Code: Select all
Procedure InsertCharacter(*HoldText, Index.i, Character.c)
line 248 replace this:
Code: Select all
Procedure.c _xm_ReturnCharacter(List xMask.__s_xMask_Main(), Character.c, *Index.i, UsingPlaceholder.b = #False)
Code: Select all
Procedure.c _xm_ReturnCharacter(List xMask.__s_xMask_Main(), Character.c, *Index, UsingPlaceholder.b = #False)
Norm.
google Translate;Makes my jokes fall flat- Fait mes blagues tombent à plat- Machte meine Witze verpuffen- Eh cumpari ci vo sunari