PC Review


Reply
Thread Tools Rate Thread

Any chance for pointers in VB?

 
 
Crirus
Guest
Posts: n/a
 
      14th Oct 2003
Have anyone ideea if there are plans to implement pointers in VB?

Or, have the classes substituting the pointers the same performance?

Crirus


 
Reply With Quote
 
 
 
 
Armin Zingler
Guest
Posts: n/a
 
      14th Oct 2003
"Crirus" <(E-Mail Removed)> schrieb
> Have anyone ideea if there are plans to implement pointers in VB?
>
> Or, have the classes substituting the pointers the same
> performance?


All varaibles declared as a reference type are pointers.


--
Armin

 
Reply With Quote
 
Nice Chap
Guest
Posts: n/a
 
      14th Oct 2003
A reference 'is a' pointer. It points to an object. You can also treat value
types as objects i.e. obtain a reference to it, by 'Boxing' them.


"Crirus" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Have anyone ideea if there are plans to implement pointers in VB?
>
> Or, have the classes substituting the pointers the same performance?
>
> Crirus
>
>



 
Reply With Quote
 
Crirus
Guest
Posts: n/a
 
      14th Oct 2003
I know, byt a pointer to memory was what I want to know, as in C#


"Nice Chap" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> A reference 'is a' pointer. It points to an object. You can also treat

value
> types as objects i.e. obtain a reference to it, by 'Boxing' them.
>
>
> "Crirus" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
> > Have anyone ideea if there are plans to implement pointers in VB?
> >
> > Or, have the classes substituting the pointers the same performance?
> >
> > Crirus
> >
> >

>
>



 
Reply With Quote
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      14th Oct 2003
* "Crirus" <(E-Mail Removed)> scripsit:
> Have anyone ideea if there are plans to implement pointers in VB?
>
> Or, have the classes substituting the pointers the same performance?


Mhm... I never needed pointers like in C and I never missed them. I
think/hope they will never introduce them to VB.NET.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
 
Reply With Quote
 
Armin Zingler
Guest
Posts: n/a
 
      14th Oct 2003
"Crirus" <(E-Mail Removed)> schrieb
> I know, byt a pointer to memory was what I want to know, as in C#


The methods of System.Runtime.InteropServices.Marshal might help.


--
Armin

 
Reply With Quote
 
Fergus Cooney
Guest
Posts: n/a
 
      14th Oct 2003
Hi Crirus,

No pointers in VB. :-(

It's unlikely that there will be any as VB has not traditionally been a
pointer-based language. The best bet is to learn C# (or C++) and do it in a
separate Project.

The performance benefits can be considerable and for the graphics work
that you are doping, it is well worth investigating.

Here are some very useful articles for you

Multimedia and GDI+:
http://www.codeproject.com/cs/media
Look for Image Processing for Dummies which is a series of
walkthroughs on doing image manipulation using C# pointers.

Pointers UNDOCUMENTED - .NET
http://www.codeproject.com/dotnet/pointers.asp
Which gives additional background on pointers in .NET.

Unfortunately the codeproject site was unavailable when I checked just
now. If you're in a hurry, you can do a Google search and check out the cached
pages (but the images come from the site so will not be shown).

Regards,
Fergus


 
Reply With Quote
 
Fergus Cooney
Guest
Posts: n/a
 
      14th Oct 2003
Hi Herfried,

It does depend on what you are doing in your programs, of course.
Run-of-the-mill Windows apps don't need pointers. Crirus' bitmap
manipulations? I think there's a good case there.

Regards,
Fergus


 
Reply With Quote
 
Crirus
Guest
Posts: n/a
 
      14th Oct 2003
There is any performance drawback on this class versus pinters that C# have?


"Armin Zingler" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> "Crirus" <(E-Mail Removed)> schrieb
> > I know, byt a pointer to memory was what I want to know, as in C#

>
> The methods of System.Runtime.InteropServices.Marshal might help.
>
>
> --
> Armin
>



 
Reply With Quote
 
Crirus
Guest
Posts: n/a
 
      14th Oct 2003
LOL, I guess I'm well known allready with my struggle with images


"Fergus Cooney" <filter-(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi Crirus,
>
> No pointers in VB. :-(
>
> It's unlikely that there will be any as VB has not traditionally been

a
> pointer-based language. The best bet is to learn C# (or C++) and do it in

a
> separate Project.
>
> The performance benefits can be considerable and for the graphics work
> that you are doping, it is well worth investigating.
>
> Here are some very useful articles for you
>
> Multimedia and GDI+:
> http://www.codeproject.com/cs/media
> Look for Image Processing for Dummies which is a series of
> walkthroughs on doing image manipulation using C# pointers.
>
> Pointers UNDOCUMENTED - .NET
> http://www.codeproject.com/dotnet/pointers.asp
> Which gives additional background on pointers in .NET.
>
> Unfortunately the codeproject site was unavailable when I checked just
> now. If you're in a hurry, you can do a Google search and check out the

cached
> pages (but the images come from the site so will not be shown).
>
> Regards,
> Fergus
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
The Last Last Chance measekite Windows Vista General Discussion 0 20th Apr 2009 06:29 PM
Managed pointers to pointers Mark Ingram Microsoft VC .NET 3 20th Nov 2006 02:42 PM
Best Chance...? =?Utf-8?B?SmF5?= Microsoft Access Queries 3 29th Nov 2005 09:11 PM
pointers-to-pointers and class children Peteroid Microsoft VC .NET 2 3rd Jan 2005 06:35 PM
Re: 'This is your chance to... Groove DIY PC 0 29th May 2004 09:55 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:21 PM.