CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2001
    Location
    Switzerland
    Posts
    114

    Function returns DataTable* from VC++ is an object or a pointer to the object?

    I have a VC++ managed class library. A function does return a DataTable*. I use this VC++ class from CSharp. Silly question but does CSharp get the pointer to the DataTable or the whole DataTable Object itsself? Should be the datatable pointer...

    Thanks

    Stefan
    Read Ouspensky 's "Tertium Organum"!

  2. #2
    Join Date
    Dec 2000
    Location
    Slovakia
    Posts
    1,043
    it is something as pointer, however you don't see it in c#...

  3. #3
    Join Date
    Oct 2001
    Location
    Norway
    Posts
    265
    C# uses reference(pointer) semantics for all class objects. You don't have variables that "is the object itself". It's always a pointer.

    The above doesn't go for types declared as structs, though.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured