No man.. Keep going!freak wrote:Yup.blueznl wrote:right on!Kale wrote:Agreed!TronDoc wrote:dittoLarsG wrote:10-4!Rings wrote:confirm !Fred wrote:I read all the comments and early time users can confirm than a lot have been implemented. Still a lot missing, but hey, it's coming.
... this is getting weired![]()
Timo
Purpose of PureBasic
AMD Athlon XP2400, 512 MB RAM, Hercules 3D Prophet 9600 256MB RAM, WinXP
PIII 800MHz, 320 MB RAM, Nvidia Riva Tnt 2 Mach 64 (32MB), WinXP + Linux
17" iMac, 1.8 GHz G5, 512 MB DDR-RAM, 80 GB HD, 64 MB Geforce FX 5200, SuperDrive, OSX
THIS IS WEIRD!!!LarsG wrote:No man.. Keep going!freak wrote:Yup.blueznl wrote:right on!Kale wrote:Agreed!TronDoc wrote:dittoLarsG wrote:10-4!Rings wrote:confirm !Fred wrote:I read all the comments and early time users can confirm than a lot have been implemented. Still a lot missing, but hey, it's coming.
... this is getting weired![]()
Timo
@Edwin:
It seems I can't explain my point: 90% of WinAPI functions need a pointer to a NULL terminated sequence of bytes to pass some text. VB needs to convert that each time it calls the OS, not only in ANSI (and that's silly since most WinAPI calls accept unicode strings now) but also it must retrieve the pointer before (that's ONE of the reasons why it's sooo slow). I personally see no reason why a string should be longer than 64KB (if you need that, it means you're using a string for an aim a string wasn't created for, IMHO).
What I'd like instead it's the UNICODE support for strings. So a BSTR Unicode string (together with current string type) would be very nice for PB.
It seems I can't explain my point: 90% of WinAPI functions need a pointer to a NULL terminated sequence of bytes to pass some text. VB needs to convert that each time it calls the OS, not only in ANSI (and that's silly since most WinAPI calls accept unicode strings now) but also it must retrieve the pointer before (that's ONE of the reasons why it's sooo slow). I personally see no reason why a string should be longer than 64KB (if you need that, it means you're using a string for an aim a string wasn't created for, IMHO).
What I'd like instead it's the UNICODE support for strings. So a BSTR Unicode string (together with current string type) would be very nice for PB.
-
Edwin Knoppert
- Addict

- Posts: 1073
- Joined: Fri Apr 25, 2003 11:13 pm
- Location: Netherlands
- Contact:
You are still missing the point.
Ever seen in VB using Byval As String in a declare?
It does at least one thing, it passes the pointer to the BSTR data compatible with any api call.
I said that even BSTR contains a 0 char but 1byte outside it's length range.
We should not discuss the uncicode to ansi conversion matter in VB, it has not much to do with this request.
If the unicode is converted + you are using Byval Text$ it will pass a pointer to the ANSI memory.
If it's BSTR or GlobalAlloc() whatever.
I will no longer debate this, because i mentioned some additional features and are prob. disregarded.
So no use to continue i guess.
Ever seen in VB using Byval As String in a declare?
It does at least one thing, it passes the pointer to the BSTR data compatible with any api call.
I said that even BSTR contains a 0 char but 1byte outside it's length range.
We should not discuss the uncicode to ansi conversion matter in VB, it has not much to do with this request.
If the unicode is converted + you are using Byval Text$ it will pass a pointer to the ANSI memory.
If it's BSTR or GlobalAlloc() whatever.
I will no longer debate this, because i mentioned some additional features and are prob. disregarded.
So no use to continue i guess.
Fortunately, It's not a problem with any real life work vb programmers I know, aka state db & normal application programmers. Not to mention the guys who created the first version of the unreal editor in VBSeldon wrote:ByRef doesn't pass a pointer in a way C can work with it. This is a real problem you get in real life-work with VB.
But then again.. I guess it depends on what kind of "real life" work your talking about?
