Re: how can i use clipboard with Jawin?

Alex Chew <[email protected]> Fri, 27 Oct 2006 14:16:10 +0800
Newsgroups gmane.comp.windows.devel.jawin
Message-ID <[email protected]>
Thanks for your kind explaination.

I am now  can  use PPT API under jawin as free as i want.
But, how can i call some SYSTEM method with no owner?
just like openClipboard(),setClipboardData() and closeClipboard()?

regards

//vc++ code
//start set clipboard content
Cstring source;
if(openClipboard())
{


HGLOBAL clipbuffer;
char * buffer;
EmptyClipboard();
clipbuffer = GlobalAlloc(GMEM_DDESHARE, dource.GetLength()+1);
buffer = (char*)GlobalLock(clipbuffer);
Strcpy(buffer, LPCSTR(source));
GlobalUnlock(clipbuffer);
SetClipboardData(CF_TEXT,clipbuffer);
CloseClipboard();


}

//end of set content to clipboard