Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

6
  • Thanks! Though, Python can work with wchar_t strings just fine, which is one less headache. Commented Sep 23 at 17:27
  • But wait, the root issue is getting this to work with the loaded, existing library. That's what I'm stumbling on, getting the function pointers to the DLL code and calling those functions. Commented Sep 23 at 17:37
  • "cast appropriately" is possibly stickiest part. :-) I've gotten the static functions in the library to call correctly, but not the member functions. Commented Sep 23 at 17:57
  • @NickBauer Yeah, I'm trying to make it work by creating a DLL with similar signatures, and ran into the same issue. I deleted my comment before realizing you replied. I did get it to work by linking the target DLL to the wrapper DLL, but you still need to create a header file that mimics the API calls for it to link. Also if you do that, you don't need to dynamically load the static functions. Commented Sep 23 at 18:45
  • Hmm, wonder if I could convince the manufacturer to share the header... Commented Sep 23 at 20:06