Click here to Skip to main content
15,921,113 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CWinThread "issues" Pin
John M. Drescher18-Apr-04 18:13
John M. Drescher18-Apr-04 18:13 
GeneralRe: CWinThread "issues" Pin
dreamerzz20-Apr-04 2:15
dreamerzz20-Apr-04 2:15 
GeneralRe: CWinThread "issues" Pin
John M. Drescher20-Apr-04 4:28
John M. Drescher20-Apr-04 4:28 
GeneralCreating string from BSTR Pin
yanuart12-Apr-04 6:25
yanuart12-Apr-04 6:25 
GeneralRe: Creating string from BSTR Pin
Darshan Jani12-Apr-04 7:02
Darshan Jani12-Apr-04 7:02 
GeneralRe: Creating string from BSTR Pin
GuimaSun12-Apr-04 7:07
GuimaSun12-Apr-04 7:07 
GeneralKeep the Client DC state in a Bitmap Pin
stelitsisan12-Apr-04 5:40
stelitsisan12-Apr-04 5:40 
GeneralCustomized CFileDialog Pin
benny232312-Apr-04 5:28
benny232312-Apr-04 5:28 
GeneralRe: Customized CFileDialog Pin
David Crow12-Apr-04 7:40
David Crow12-Apr-04 7:40 
GeneralRe: Customized CFileDialog Pin
benny232312-Apr-04 8:36
benny232312-Apr-04 8:36 
GeneralRe: Customized CFileDialog Pin
David Crow12-Apr-04 9:22
David Crow12-Apr-04 9:22 
GeneralMy Service gets stopped when checked for dependensies Pin
Anonymous12-Apr-04 5:01
Anonymous12-Apr-04 5:01 
General_variant_t causing linker error Pin
yanuart12-Apr-04 4:23
yanuart12-Apr-04 4:23 
GeneralRe: _variant_t causing linker error Pin
David Crow12-Apr-04 4:28
David Crow12-Apr-04 4:28 
GeneralRe: _variant_t causing linker error Pin
yanuart12-Apr-04 6:23
yanuart12-Apr-04 6:23 
Generalcreating name pipe Pin
pnpfriend12-Apr-04 3:40
pnpfriend12-Apr-04 3:40 
GeneralRe: creating name pipe Pin
GuimaSun12-Apr-04 7:51
GuimaSun12-Apr-04 7:51 
GeneralRe: creating name pipe Pin
pnpfriend13-Apr-04 7:47
pnpfriend13-Apr-04 7:47 
The problem is that both server.exe and client.exe are communicating very well if and only if they both are on the same machine.

For examplle. there are 3 machines, c1,c2,and c3.
The server.exe is running on c2 and the client is running on each machine.
(note: both server.exe and client.exe are on the network drive.)
only the client on c2 is communicating with the server because to the client is on the same machine that the server.exe is running.
the other clients on c1 and c3 are not able to communicate with the server.exe.

Namepipe is used to commnunication between client and server.

CreateNamepipe(), "\\\\.\\pipe\\c2", is used by server.
CreateFile(),"\\\\.\\pipe\\c2", is used by client.
ReadFile() and WriteFile() are used to communication between client and server.

I thought I have to change the string ""\\\\.\\pipe\\c2", to "\\\\c2\\pipe\\c2", so client can find the server and talk. but I cant' even createNamepipe using above string ("\\\\c2\\pipe\\c2")
If I used the old string "\\\\.\\pipe\\c2" then client on the other machine can't find server.

what am i missing?


GeneralExperts help reg threads Pin
ykutanoor12-Apr-04 3:14
ykutanoor12-Apr-04 3:14 
GeneralRe: Experts help reg threads Pin
David Crow12-Apr-04 3:30
David Crow12-Apr-04 3:30 
Generalcopy constructor Pin
packetlos12-Apr-04 3:12
packetlos12-Apr-04 3:12 
GeneralRe: copy constructor Pin
toxcct12-Apr-04 3:50
toxcct12-Apr-04 3:50 
GeneralRe: copy constructor Pin
antlers12-Apr-04 5:01
antlers12-Apr-04 5:01 
GeneralRe: copy constructor Pin
packetlos12-Apr-04 5:17
packetlos12-Apr-04 5:17 
GeneralRe: copy constructor Pin
Tim Smith12-Apr-04 6:23
Tim Smith12-Apr-04 6:23 

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.