Click here to Skip to main content
15,891,033 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: Can native C++ calling C# library? Pin
earlgraham4-Jan-08 7:08
earlgraham4-Jan-08 7:08 
QuestionHow to make a modeless Dialog Pin
strizi21-Nov-07 2:22
strizi21-Nov-07 2:22 
AnswerRe: How to make a modeless Dialog Pin
Luc Pattyn21-Nov-07 11:52
sitebuilderLuc Pattyn21-Nov-07 11:52 
GeneralRe: How to make a modeless Dialog Pin
strizi21-Nov-07 18:32
strizi21-Nov-07 18:32 
GeneralRe: How to make a modeless Dialog Pin
Luc Pattyn21-Nov-07 23:54
sitebuilderLuc Pattyn21-Nov-07 23:54 
Questionhelp please Pin
nowshee20-Nov-07 8:55
nowshee20-Nov-07 8:55 
AnswerRe: help please Pin
Paul Conrad25-Nov-07 9:24
professionalPaul Conrad25-Nov-07 9:24 
Questionempty string Pin
teejayem19-Nov-07 9:33
teejayem19-Nov-07 9:33 
for some reason the Encoding::ASCII->GetString always returns an empty string. While i was debugging it i verified that the buffer was full with data. in the client, i used this same method to return the string and it returned the data in the buffer (as expected). I'm not sure what i'm doing wrong here D'Oh! | :doh:

StringBuilder ^sb = gcnew StringBuilder();

NetworkStream ^stream = (NetworkStream^)result->AsyncState;
stream->EndRead(result);

array<Byte> ^buffer = gcnew array<Byte>(1024);
while(stream->DataAvailable) {
    int nRead = stream->Read(buffer, 0, 1024);
    sb->Append(Encoding::ASCII->GetString(buffer, 0, nRead)); //returns empty string every time.
}


Don't be overcome by evil, but overcome evil with good

AnswerRe: empty string Pin
George L. Jackson19-Nov-07 11:24
George L. Jackson19-Nov-07 11:24 
GeneralRe: empty string [modified] Pin
teejayem19-Nov-07 11:42
teejayem19-Nov-07 11:42 
Questioncritical section Pin
gilpaz1018-Nov-07 22:24
gilpaz1018-Nov-07 22:24 
AnswerRe: critical section Pin
led mike19-Nov-07 4:29
led mike19-Nov-07 4:29 
GeneralRe: critical section Pin
gilpaz1019-Nov-07 7:31
gilpaz1019-Nov-07 7:31 
GeneralRe: critical section Pin
led mike19-Nov-07 7:50
led mike19-Nov-07 7:50 
GeneralRe: critical section Pin
gilpaz1019-Nov-07 8:09
gilpaz1019-Nov-07 8:09 
GeneralRe: critical section Pin
George L. Jackson19-Nov-07 11:06
George L. Jackson19-Nov-07 11:06 
AnswerRe: critical section Pin
Christian Graus19-Nov-07 11:43
protectorChristian Graus19-Nov-07 11:43 
GeneralRe: critical section Pin
led mike19-Nov-07 11:47
led mike19-Nov-07 11:47 
JokeRe: critical section Pin
George L. Jackson19-Nov-07 14:06
George L. Jackson19-Nov-07 14:06 
Questionmulti theading and multi tasking Pin
gilpaz1018-Nov-07 22:22
gilpaz1018-Nov-07 22:22 
AnswerRe: multi theading and multi tasking Pin
Giorgi Dalakishvili19-Nov-07 1:09
mentorGiorgi Dalakishvili19-Nov-07 1:09 
GeneralRe: multi theading and multi tasking Pin
gilpaz1019-Nov-07 7:32
gilpaz1019-Nov-07 7:32 
AnswerRe: multi theading and multi tasking Pin
Hamid_RT20-Nov-07 19:40
Hamid_RT20-Nov-07 19:40 
GeneralRe: multi theading and multi tasking Pin
gilpaz1021-Nov-07 11:22
gilpaz1021-Nov-07 11:22 
GeneralRe: multi theading and multi tasking Pin
Hamid_RT21-Nov-07 18:54
Hamid_RT21-Nov-07 18:54 

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.