steinbergmedia / vst3sdk

VST 3 Plug-In SDK
Other
1.63k stars 162 forks source link

get error when editorhost debug in x86 #9

Closed simpleway2016 closed 6 years ago

simpleway2016 commented 6 years ago

I create x86 solution in vs2017 with command: cmake.exe -G"Visual Studio 15 2017" ../vst3sdk then i run project "editorhost",it throw this exception Run-Time Check Failure #0 - The value of ESP was not properly saved across a function call. This is usually a result of calling a function declared with one calling convention with a function pointer declared with a different calling convention.

simpleway2016 commented 6 years ago

i fixed this problem. public.sdk\samples\vst-hosting\editorhost\source\platform\win32\window.h modify code: using GetDpiForMonitorProc = HRESULT () (HMONITOR, MONITOR_DPI_TYPE, UINT, UINT); using SetProcessDpiAwarenessProc = HRESULT () (PROCESS_DPI_AWARENESS); to: using GetDpiForMonitorProc = HRESULT (_stdcall ) (HMONITOR, MONITOR_DPI_TYPE, UINT, UINT); using SetProcessDpiAwarenessProc = HRESULT (_stdcall ) (PROCESS_DPI_AWARENESS);

ygrabit commented 6 years ago

will be included in next update. Thx