Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8415293
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T01:24:14+00:00 2026-06-10T01:24:14+00:00

I need to expose some unmanaged data using CLIWrapper. Let’s say I have a

  • 0

I need to expose some unmanaged data using CLIWrapper.

Let’s say I have a vector, but there is no null-characters in the middle of the vector (for sure). What would be the best way to do this type of assigment/marshalling?

And just in case…. How whould the same operation looks like if I do assigning from vector to cli::array?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T01:24:16+00:00Added an answer on June 10, 2026 at 1:24 am

    You can directly use the String class constructor. Like this:

    #include "stdafx.h"
    #include <vector>
    
    using namespace System;
    
    int main(array<System::String ^> ^args)
    {
        std::vector<wchar_t> example;
        example.push_back('x');
        String^ str = gcnew String(&example[0], 0, example.size());
        Console::WriteLine(str);
        return 0;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some HIGHLY sensitive data that I need to expose to Android and
I have to write an architecture case study but there are some things that
Is there some sort of built-in authentication in WCF? I need to expose a
I have recently finished creating a STS setup and need to expose some WCF
Let's assume I have some sort of user data, like list of user messages
I need to expose some input fields based on what properties I find for
I need to expose some C++ classes to C# (I am building on Linux,
Scenario : You need to expose the same app on different screens - let's
I have a RestFull grails api that i expose through grails Controller. I need
Need some regular expressions help. So far I have my code working to allow

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.