Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
1 vote
1 answer
48 views

How can I automatically reference a C++ DLL when using a C# class library in another project?

This is my first time using C++ dll. I have created a C# class library project that uses a C++ dll. After Googling, I ported the cpp dll using 'DllImport' I built the project and confirmed that the '...
jhKim's user avatar
  • 13
0 votes
0 answers
49 views

How to port C# Buffer.BlockCopy to Python 3

I've been trying to implement a working solution to mimic C#'s Buffer.BlockCopy() function in Python 3, I can't seem to get it working and I've tried a ton of resources online to try and help with my ...
Gregory's user avatar
0 votes
0 answers
382 views

System.BadImageFormatException: 'Could not load file or assembly' - C# / C++

I try to be as detailed as possible in explaining our situation, premising that we made several attempts in relation to other similar situations found on stackoverflow. Specifically, we have a project ...
Lorenzo Vettori's user avatar
0 votes
0 answers
112 views

.NET 6 Setting Socket Options for MacOS

I am porting a C# .NET 4.8 app to .NET 6.0 I have the following code fragment: //Set the socket options mainSocket.SetSocketOption(SocketOptionLevel.IP, SocketOptionName....
Leon's user avatar
  • 339
0 votes
0 answers
121 views

Porting simplest AES ECB to C#

I try to port a quite simple python snippet to C#. My code is actually working, but does not produces the same output for a given input. The "reference implementation" I got in Python: from ...
Seven's user avatar
  • 4,393
0 votes
2 answers
542 views

Converting C# into Powershell with DllImport involved

I've recently been working on a little side project to see if I can get a little memory editing to work with PowerShell. I put together a small script in C# that doesn't require administrative ...
Nick's user avatar
  • 13
0 votes
0 answers
959 views

Kotlin: How to implement in kotlin an asynchronous socket connection with asynchronous read method and end-of-read callback method?

Currently my android app communicates with a server via tcp socket with synchronous read and write methods private val addressString : String = "192.168.1.200" private val port : Int ...
Adamo Branz's user avatar
0 votes
1 answer
756 views

How to translate a delegate event from C # to Kotlin that wants 2 input and 1 output parameters?

I am porting a library from c # to kotlin and inside a class I have a delegate event which has 2 input parameters and one output parameter public delegate bool MyDelegate(int para1, int param2) ...
Adamo Branz's user avatar
-1 votes
2 answers
106 views

Kotlin: How to "port" one class that extend List of object and method that work with generics, from c # to kotlin? [closed]

I need to port a library from C # to Koltin but I have a class that I don't know how to "translate", any suggestions? public class MyClass: List<IMyInterface> { ...
AccountForWorks's user avatar
3 votes
0 answers
1k views

How to prevent "app.config" error after porting to .Net Core an app with an app.config and a .settings file?

I've run into an issue while porting some of our .Net Framework projects to .Net Core. After porting, if the project has an "app.config" AND a "Settings.settings" file I get an ...
Matthew Watson's user avatar
1 vote
1 answer
1k views

INotifyPropertyChanged in a Core environment

For years I have been using a WPF application and now I want to start implementing a Core project where I can store, well, my core classes. My goal is to keep away any and all WPF dependent classes (...
user2529011's user avatar
1 vote
4 answers
336 views

How to compare adjacent deque elements in C#?

I am trying to port some code from Python to C#. The goal is to compare adjacent elements and see if four consecutive values are bigger than one another. Following this post (Compare two adjacent ...
XOR's user avatar
  • 427
1 vote
0 answers
45 views

Mismatched encodings porting procedural gradient generation from C++ to C#

I'm replicating the tinyrenderer project by Dmitry V. Sokolov from C++ to C# and am unable to replicate one of the most basic functions he has written to generate a gradient image procedurally. I have ...
Pranav Negandhi's user avatar
-2 votes
1 answer
565 views

How to read touch screen input on android

I'm trying to port a one-click game to Android, using monogame but as my first time doing this I'm struggling to figure out how I can read if the user has pressed the screen or not. I'm also unsure ...
takki's user avatar
  • 11
-4 votes
1 answer
115 views

Need some help porting Java code Android Studio to C# Visual Studio [closed]

I need some help porting a piece of Java code to C#. The code is about a post request to a web api, to make the connection I used Volley in Java and I've already installed the NuGet in Visual Studio. ...
Adrian's user avatar
  • 121

15 30 50 per page
1
2 3 4 5
11