Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Basic General > Re: Rewrite BAS...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 5 Topic 668 of 675
Post > Topic >>

Re: Rewrite BASIC language today?

by "news@[EMAIL PROTECTED] " <news@[EMAIL PROTECTED] > Apr 28, 2008 at 06:21 AM

On Apr 28, 1:38=A0pm, ArarghMail804NOS...@[EMAIL PROTECTED]
 wrote:
> I presume that the %'s refer to 32-bit things, not 16-bit.
> I also presume that the "get_Width" entry point is 24 bytes past
> "IPicture" or thereabouts.

Yes, correct on both counts.

> BTW, what does =A0
> =A0 =A0 =A0 =A0 !(^IPicture{}+4) =3D !gpPicture% =A0
> mean?

The ! is equivalent to C's * (indirection) operator, and ^ is
equivalent to C's & (address-of) operator.  What it is doing is
modifying the address of the IPicture structure, so that instead of
pointing to memory allocated by BASIC it's pointing to the COM
interface's Vtable.  It's really only a cheat that allows you to use
IPicture.get_Width rather than IPicture!24, so not fundamental to
accessing the COM interface.

Richard.
http://www.rtrussell.co.uk/
To reply by email change 'news' to my forename.
 




 5 Posts in Topic:
Re: Rewrite BASIC language today?
"news@[EMAIL PROTECT  2008-04-28 06:21:10 
Re: Rewrite BASIC language today?
"Tom Lake" <  2008-04-28 10:06:31 
Re: Rewrite BASIC language today?
Adam <no@[EMAIL PROTEC  2008-04-28 11:29:28 
Re: Rewrite BASIC language today?
"Gordon Rahman"  2008-04-28 18:02:00 
Re: Rewrite BASIC language today?
ArarghMail804NOSPAM@[EMAI  2008-04-28 17:03:30 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Jul 24 13:58:36 CDT 2008.