By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,501 Members | 1,678 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,501 IT Pros & Developers. It's quick & easy.

Retrieve data from WM_COPYDATA message

P: n/a
Hi
How can i convert this into c# ?

How can i convert the pointer to a zero terminated sctring back to a C#
string object ?
Best practice to declare the PCOPYDATASTRUCT in c# ?

......
case WM_COPYDATA:
PCOPYDATASTRUCT poCopyData=(PCOPYDATASTRUCT)LParam;

printf( "Message from program(%u): %.*s\n", poCopyData->dwData,
poCopyData->cbData, poCopyData->lpData);

break;

Johan
Nov 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
I have a sample of using COPYDATASTRUCT and WM_COPYDATA in my blog article
at

http://www.dalepreston.com/Blog/Arch...6_Archive.html

HTH

Dale Preston
MCAD, MCDBA, MCSE

"Sagaert Johan" <RE*************@hotmail.com> wrote in message
news:eN**************@TK2MSFTNGP10.phx.gbl...
Hi
How can i convert this into c# ?

How can i convert the pointer to a zero terminated sctring back to a C#
string object ?
Best practice to declare the PCOPYDATASTRUCT in c# ?

.....
case WM_COPYDATA:
PCOPYDATASTRUCT poCopyData=(PCOPYDATASTRUCT)LParam;

printf( "Message from program(%u): %.*s\n", poCopyData->dwData,
poCopyData->cbData, poCopyData->lpData);

break;

Johan

Nov 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.