Restored from previous forum. Originally posted by stfighter.
Hi, badly need support for floats or double as result of the callfunction command.
i can do NOTHING with dlls, without a good support of all standart datatypes.
hopfully stfighter
dll features
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by tinman.
Unless the original question was about getting a float as a return value from a DLL call using CallFunction (which IIRC returns a long). In that case, stfighter could do something like:
foo.f
result.l = CallFunction(...)
PokeL(@foo, result)
But I am not sure how well this would work (or if it would).
--
It's not minimalist - I'm increasing efficiency by reducing input effort.
(Win98first ed. + all updates, PB3.51)
Floats are supported, doubles are not.Originally posted by dmoc
Correct but the point has been made several times and just recently again. I think Fred is planning to support floats/doubles sometime soon.
Unless the original question was about getting a float as a return value from a DLL call using CallFunction (which IIRC returns a long). In that case, stfighter could do something like:
foo.f
result.l = CallFunction(...)
PokeL(@foo, result)
But I am not sure how well this would work (or if it would).
--
It's not minimalist - I'm increasing efficiency by reducing input effort.
(Win98first ed. + all updates, PB3.51)
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by stfighter.
yes, this was the solution i called unacceptable.
to make that work i have to change all return values to pointers.
all comfort is getting lost and most of people wont understand how to use this dll then.
and it is much work too.
stfighter
yes, this was the solution i called unacceptable.
to make that work i have to change all return values to pointers.
all comfort is getting lost and most of people wont understand how to use this dll then.
and it is much work too.
stfighter