Click here to Skip to main content
15,908,842 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralReading .PSD file Pin
nachilau24-May-04 8:27
nachilau24-May-04 8:27 
GeneralRe: Reading .PSD file Pin
David Crow24-May-04 8:31
David Crow24-May-04 8:31 
Generalmenu next to images Pin
Member 466743724-May-04 6:54
Member 466743724-May-04 6:54 
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 
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 
Yes.. k now get more than 1 length..
No.. app2 can't still read it.. it's all junk app2 got.
I don't know whether app1 sent the right information or it is just the converting?

<br />
LPVOID lpvMessage;<br />
TCHAR chbuf[512];<br />
_tcscpy(chbuf, (LPCTSTR)msg);<br />
lpvMessage = chbuf;<br />
int k =_tcslen((TCHAR*)lpvMessage);<br />


app1
<br />
fSuccess = WriteFile( hPipe,lpvMessage,_tcslen((TCHAR*)lpvMessage) *sizeof(TCHAR)+ 1,	&cbWritten,NULL); <br />


app2
<br />
	fSuccess = ReadFile( hPipe, chBuf,512,&cbRead, NULL);<br />

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 

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.