Page 1 of 1
pseudotypes
Posted: Sun Feb 05, 2006 2:01 pm
by Psychophanta
There are three types of pseudotypes:
p-ascii - to force the parameter to 8 bit Ascii
p-unicode - to force the parameter to 16 bit Unicode (DWCS)
p-bstr - to force the parameter to BSTR format (Visual Basic)
Couldn't be:
p_ascii
p_unicode
p_bstr
or simply: ascii, unicode and bstr
The minus "-" sign confuses a lot.
Posted: Sun Feb 05, 2006 3:27 pm
by blueznl
spycho got a good point there, underscores may make more sense...
Posted: Sun Feb 05, 2006 3:31 pm
by Berikco
Yes, i must agree the minus sign is a bad choice...
Posted: Sun Feb 05, 2006 4:21 pm
by Psychophanta
Uffhh! at least i got an 'agree' for one thing

Even perhaps it was done like that to avoid to be confused with any eventual user defined Structure with the same name. But in that case there are another signs like ':' or wrap it into {} or something like that in order to difference it clearly...
Posted: Sun Feb 05, 2006 4:53 pm
by Fred
no, as p_ascii can be a regular type. p-ascii is a special type, there is no confusion/collision possible with regular strutcure/interface types. BTW, why don't you try to use the new features instead of trying to change something we had spend of lot of time to think of ?
Posted: Sun Feb 05, 2006 4:58 pm
by Psychophanta
Fred wrote:BTW, why don't you try to use the new features instead of trying to change something we had spend of lot of time to think of ?
You're right!
I hope to not find lots of bugs after converting codes...

Posted: Sun Feb 05, 2006 5:01 pm
by Fred
If you find some, please report them so we can fix them quickly and have a nice final release.
Posted: Fri Feb 10, 2006 12:40 am
by Shannara
So with the BSTR format, we can have something like the following:
Code: Select all
ProcedureDLL.b-str HelloWorld()
ProcedureReturn "Whee"
EndProcedure
Then in theory, in Vb, after declaring the DLL command, we can call it..
Code: Select all
dim I as string
I = HelloWorld()
Call MsgBox("Test", I)
So no need for that work around stuff that was posted awhile back, for using PB dlls in VB?
Posted: Sat Feb 11, 2006 6:42 am
by Shannara
Nvm, workaround is still required.