I wonder what I have to pass as parameter to CloseClipboard. The declaration in windows.h is:
long WINAPI CloseClipboard(long);
msdn says, that CloseClipboard sholdn't get any parameters:
http://msdn.microsoft.com/en-us/library/windows/desktop/ms649035%28v=vs.85%29.aspx
If I pass NULL, the engine crashes. I replaced the line with
long WINAPI CloseClipboard();
in windows.h and now everything appears to work fine.
Is it a bug in 3dgs or am I doing something wrong? :S
regards Alain
Example code:
#include <acknex.h>
#include <windows.h>
function main()
{
if(OpenClipboard(hWnd))
{
HANDLE hClipboardData = GetClipboardData(CF_TEXT);
char *pchData = (char*)GlobalLock(hClipboardData);
printf(pchData);
GlobalUnlock(hClipboardData);
if(CloseClipboard(NULL)) //What to pass as parameter? oO
printf("should be alright :S");
}
}
EDIT: I think its not only CloseClipboard but also some others(like EmptyClipboard)