You know even though I have been programming in C# for a bit I have never touched really on interop. I really would like to learn how to interface with C++. I know C++ basics and have programmed some windows with the C++/WINAPI even. I'm trying to start small with it and just return a string but the program crashes and doesn't let me see the error info. Here are my C++ files (dll win32 project file):
yeah it seems to be Edge only. The dialog buttons work as expected in Chrome and Firefox. The phone is using Android 16 (OneUI 8.5) and Edge version 149.0.4022.53
I'm not aware of this issue, but to help the other guys.
What version of Android are you using?
Did you try a different browser? To see if Edge is the issue here.
I agree when are you going to read this (really poor BTW) article?
Here is a better article so you actually know what is going on and answers questions you had in other comments --> https://arstechnica.com/gadgets/2026/05/speed-boosting-low-latency-profile-is-one-of-the-improvements-coming-to-windows-11/
It is unclear if one will be able to disable the new profile at this point but I am not seeing any reason why one would.
I disagree; they come off very "bitchy" and "whiny".
Make a great product and combine that with a great price (free) and people will come over to your side. Or build it and they will come as they say.
Constantly trying to get attention by complaining all the time, will turn people off to your product.
Question
sathenzar
You know even though I have been programming in C# for a bit I have never touched really on interop. I really would like to learn how to interface with C++. I know C++ basics and have programmed some windows with the C++/WINAPI even. I'm trying to start small with it and just return a string but the program crashes and doesn't let me see the error info. Here are my C++ files (dll win32 project file):
InteropTest.h
InteropTest.cpp
#include "stdafx.h" #include "InteropTest.h" extern "C" __declspec(dllexport) char * HelloFromDll() { char *result; result = "Hello from my DLL"; return result; }And finally my C# code (.net 4.5 console program):
Program.cs
class Program { [DllImport(@"InteropTest.dll")] [return:MarshalAsAttribute(UnmanagedType.LPWStr)] private static extern string HelloFromDll(); //[return:System.Runtime.InteropServices.MarshalAsAttribute(UnmanagedType.LPWStr)] static void Main(string[] args) { try { string strRetVal = HelloFromDll(); Console.WriteLine("Returned string: {0}", strRetVal); } catch { } Console.ReadLine(); } }The program fails on the dll call. It throws an accessviolationexception but hangs forever on that.
Link to comment
https://www.neowin.net/forum/topic/1137464-cc/Share on other sites
6 answers to this question
Recommended Posts