What platform to use for Plugins?

Hi,
As part of my evaluation of Directory Opus (which looks sooooo promising) I am getting started on understanding plugins and what they could do for me.
I thought to start I would just compile the 'rar_sample_vfs_plugin'. Well always try the lucky, easy, way first; looks like I am out of luck today :frowning:
Could you please advise what development platform is good to use? And any fancy settings needed.
The rar.rc file says it was generated by 'Microsoft Visual C++' so I thought to throw it at that products sucessor 'Visual Studio' and my installed version is 2022
With only the 'Desktop Development with C++' workload.

Well, 190 errors and 31 warning later it not going to work Out-Of-The-Box
As there is no project or solution file in the downloaded reasouces I suspect you are not using VS

The errors are mostly

"cannot convert from 'LPWSTR' to 'LPSTR'	"
"argument of type "LPWSTR" (aka "wchar_t *") is incompatible with parameter of type "LPSTR" (aka "char *")

but one "'DWL_USER': undeclared identifier " suggests a missing component of some type.

Please point me in the right direction.
Thanks
JC

Use Visual Studio, and make sure the project is set to Use Unicode Character Set under Properties / Configuration Properties / Advanced for the DLL file.

Leo,
Thanks for this input - sorry for the delayed response but I guess you know how 'other-things' can get in the road of a project.
Anyway I also needed to add "C++ MFC for latest v143 build Tools (x86 & x64)"
Now it is complaining
Error LNK2028 unresolved token (0A000151) "extern "C" wchar_t * __cdecl PathFindNextComponentW(wchar_t const *)"
then ditto for PathAppendW, PathRemoveFileSpecW and PathFindFileNameW
followed by the same set but error "Error LNK2019 unresolved external symbol"

I am sorry but I haven't touched C++ for over 25 years and have recently been using .NET which seems to have a very different 'framework' structure.
In short I am having trouble turning my head around to what this might be missing.
Also I see the 'Rar plugin' code is over 15 years old; so anything I install/import today could easily be incompatible with the past.
Could you please 'hum-a-few-bars' of the environment this great app is developed in, with what base library sets etc, so maybe I can stop bothering you at every step.

Thanks
JC

Jon,
I am aware of what the error means.
My point is that I am trying to compile the sample code in opus_sdk.zip from Download Resources - Directory Opus Self-Service Support
This is completely untouched by me - just OOB this does not compile.
My question is what environment is needed to get it compile. What libraries are you assuming are installed?
JC

That's a Windows API. Microsoft's API docs usually tell you the .lib file required at the bottom of each page: