Translate C++ code into C#

  • Thread starter Thread starter Oleg Subachev
  • Start date Start date
O

Oleg Subachev

How to translate the following C++ code into C# ?

typedef struct {
BYTE *data;
size_t length;
} VizBlob;

typedef struct VizUserInfoActions {
HANDLE (IMPORTED *createFullInfo) (
HANDLE logger,
const VizBlob *blob
);
const VizBlob *(IMPORTED *fullInfoBlob) (
HANDLE logger,
HANDLE fi,
int version);
} VizUserInfoActions;
 
How to translate the following C++ code into C# ?Is the code you are posting designed to call an external DLL?

If so, the usual C# method to do that is called P/Invoke. Your code seems
to pass a callback function to an external DLL. I don't think P/Invoke
supports that.

Greetings,
Wessel
 
Back
Top