View Single Post
Old 10-17-2019, 06:34 AM   #55
mschnell
Human being with feelings
 
mschnell's Avatar
 
Join Date: Jun 2013
Location: Krefeld, Germany
Posts: 14,686
Default

After a lot of tweaking trying to overcome problems supposedly introduced by Visual Studio, I was able to compile the "simple-reaper-extension-plugin", but I get an error when linking.

I created a Visual Studio "Dynamic Link Library (DLL)" project and replaced the code in the automatically created dllmain.dll" by the code provided here. I also needed to create the two reaper*.h files internally in Visual Sudio and paste the content in there, as otherwise (when using a binary copy of the files) Visual Studio would not accept them as Header files.

The remaining errors are these:

Severity Code Description Project File Line Suppression State
Error LNK2001 unresolved external symbol "char const * (__cdecl* GetExtState)(char const *,char const *)" (?GetExtState@@3P6APEBDPEBD0@ZEA) Dll3 C:\Users\mschnell\source\repos\Dll3\dllmain.obj 1

I get such errors for the functions that are defined by IMPAPI(...) :
GetExtState, GetProjectPath, GetResourcePath, HasExtState, InsertMedia, Main_On_command, and SetExt State.

Seemingly the "nasty Macro" called IMPAPI seems not to work as expected in Visual Studio 2019 .

How to proceed ?
-Michael
mschnell is offline   Reply With Quote