Questions tagged [cliext]

The cliext namespace contains all the types of the STL/CLR library.

The cliext namespace contains all the types of the STL/CLR library. For a list of all these types, and links to more information on the STL/CLR types, see STL/CLR Library Reference.

5 questions
1
vote
3 answers

C++ CLI: cliext::vector as return type of public class function?

I have next class in C++ CLI: public ref class MyClass { public: MyClass(void); virtual bool Init(); cliext::vector^ ListOfNumbers(); }; I would like to recive vector of int from public…
user2706838
  • 1,061
  • 2
  • 13
  • 21
1
vote
1 answer

STL/CLR Library uses IComparable to implement == operator and throws NullReferenceException

I had a .NET class which was not implementing IComparable interface. After I implemented IComparable interface on this class some c++ code using my class changed it's behavior unexpectedly. Now it throws a NullReferenceException DWORD…
George Mamaladze
  • 7,593
  • 2
  • 36
  • 52
0
votes
1 answer

Compatibility issue with C++CLI .NET and STL via cliext

I am working on a simple Windows::Forms GUI and am running into some issues trying to use STL vector and pair through the cliext package. Basically, I implemented a very simple (and naive) bidirectional map with an underlying cliext::vector<…
kilgoretrout
  • 3,547
  • 5
  • 31
  • 46
0
votes
1 answer

linker error 2022 in visual c++

i have the following header file(data.h): #pragma once #include #include using namespace msclr::interop; using namespace MySql::Data::MySqlClient; using namespace System; using namespace…
user2179293
  • 425
  • 9
  • 22
-1
votes
1 answer

C++/CLI typedef cliext LNK2022 error

If you write a C++/CLI application, and you attempt to use STL:CLR via cliext and you typedef for example a cliext map then you will find that it doesn't work due to a LNK2022 error.