Skip to main content

Questions tagged [c++-cli]

C++/CLI is based on C++, modified to allow compilation of a mixture of native code and code for Microsoft's Common Language Infrastructure (CLI). It replaces Microsoft's Managed Extensions for C++, which aimed for stronger C++ conformance.

0 votes
0 answers
27 views

High Performance WriteableBitmap backbuffer C++/CLI

How to improve the image FPS rate. Now is single digit of FPS. It doesn't seems normal with current refresh rate though. Code explaination: Backend threads calling c++/cli functions below and event ...
Sean Tan's user avatar
-1 votes
1 answer
44 views

Cannot cast from System::Object to System::Windows::Forms::MenuItem in C++/CLI

I'm working on my C++/CLI project as I'm adding the sub menu items with click event. I'm having a problem with getting the text of the menu item, because when I try this: Debug::WriteLine("...
Robert Jones's user avatar
1 vote
2 answers
46 views

Opening a WPF Window from C++/CLI via async method is blocking

I am attempting to open a WPF Window that contains a WebView2 control so I can add OpenID Connect authentication to an existing C++ CLI application. We are using https://github.com/IdentityModel/...
Jason's user avatar
  • 2,867
0 votes
1 answer
53 views

C++ Cli passing image pointers to WPF to display [duplicate]

My image processing is all in C++. Was using MFC, now exploring to upgrade to WPF. WPF side will be mainly user interface, I'm passing image pointers from unmanaged to managed for display. I found ...
Sean Tan's user avatar
-2 votes
2 answers
41 views

LINK2001,and LINK1120 errors visual studio 2022 CLR empty project

i am currently working on a web browser on visual studio 2022 and every time I execute the program these errors show up LINK2001 unresolved external symbol main and LINK1120 1 unresolved externals. So ...
user25910489's user avatar
-1 votes
0 answers
36 views

Incorrect value of ServicePointManager.SecurityProtocol property

1. Question right at the beginning How to ensure that the initial default value of the SecurityProtocol property of the ServicePointManager class from the System.Net namespace is SecurityProtocolType....
tibx's user avatar
  • 910
1 vote
1 answer
36 views

Convert a C# Bitmap to a native C++ Bitmap under GDI+

I created a Bitmap like following in C# (for example): Image image = Image.FromFile("xxx.png"); Bitmap bitmap = new(image.Width, image.Height, PixelFormat.Format32bppArgb); Graphics graphics ...
Ace_Radom's user avatar
-3 votes
1 answer
56 views

I can't write a string variable to my file using fstream [closed]

When I click a button, I want a string value entered by a user to be stored in a file. private: System::Void add_task_Click(System::Object^ sender, System::EventArgs^ e) { ofstream ...
user25745846's user avatar
-3 votes
0 answers
22 views

HT BASIC fail call .NET dll file?

BASIC language programs need to call a class library written in C#. We created an intermediate DLL with a C language interface using C++/CLI. The invoke pipeline is: BASIC program—>dll (C++/CLI ...
ligand's user avatar
  • 294
-2 votes
1 answer
53 views

Windows Forms with C#/C++-CLI: Error while declaring std::vector<System::Decimal>

While I can declare the following: private: std::vector<System::Int32>* test = new std::vector<System::Int32>; I get an error while declare the following: private: std::vector<...
dkmg's user avatar
  • 15
-3 votes
2 answers
67 views

Integrating C++ Classes into CLR Project for Windows Forms Application: Parser Error Issue

I have created a CLR empty project (.NET Framework) in Visual Studio, as I've learned that this is the preferred method to utilize C++ with an effective GUI. Within this project, I have a form named ...
haris naeem's user avatar
-2 votes
2 answers
101 views

I'm getting C2976 'std::array': too few template arguments & C3699 '^': cannot use this indirection on type 'std::array' in this code

I am still a beginner and have no idea what's going on here. My code: #include "MainForm.h" #include <iostream> #include <windows.h> #include <conio.h> #include <...
MC Elwa's user avatar
-1 votes
2 answers
55 views

C++/CLI from typedef std::function to managed delegate

I have a big class from extern library and I need to use a unmanaged callback in managed code. Unmanaged code simplified: typedef std::function<void(const std::string &, Float)> ...
The Overrider's user avatar
1 vote
1 answer
92 views

Connect with SQL Server by using C++ and .NET Framework [duplicate]

I am creating an app with C++ language in .NET Framework I am trying to connect with SQL Server but I can't connect with it. The error massage is [System.Data.SqlClient.SqlException: 'A network-...
Polas Hacks's user avatar
0 votes
1 answer
64 views

C++/CLI errors in VS 2022, the IDE recognizes a namespace but the compiler does not

I have a class library using C++/CLI in Visual Studio 2008 and have upgraded it to VS 2022. The upgraded project generates the compile error: 'AlarisSODLibrary': is not a class or namespace name ...
user79517's user avatar

15 30 50 per page
1
2 3 4 5
412