Access memory address in c#

前端 未结 4 1245
孤城傲影
孤城傲影 2021-02-04 19:34

I am interfacing with an ActiveX component that gives me a memory address and the number of bytes.

How can I write a C# program that will access the bytes starting at

4条回答
  •  长发绾君心
    2021-02-04 19:59

    I think you are looking for the IntPtr type. This type (when used within an unsafe block) will allow you to use the memory handle from the ActiveX component.

提交回复
热议问题