Click here to Skip to main content
15,900,816 members
Home / Discussions / C#
   

C#

 
GeneralRe: EF dynamic CRUD Pin
jackie.398117-Feb-16 6:51
jackie.398117-Feb-16 6:51 
AnswerRe: EF dynamic CRUD Pin
Gerry Schmitz17-Feb-16 17:51
mveGerry Schmitz17-Feb-16 17:51 
QuestionBoss just gave me ReSharper Ultimate Pin
Ian Klek16-Feb-16 22:28
Ian Klek16-Feb-16 22:28 
AnswerRe: Boss just gave me ReSharper Ultimate Pin
OriginalGriff16-Feb-16 23:17
mveOriginalGriff16-Feb-16 23:17 
AnswerRe: Boss just gave me ReSharper Ultimate Pin
Pete O'Hanlon16-Feb-16 23:31
mvePete O'Hanlon16-Feb-16 23:31 
GeneralRe: Boss just gave me ReSharper Ultimate Pin
John Torjo18-Feb-16 6:40
professionalJohn Torjo18-Feb-16 6:40 
JokeRe: Boss just gave me ReSharper Ultimate Pin
Sascha Lefèvre16-Feb-16 23:31
professionalSascha Lefèvre16-Feb-16 23:31 
GeneralRe: Boss just gave me ReSharper Ultimate Pin
Foothill18-Feb-16 5:33
professionalFoothill18-Feb-16 5:33 
AnswerRe: Boss just gave me ReSharper Ultimate Pin
Kornfeld Eliyahu Peter17-Feb-16 1:01
professionalKornfeld Eliyahu Peter17-Feb-16 1:01 
AnswerRe: Boss just gave me ReSharper Ultimate Pin
BillWoodruff17-Feb-16 3:10
professionalBillWoodruff17-Feb-16 3:10 
AnswerRe: Boss just gave me ReSharper Ultimate Pin
Ravi Bhavnani17-Feb-16 11:11
professionalRavi Bhavnani17-Feb-16 11:11 
GeneralRe: Boss just gave me ReSharper Ultimate Pin
Pete O'Hanlon18-Feb-16 5:39
mvePete O'Hanlon18-Feb-16 5:39 
QuestionNamed pipes: C# server, C++ client Pin
Crazy Joe Devola16-Feb-16 8:57
Crazy Joe Devola16-Feb-16 8:57 
AnswerRe: Named pipes: C# server, C++ client Pin
Richard Andrew x6416-Feb-16 9:31
professionalRichard Andrew x6416-Feb-16 9:31 
GeneralRe: Named pipes: C# server, C++ client Pin
Crazy Joe Devola16-Feb-16 9:35
Crazy Joe Devola16-Feb-16 9:35 
GeneralRe: Named pipes: C# server, C++ client Pin
Richard Andrew x6416-Feb-16 9:46
professionalRichard Andrew x6416-Feb-16 9:46 
GeneralRe: Named pipes: C# server, C++ client Pin
Crazy Joe Devola16-Feb-16 10:03
Crazy Joe Devola16-Feb-16 10:03 
GeneralRe: Named pipes: C# server, C++ client Pin
Crazy Joe Devola16-Feb-16 10:11
Crazy Joe Devola16-Feb-16 10:11 
GeneralRe: Named pipes: C# server, C++ client Pin
Richard Andrew x6416-Feb-16 11:29
professionalRichard Andrew x6416-Feb-16 11:29 
GeneralRe: Named pipes: C# server, C++ client Pin
Crazy Joe Devola16-Feb-16 11:32
Crazy Joe Devola16-Feb-16 11:32 
GeneralRe: Named pipes: C# server, C++ client Pin
Richard Andrew x6416-Feb-16 11:38
professionalRichard Andrew x6416-Feb-16 11:38 
GeneralRe: Named pipes: C# server, C++ client Pin
Crazy Joe Devola16-Feb-16 12:03
Crazy Joe Devola16-Feb-16 12:03 
Server: C#
NamedPipeServerStream pipeServer = new NamedPipeServerStream("\\\\.\\pipe\\mypipe", PipeDirection.In, 1, PipeTransmissionMode.Byte, PipeOptions.Asynchronous);

// Wait for a connection
pipeServer.BeginWaitForConnection(new AsyncCallback(WaitForConnectionCallBack), pipeServer);

Client: C++
hPipe=CreateFile("\\\\.\\pipe\\mypipe",
                  GENERIC_READ | GENERIC_WRITE,
                  0,
                  NULL,
                  OPEN_EXISTING,
                  0,
                  NULL) ;
 if ( hPipe!=INVALID_HANDLE_VALUE)
 {
     return 0; //Success!!!
 }

 err = GetLastError();
 if(err!=ERROR_PIPE_BUSY)
 {
     printf("Could not open pipe, GetLastError=%u\n", err);
     return -1 ;
 }

 printf("Could not open pipe, GetLastError=%u. WaitNamedPipe.\n", err);
 if(! WaitNamedPipe(pipe_name,2000))
 {
     printf("Could not open pipe\n");
     return -1 ;
 }

again:
C++ client with C++ server - works.
C# client with C# server - works.
C++ client with C# server - does not works.

Thank you.
GeneralRe: Named pipes: C# server, C++ client Pin
Richard Andrew x6416-Feb-16 12:27
professionalRichard Andrew x6416-Feb-16 12:27 
GeneralRe: Named pipes: C# server, C++ client Pin
Crazy Joe Devola16-Feb-16 12:46
Crazy Joe Devola16-Feb-16 12:46 
AnswerRe: Named pipes: C# server, C++ client Pin
Crazy Joe Devola16-Feb-16 13:12
Crazy Joe Devola16-Feb-16 13:12 

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.