Wrox Programmer Forums
|
VB.NET 2002/2003 Basics For coders who are new to Visual Basic, working in .NET versions 2002 or 2003 (1.0 and 1.1).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET 2002/2003 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 8th, 2004, 04:18 AM
Authorized User
 
Join Date: Oct 2003
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
Default Pointers and VB.Net HELP

I am attempting to convert some C# code to VB.Net. My understanding of both languages is pretty limited. I am trying to "assign" (if that is the correct term for it) an address to a pointer.

In C# it is done like this (I think!):

IntPtr StaticAddress = (IntPtr)0x0100d514;

How do I do it in VB.net??

I have worked out how to create a pointer and assign the address of a new variable to it but that is not what I am after. I already know the address, and simply want to point my pointer at it.

Any help or abuse would be much appreciated...:)
 
Old April 8th, 2004, 08:15 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,101
Thanks: 0
Thanked 2 Times in 2 Posts
Default

here's an article on it: http://www.123aspx.com/resdetail.aspx?res=31302

Though, I would find a way to use managed code and dump the pointers. Your losing many .NET benefits by using pointers.


Hal Levy
Web Developer, PDI Inc.

NOT a Wiley/Wrox Employee





Similar Threads
Thread Thread Starter Forum Replies Last Post
C/C++ Pointers reality_42000 C++ Programming 1 March 4th, 2007 01:26 AM
A little clueless, need some pointers bmg181 ASP.NET 2.0 Basics 3 December 23rd, 2005 01:21 PM
pointers Stuby085 Visual C++ 1 August 30th, 2003 11:58 PM
New to C++. Question about pointers jtodora Visual C++ 1 August 21st, 2003 10:28 PM
Pointers jake VB How-To 12 June 21st, 2003 11:30 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.