Click here to Skip to main content
15,898,035 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralGetMessage Hook and App Crashing Pin
User 1278224-May-04 6:50
User 1278224-May-04 6:50 
GeneralRe: GetMessage Hook and App Crashing Pin
jmkhael24-May-04 7:04
jmkhael24-May-04 7:04 
GeneralRe: GetMessage Hook and App Crashing Pin
User 1278224-May-04 7:57
User 1278224-May-04 7:57 
GeneralRe: GetMessage Hook and App Crashing Pin
Ryan Binns24-May-04 18:37
Ryan Binns24-May-04 18:37 
GeneralRe: GetMessage Hook and App Crashing Pin
User 1278224-May-04 18:50
User 1278224-May-04 18:50 
Generalconverting TCHAR to LPVOID Pin
pnpfriend24-May-04 6:25
pnpfriend24-May-04 6:25 
GeneralRe: converting TCHAR to LPVOID Pin
jmkhael24-May-04 6:46
jmkhael24-May-04 6:46 
GeneralRe: converting TCHAR to LPVOID Pin
pnpfriend24-May-04 6:57
pnpfriend24-May-04 6:57 
I dont' want to see all the characters back
I need to send this message to another application.
I have two applications, let's named them app1 and app2. They used pipe to communicate. So
app1 needs to send the message to app2 and here what app1 did,
<br />
CString msg = "sample text";<br />
LPVOID lpvMessage;<br />
TCHAR chBuf[512];	<br />
wcscpy(chBuf,(LPCTSTR)msg);<br />
lpvMessage = chbuf;<br />
int k = strlen((const char*)lpvMessage);<br />
<br />
fSuccess = WriteFile( hPipe,lpvMessage,strlen((const char*)lpvMessage) + 1,	&cbWritten,NULL); <br />


app2 gets the message sent by app1 but only the first character.
So what I need is app1 has CString conent and need to send that string to app2.
How can I send that string out to app2?

by the way, I'm using UNICODE

thank you
GeneralRe: converting TCHAR to LPVOID Pin
jmkhael24-May-04 7:00
jmkhael24-May-04 7:00 
GeneralRe: converting TCHAR to LPVOID Pin
pnpfriend24-May-04 8:26
pnpfriend24-May-04 8:26 
GeneralRe: converting TCHAR to LPVOID Pin
Dominik Reichl24-May-04 7:11
Dominik Reichl24-May-04 7:11 
GeneralRe: converting TCHAR to LPVOID Pin
pnpfriend24-May-04 8:32
pnpfriend24-May-04 8:32 
GeneralRe: converting TCHAR to LPVOID Pin
David Crow24-May-04 8:39
David Crow24-May-04 8:39 
GeneralRe: converting TCHAR to LPVOID Pin
pnpfriend24-May-04 9:05
pnpfriend24-May-04 9:05 
GeneralRe: converting TCHAR to LPVOID Pin
David Crow24-May-04 9:49
David Crow24-May-04 9:49 
GeneralRe: converting TCHAR to LPVOID Pin
pnpfriend24-May-04 10:49
pnpfriend24-May-04 10:49 
GeneralRe: converting TCHAR to LPVOID Pin
David Crow24-May-04 10:52
David Crow24-May-04 10:52 
GeneralRe: converting TCHAR to LPVOID Pin
pnpfriend24-May-04 9:19
pnpfriend24-May-04 9:19 
GeneralRe: converting TCHAR to LPVOID Pin
Michael Dunn24-May-04 11:04
sitebuilderMichael Dunn24-May-04 11:04 
GeneralRe: converting TCHAR to LPVOID Pin
pnpfriend25-May-04 7:59
pnpfriend25-May-04 7:59 
GeneralRe: converting TCHAR to LPVOID Pin
Blake Miller25-May-04 15:11
Blake Miller25-May-04 15:11 
GeneralSetWindowsHookEx, SC_SCREENSAVE and mouse moves Pin
caykahve24-May-04 6:01
caykahve24-May-04 6:01 
GeneralRe: SetWindowsHookEx, SC_SCREENSAVE and mouse moves Pin
jmkhael24-May-04 6:19
jmkhael24-May-04 6:19 
GeneralRe: SetWindowsHookEx, SC_SCREENSAVE and mouse moves Pin
caykahve24-May-04 21:32
caykahve24-May-04 21:32 
GeneralRe: SetWindowsHookEx, SC_SCREENSAVE and mouse moves Pin
jmkhael24-May-04 22:41
jmkhael24-May-04 22:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.