extern "C" { IVideoGrabber* newInstance() { return new VideoGrabber; } void destroyInstance(IVideoGrabber *vgb) { delete vgb; }}
extern "C" { __declspec(dllexport) IVideoGrabber* newInstance() { return new VideoGrabber; } __declspec(dllexport) void destroyInstance(IVideoGrabber *vgb) { delete vgb; }}
\\ где-нибудь в С++ файле:IVideoGrabber* newInstance() { return new VideoGrabber;}void destroyInstance(IVideoGrabber *vgb) { delete vgb;}\\где-нибудь в месте экспорта:extern "C" __declspec(dllexport) IVideoGrabber* __cdecl newInstance();extern "C" __declspec(dllexport) void __cdecl destroyInstance(IVideoGrabber *vgb);