开发者

Using Shared Memory in a Dynamic-Link Library in Visual C

开发者 https://www.devze.com 2023-04-05 15:42 出处:网络
I\'m trying to use the dll in the开发者_Go百科 link below that allows for shared memory between different process. Though for some reason it\'s not compiling.

I'm trying to use the dll in the开发者_Go百科 link below that allows for shared memory between different process. Though for some reason it's not compiling. http://msdn.microsoft.com/en-us/library/ms686958%28v=vs.85%29.aspx First I have the dll compiled as written as a .lib. Then I create a new source file with the exact code as in the parent process. Just compiling I get the error

"Warning: empty declaration, syntax error found string constant expecting ;,unrecognized declaration"

for the line:

extern "C" VOID __cdecl SetSharedMem(LPWSTR lpszBuf)

what does this mean?


extern "C" VOID __cdecl SetSharedMem(LPWSTR lpszBuf);
                                                   ^^^

It seems You have Missed the semicolon while copy pasting it.

0

精彩评论

暂无评论...
验证码 换一张
取 消