Quantcast
Channel: Common Language Runtime Internals and Architecture forum
Viewing all articles
Browse latest Browse all 1710

Pointer of String in C#

$
0
0

Hello guys,

I need to use an external non com dlls (made in C) which as a method with the following signature: public static external void logic_open(long xpto).

In this method the long atribute is a reference to a string which by the way is a ip adress of a machine.

I cannot change the c api, so how can I in c#, get the pointer of such string and pass it to the function?

I have already tried marshalling and all that stuff but nothing...

Thanks


Rui Machado


Viewing all articles
Browse latest Browse all 1710

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>