Click here to Skip to main content
15,915,086 members
Home / Discussions / C#
   

C#

 
GeneralRe: Casting error question Pin
PIEBALDconsult11-Nov-09 3:40
mvePIEBALDconsult11-Nov-09 3:40 
QuestionCurrency formatting [modified] Pin
sajitk2010-Nov-09 22:02
sajitk2010-Nov-09 22:02 
AnswerMessage Closed Pin
10-Nov-09 22:16
stancrm10-Nov-09 22:16 
GeneralRe: Currency formatting Pin
sajitk2010-Nov-09 22:26
sajitk2010-Nov-09 22:26 
GeneralMessage Closed Pin
10-Nov-09 22:42
stancrm10-Nov-09 22:42 
GeneralRe: Currency formatting [modified] Pin
sajitk2010-Nov-09 23:49
sajitk2010-Nov-09 23:49 
QuestionHow to edit and manage group policy through C# & ASP.Net ? Pin
Ibrahim Mostafa10-Nov-09 21:55
Ibrahim Mostafa10-Nov-09 21:55 
AnswerRe: How to edit and manage group policy through C# & ASP.Net ? Pin
Dave Kreskowiak11-Nov-09 7:44
mveDave Kreskowiak11-Nov-09 7:44 
GeneralRe: How to edit and manage group policy through C# & ASP.Net ? Pin
Ibrahim Mostafa11-Nov-09 22:21
Ibrahim Mostafa11-Nov-09 22:21 
QuestionProblem in updating multiple rows of a single column with different values from C# Pin
Member 236780010-Nov-09 21:48
Member 236780010-Nov-09 21:48 
AnswerRe: Problem in updating multiple rows of a single column with different values from C# Pin
Dave Kreskowiak11-Nov-09 7:38
mveDave Kreskowiak11-Nov-09 7:38 
GeneralRe: Problem in updating multiple rows of a single column with different values from C# Pin
Member 236780011-Nov-09 8:17
Member 236780011-Nov-09 8:17 
QuestionProblems with VirtualMode of the DataGridView Pin
SquallNaruto10-Nov-09 20:46
SquallNaruto10-Nov-09 20:46 
AnswerRe: Problems with VirtualMode of the DataGridView Pin
SquallNaruto10-Nov-09 21:39
SquallNaruto10-Nov-09 21:39 
GeneralRe: Problems with VirtualMode of the DataGridView Pin
SquallNaruto10-Nov-09 22:44
SquallNaruto10-Nov-09 22:44 
Questionproblem with socket programing for image transformation Pin
mehrdad33310-Nov-09 20:40
mehrdad33310-Nov-09 20:40 
AnswerRe: problem with socket programing for image transformation Pin
Paulo Zemek11-Nov-09 9:28
Paulo Zemek11-Nov-09 9:28 
I don't understand the full code, but I must say the problem is probably with the send or the Receive.

I am not sure if the Send can send partial data, but receive surelly do.

For example: You send 128 bytes.
The connection is local, you get 128 bytes.

But, if the connection is remote, you can:
Receive 10 bytes.
Then, receive 20 bytes.
+ 10 bytes... until you finally receive all the buffer (the 128 you expected).

So, you must check this.

Also, I think a better approach is:
Instead of writing everything to a memorystream and them sending the memorystream buffer, get the socket stream (socket.GetStream()) and save the image directly to the socket stream.

Then, on the other side, call Image.FromStream(socket.GetStream())
GeneralRe: problem with socket programing for image transformation Pin
mehrdad33311-Nov-09 19:58
mehrdad33311-Nov-09 19:58 
GeneralRe: problem with socket programing for image transformation Pin
Paulo Zemek12-Nov-09 12:24
Paulo Zemek12-Nov-09 12:24 
GeneralRe: problem with socket programing for image transformation Pin
mehrdad33313-Nov-09 7:19
mehrdad33313-Nov-09 7:19 
QuestionHow to call unmanaged C++ DLL in C#.NET Pin
Pranav Thakur10-Nov-09 19:36
Pranav Thakur10-Nov-09 19:36 
AnswerRe: How to call unmanaged C++ DLL in C#.NET Pin
Christian Graus10-Nov-09 20:21
protectorChristian Graus10-Nov-09 20:21 
AnswerRe: How to call unmanaged C++ DLL in C#.NET Pin
Nicholas Butler11-Nov-09 1:24
sitebuilderNicholas Butler11-Nov-09 1:24 
GeneralRe: How to call unmanaged C++ DLL in C#.NET Pin
suzalinda3-Dec-09 12:50
suzalinda3-Dec-09 12:50 
QuestionWindows Form updating problem Pin
MathewPV10-Nov-09 19:06
MathewPV10-Nov-09 19:06 

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.