Ben answered the question already. However, I just wanted to point out that
you may not actually need to create a pointer for your specific needs
anymore. The .Net platform supports passing objects around as references
automatically. For example you can do this:
MyClass class = new MyClass();
object o1 = class;
object o2 = o1;
object o3 = o2;
MyClass class2 = o3;
After that sequence of events class, o1, o2, o3 & class2 will all be
pointing at the exact same instance of MyClass object.
--
Andrew Faust
andrew[at]andrewfaust.com
http://www.andrewfaust.com [quoted text, click to view] "Dipesh_Sharma" <DipeshSharma@discussions.microsoft.com> wrote in message
news:C631831B-F7E4-4D2E-919D-6A698C4D5A1B@microsoft.com...
> Hi All,
> I am new on this VC.Net platform, So please dont mind to my question.
> In VC++ we can use pointers very easily, but i want to know if we can
> use:
> int *ptr = new int[10];
> and
> char * in VC.net.
> If we cant use them whats the alternate option for them. Please explain
> me
> this or provide me link to answers to these question.
>
> Thanks.