I implemented my C++ code normally. After I finished, I started to decide to implement wrapper to be able to access my Core in C#. But once I included my project and on building I got many error messages with
error LNK2019: unresolved external symbol "extern "C"....
Example:
error LNK2019: unresolved external symbol "public: long thiscall CPreview::CheckDeviceLost(struct _DEV_BROADCAST_HDR *,int *)" (?CheckDeviceLost@CPreview@@$$FQAEJPAU_DEV_BROADCAST_HDR@@PAH@Z) referenced in function "void __cdecl OnDeviceChange(struct HWND *,struct _DEV_BROADCAST_HDR *)" (?OnDeviceChange@@$$FYAXPAUHWND__@@PAU_DEV_BROADCAST_HDR@@@Z) C:\Users\mariame\Desktop\WrapperCameraModule\camera_module_wrapper\camera_module_wrapper\camera_module_wrapper\camera_module_wrapper.obj camera_module_wrapper
or
error LNK2028: unresolved token (0A00007E) "extern "C"
Example:
Error 32 error LNK2028: unresolved token (0A0000B5) "extern "C" long __stdcall DispatchMessageW(struct tagMSG const *)" (?DispatchMessageW@@$$J14YGJPBUtagMSG@@@Z) referenced in function "extern "C" long __cdecl DispatchMessage(struct tagMSG const *)" (?DispatchMessage@@$$J0YAJPBUtagMSG@@@Z) C:\Users\mariame\Desktop\WrapperCameraModule\camera_module_wrapper\camera_module_wrapper\camera_module_wrapper\camera_module_wrapper.obj camera_module_wrapper
I have not used any extern "C" in my code. They are in the included function.
#include <windows.h>
#include <windowsx.h>
#include <mfapi.h>
#include <mfidl.h>
#include <mfreadwrite.h>
#include <assert.h>
#include <strsafe.h>
#include <shlwapi.h>
#include <Dbt.h>
#include <ks.h>
#include <ksmedia.h>
What shall I do I need to implement the wrapper