Use Houdini SDK (HDK) from C#?

   855   0   0
User Avatar
Member
5 posts
Joined: April 2024
Offline
Hello, I'm trying to use methods from LibOP.dll in C#.
Following this example: https://www.sidefx.com/docs/hdk/_h_d_k__h_d_a_intro.html#HDK_HDAIntro_Examples_Inspection [www.sidefx.com]
I found an entry point, OPgetDirector, that I imported like this in C#:
[DllImport("libop.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "?OPgetDirector@@YAPEAVOP_Director@@XZ")]
public static extern IntPtr OPgetDirector();

I found the entry point symbol by using a tool named Dependencies.
Sadly, the IntPtr I get is IntPtr.Zero, which obviously doesn't allow me to do anything.
And honestly, even if it was a valid ptr, I don't know what I would do with it.
Is there anyone here who managed to make HDK work together with C#?
Or am I fighting because of a wrong workflow?
Thanks!
  • Quick Links