r/cpp • • 25m ago

[ Removed by moderator ]

[removed] — view removed post

0 Upvotes

17 comments sorted by

•

u/cpp-ModTeam 1m ago

For C++ questions, answers, help, and programming/career advice please see r/cpp_questions, r/cscareerquestions, or StackOverflow instead.

•

u/rlebeau47 22m ago

The only way to extract a header file from a DLL directly is to reverse engineer it manually. You need to contact the DLL author to ask for the official header file.

•

u/arihoenig 4m ago

Sheesh, that statement is so 2025. The most official header is the one that REA extracts. The official documentation is more likely to have errors than the reversed documentation.

•

u/Inevitable_Hat2449 18m ago

I can't do that because the .dll where from yamaha and I bet the header's you would need to pay for them :(

•

u/AvidCoco 14m ago

Do you mean a vst by any chance?

•

u/Inevitable_Hat2449 7m ago

The "Vocaloid API's" are primarily not meant for vst plug-in's

•

u/saxbophone mutable volatile void 20m ago

In general you can't turn a DLL back into a header without reverse-engineering techniques, none of which are guaranteed to give you the correct result.

In general, for a given DLL you will need to be provided the corresponding header file(s) for it also. If it's a freely available or open-source library, or a popular library, you can probably find header files available for it online, but really you should only be using headers and DLLs that are distributed together (otherwise you might mix up different versions).

•

u/Inevitable_Hat2449 14m ago

yay the "Vocaloid4API" dll's not freely available or open-source library, or even a popular library too begin with and again you'd probably need to contact/pay yamaha in order to get the header file's.

•

u/saxbophone mutable volatile void 13m ago

You shouldn't be trying to use paid-for libraries that you haven't paid for. Pay for it or go without, don't commit piracy. People aren't here to answer your questions so you can pirate proprietary software!

•

u/Inevitable_Hat2449 5m ago

Hey I got the this api through piapro for V4x witch cost money, meaning I technically did paid for this Api

•

u/saxbophone mutable volatile void 2m ago

Were they specifically selling you the library in this DLL, or is the DLL just used as a dependency by the library that they have sold you?

If it's the former, then they really should have also provided you with headers as otherwise you can't really use it. If it's the latter, then no you'd need to purchase this specific library you want to use yourself.

•

u/Citizen12b 7m ago

leave the multi billion dollar company alone!

•

u/saxbophone mutable volatile void 5m ago

Do you think that people dishonest enough to pirate care whether they're ripping off BigMegabucksCorp or a fledgling indie dev team‽ The principle matters.

•

u/Citizen12b 3m ago

well a lot people certainly do, it's a recurring discussion on piracy subreddits, many people don't pirate stuff from independent artists/developers. Do you think people who pirate are just evil like in those dumb TV ads?

•

u/sweetno 7m ago

Ask Claude, it should be capable to generate that from the DLL alone.

•

u/V15I0Nair 7m ago

You could be (partly) lucky, if the DLL has really a C++ interface. You could reconstruct a coarse interface from the demangled exports. But not guarantee about behavior etc.

•

u/rbmm 1m ago

If you have only DLL, all what you can - got list of exported functions names ( or even ordinal only, if export by ordinal). If DLL export c++ mangled names ( this rare ) you can got full signature of function from it. And if you have pdb, for DLL, you also can ( but not always) get full signature of functions, if this is c++ written, also some types definitions, etc. in your case you have no pdb probably. So only function names, in rare case , with signatures ( c++ export) or ordinals only