-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexport.cpp
More file actions
29 lines (24 loc) · 828 Bytes
/
Copy pathexport.cpp
File metadata and controls
29 lines (24 loc) · 828 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#include "stdafx.h"
#include "export.h"
__shared_api_ void* __stdcall api_object_init(const void* route, unsigned long nroute) {
void* result = nullptr;
do {
} while (0);
return result;
}
__shared_api_ void __stdcall api_object_uninit() {
}
/*
// 暴露AttachPlugin函数,这是CDR调用CPG插件的入口
extern "C" __declspec(dllexport) DWORD APIENTRY AttachPlugin(VGCore::IVGAppPlugin * *CorelDrawPlugin) {
MessageBoxW(NULL, _bstr_t("Hello Martell!"), _bstr_t("https://skstu.com"), MB_OK);
return 0x100;
}
*/
__shared_api_ DWORD __stdcall AttachPlugin(void** pCorelDrawPlugin) {
VGCore::IVGAppPlugin* CorelDrawPlugin = nullptr;
*pCorelDrawPlugin = new local::VGAppPlugin();
LOGINFO("{}", __FUNCTION__);
//MessageBoxW(NULL, _bstr_t("Hello Martell!"), _bstr_t("https://skstu.com"), MB_OK);
return 0x100;
}