Issues with lists
I am trying to work on HCF I created a list with prime factors and I am trying to load the common factors Parent=16 ,Number=2 , Cnts=4 Parent=48 ,Number=2 , Cnts=4 Parent=48 ,Number=3 , Cnts=1 Should give Parent=16 ,Number=2 , Cnts=4 Parent=48…
Win32 context menu items issues
Hello everyone, could you please tell me what can go wrong with getting context menu items via win32? First of all, do I understand correctly that the ampersand in the name is normal? But at the same time, some elements have a localized dwTypeData, some…
VS 2022 wrongly reports error CS0246
Visual Studio 2022 (version 17.12.4) is reporting error CS0246 'type or namespace could not be found...' for a class EposNowReportsDataSnapshot in a declaration: EposNowReportsDataSnapshot dataSnap = new EposNowReportsDataSnapshot(); The error report is…
Entity Framework with Dynamic Table Mapping Based on a Parameter (PostgreSQL Partitioning)
I am using Entity Framework with PostgreSQL and need a way to dynamically map a model to different tables based on a parameter. For example, I have a Cars model, and each company should have its own separate table: Cars_A for Company A Cars_B for…
How to upload a file from my local computer to a Sharepoint folder
Hi, I´m using something like this: string userName = “nelson.soares@********.pt”; string password = “*********”; var securePassword = new SecureString(); foreach (char c in password) { securePassword.AppendChar(c); } using (var…
Full duplex operation, functions C++ C#
I have a C# application and a C++ application. Between the two, data should now be exchanged. In C# ReceiveDataFromCPP(String data) SendDatatoCPP(string data) In C++ ReceiveDataFromCSharp(String data) SendDatatoCSharp(string…
How to fix error I want to run C# in VS code but it give me error
'dotnet' is not recognized as an internal or external command, operable program or batch file. . .NET Core debugging will not be enabled. Make sure the .NET Core SDK is installed and is on the path. 2025-01-29 08:52:17.031 [info] Did not find .NET…
Yield in small explanation // Advantages
Dictionary<string, Order> DicOrders; Is there a simple description of what yield should be used for? Advantages? Is it about speed? class Order { string Name; int Id; double OfferPrice; }
How to fix the error "InvalidCastException: Unable to cast COM object of type 'System.__ComObject' to interface type 'DAO.DBEngine'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{00000021-0000-0010
Hi, I am trying to access DAO.DBEngine for an operation and getting the error " InvalidCastException: Unable to cast COM object of type 'System.__ComObject' to interface type 'DAO.DBEngine'. This operation failed because the QueryInterface call on…
Issue with "Mandatory" package update status in Microsoft Store
Hi, I am experiencing an issue with the Microsoft Store incorrectly reporting "Mandatory" package update status in some of my UWP applications. Following the official documentation, I implemented an update flow in my application that provides…
windows.opener() handling with WebView2
In the webform, I have used window.opener for opening a new window that acted as a dialog which required user input, and needed to pass information back to the main window. I am trying to embed this in winform using WebView2 control.The…
How to Disable Scrolling in a Navigation View with WindowsAppSDK
I have a WindowsAppSDK app that uses a navigation view control for navigation. For one of the pages, scrolling should be disabled, allowing the page to shrink to fit within the navigation view's content pane. How can scrolling be disabled and the page…
I want to lock the current HDMI port in C# WPF (.NET Framework)?
I want to lock the HDMI port. If a HDMI port is used for a monitor then if other HDMI port is used then i want to lock existing port. How to do so in C# WPF?
Microsoft Word issue in windows server 2022 with non interactive session
Hi All , we have an application exe that uses Microsoft Word 2016 to generate Word documents and save the files. We are running this exe as a task scheduler in Gen3 Windows server 2022, when we run the scheduler with non-interactive session (…
Hello I have been doing a POC with semantic kernel API manifest, and i cannot find any good microsoft documentation?
Hello I have been doing a POC with semantic kernel API manifest, and i cannot find any good microsoft documentation, there are some devblogs e.g. https://devblogs.microsoft.com/semantic-kernel/introducing-api-manifest-plugins-for-semantic-kernel-2/ but…
Linq Cosmos DB ArgumentNullException Exception
I am using LinQ on the client side to query Cosmos DB. All the other properties work fine except two properties. One is the "id" and the other is the "RowKey". I manually checked the database, the type of RowKeys are all string, they…
Getting the value of IFormCollection from one controller to another controller
I am getting some values in IFormCollection when I click on the submit button on my Razor page. [HttpPost] [ValidateAntiForgeryToken] public async Task<IActionResult> Index(IFormCollection collection) { try …
Is my technology stack suitable for a startup
I have developed a startup. My technology stack: C#, WPF, Postgresql, Dapper. Is this stack optimal for a startup? I listened to the opinions of previous developers and now I doubt it. Perhaps the problem is that the program does not work on other…
Real-time Transcription in ACS Group video calls
have been working on implementing the Azure Communication Services (ACS) real-time transcription feature and followed the steps outlined in the:…