DLL中的共享内存区编译链接的时候怎么说找不到啊,急~~~
#include "stdafx.h"
#include <afxdllx.h>
#include "keyboardhook.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
#pragma data_seg("Shared")
HHOOK g_hHook;
HINSTANCE g_Instance;
HOTKEY g_HotKeyList[MAX_HOTKEY];
#pragma data_seg()
#pragma comment(linker, "/section:Shared,rws")
LRESULT CALLBACK KeyboardProc(int code, WPARAM wParam, LPARAM lParam);
static AFX_EXTENSION_MODULE HotKeyDllDLL = { NULL, NULL };
extern "C" int APIENTRY
DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved)
{
……
编译提示信息:
Linking...
Creating library Debug/HotKeyDll.lib and object Debug/HotKeyDll.exp
LINK : warning LNK4039: section "Shared" specified with /SECTION option does not exist