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 5 of 5 Topic 668 of 684
Post > Topic >>

Re: Rewrite BASIC language today?

by ArarghMail804NOSPAM@[EMAIL PROTECTED] Apr 28, 2008 at 05:03 PM

On Mon, 28 Apr 2008 06:21:10 -0700 (PDT), "news@[EMAIL PROTECTED]
"
<news@[EMAIL PROTECTED]
> wrote:

>On Apr 28, 1:38 pm, 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  
>>         !(^IPicture{}+4) = !gpPicture%  
>> 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.
>
OK.  I have never actually ever called a COM interface routine.  Would
the reference to "IPicture" be an actual routine entry point or a
pointer to a Vtable?  Or something else?  If not an actual entry
point, then the DECLARE I wrote won't work.  I would have to run a
sample thru a C++ compiler to see what kind of code it generates.
Assuming the result is even readable.  :-)
-- 
ArarghMail804 at [drop the 'http://www.'
from ->] http://www.arargh.com
BCET Basic Compiler Page: http://www.arargh.com/basic/index.html

To reply by email, remove the extra stuff from the reply address.
 




 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 Sat Oct 11 14:22:15 CDT 2008.