CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2002
    Posts
    359

    Passing vector<double> from Native C++ to Managed C++

    Hi, All,

    I am trying to call a native C++ function from managed C++, which is supposed to return a vector of double. Unfortunately, it is always empty in release mode, although it works under debug mode.

    I checked that it should not be empty. Anyone has some clue what is going on?

    Thanks,

    CR

  2. #2
    Join Date
    Apr 2004
    Location
    England, Europe
    Posts
    2,492

    Re: Passing vector<double> from Native C++ to Managed C++

    Are you using p/invoke or mixed native/managed code?
    My hobby projects:
    www.rclsoftware.org.uk

  3. #3
    Join Date
    Oct 2002
    Posts
    359

    Re: Passing vector<double> from Native C++ to Managed C++

    yes, I call a Native C++ member function from Managed C++ to get a member variable, a vector of double.
    Last edited by caperover2002; January 9th, 2007 at 01:54 PM.

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