Concurrency::task.wait() throws invalid_operation exception: "Illegal to wait on a task in a Windows Runtime STA." This exception occurs since ~14th ...
Concurrency::task.wait() throws invalid_operation exception: "Illegal to wait on a task in a Windows Runtime STA." This exception occurs since ~14th ...
Following logic is implemented to open a file by a "filename.extension" in a C++ application using managed-C++: Since the above code throws an exce ...
I am using Visual Studio 2019, and I have a piece of code that uses finally block, I have declared a std::string object at the beginning of each Test1 ...
I'm developing a DLL that connects C++ with C# code, using C++/CLI in Visual Studio 2017. For the project I enabled the complier option '/clr' in Proj ...
I'm using an overriden WndProc to get an inter process communication done, according to this example: https://learn.microsoft.com/en-us/windows/win32/ ...
I have a native class which receives an std::function as a parameter and at some point in time it calls this callback: Let's say this resides in a ...
Synopsis: Managed (/clr) C++ project (.dll) statically links native C++ library (which is compiled with /MD). Static library is big and references a ...
I'm working on a proprietary code base, so I have to abstract this. I'm trying to set the value of DataType_T*** myData in MyApplication. I'm using a ...
I am wrapping some C++ code in managed C++ to access it in C#: I can not figure out how to make operators properly work in C# I create in managed C++ ...
I am trying to use the following implementation from a library C++ I am importing this to use with C# and am getting System.AccessViolationExcep ...
I have created a simple Managed C++ project where I access CPoint from Atltypes.h. When compiling I am getting error 'errno.h' header not found. But I ...
I was super excited to see that the latest previews of .NET Core 3.1 and Visual Studio 2019 add support for managed C++/CLI projects, as such a projec ...
I'm using pocoXML functions in a managed DLL, which is used by another managed C++ project. The managed DLL compiles perfectly. But when calling a DLL ...
I have a standard library string, and I would like to make the following conversion: System::String^ to std::string ...
I created a library in which one exposed function accepts a function pointer of type void(*fun_ptr)(int). The function syntax is: start_server(char ...
I'm writing a program for embedded linux on an ARM processor in .net that uses mono to execute. I have found that I can simply compile to either x86 o ...
I have a dll from a company called CTP that allows me to trade on Chinese exchanges. It is in C++ and my app is in C#... I have been able to write cod ...
I want to access the String::Format Method from my C++ codebase. To do so I could simply create a function: My problem is, that not every file in m ...
I created a solution in VS 2017 with 2 main projects (& common ones). The architecture illustrates a very large legacy project, therefore cannot b ...
I have a ASP.NET web application that needs access to a function in a native C++ DLL. To do this, I wrapped the native C++ code using a managed C++ DL ...