No announcements
Found 115204 threads
-
0 Votes
Buffer Overflow in C#
"); } Console.WriteLine("Finished buffer overflow ...Answered | 14 Replies | 23278 Views | Created by Amandeep Bhatia - Tuesday, September 16, 2008 8:07 AM | Last reply by JLaney23 - Monday, April 1, 2013 8:44 PM -
4 Votes
PInvoking byte[] to C++ returns first byte
Your C# P/Invoke decleration doesn't actually match the C++ parameter list.Answered | 10 Replies | 2728 Views | Created by I installed vista on my bin - Saturday, April 28, 2012 11:31 PM | Last reply by Darran Rowe - Monday, April 30, 2012 12:39 AM -
0 Votes
Sending Bytes using UDP (C++ MFC)
Replace the CString type with BYTE*, alloc the memory you might need like this: BYTE* mydata = new BYTE[ yourpacketlength]; and put the ...Answered | 7 Replies | 10251 Views | Created by J-Eng - Wednesday, September 23, 2009 2:00 PM | Last reply by Codu - Friday, September 25, 2009 4:55 PM -
0 Votes
C++ I/O buffering ?
It's defined in the C++ standard library.Answered | 3 Replies | 4724 Views | Created by haceli - Wednesday, September 1, 2010 6:53 AM | Last reply by Igor Tandetnik - Thursday, September 2, 2010 11:53 AM -
12 Votes
Byte array to String in C#
GetString($buffer,0,$chunk_length)MironAnswered | 5 Replies | 324255 Views | Created by Shaa - Thursday, January 24, 2008 8:30 AM | Last reply by Prahlad Y - Friday, July 15, 2011 1:57 PM -
0 Votes
Synchronizing Buffer between C# and C++ (Lock Semaphore Mutex)
Hi, I think you can just make sure the function is called once at one time, and using the buffer just inside your function.Answered | 5 Replies | 2526 Views | Created by XnDerKai - Tuesday, April 30, 2013 8:40 AM | Last reply by Jesse Jiang - Monday, May 6, 2013 5:53 AM -
1 Votes
The Bytes Different In CrytoStrem.Read(buffer, 0, buffer.Length) and StreamWriter.Write(Encoding.ASCII.GetString(buffer));
Yes, definitely use Base64 encoding or some other lossless way of transforming the byte array to a string representation.Answered | 5 Replies | 3911 Views | Created by PurpleWIfe - Saturday, January 15, 2011 6:48 AM | Last reply by Jesse Houwing - Monday, January 17, 2011 12:13 PM -
1 Votes
What is the difference between "C++ DWORD" and "C# Byte"?
A Byte is not something from C# in particular, a Byte is a long time existing abbreviation for a 8 bit Word.Answered | 8 Replies | 5842 Views | Created by 6387534 - Saturday, June 8, 2013 12:27 PM | Last reply by Cor Ligthert - Sunday, June 9, 2013 10:06 AM -
0 Votes
Read from a String Buffer (memory) like a file in c# line by line
Not sure what you mean by "string buffer".Answered | 4 Replies | 6582 Views | Created by drdbkarron - Friday, March 19, 2010 2:59 AM | Last reply by drdbkarron - Friday, March 19, 2010 11:17 PM -
2 Votes
byte [] array to string , and string to byte [] array
0) { System.IO.File.WriteAllBytes(@"C:\TestFolder\Test.txt", buffer); } Nagarjuna DilipAnswered | 4 Replies | 5109 Views | Created by eranotz65 - Saturday, January 22, 2011 1:50 PM | Last reply by NagarjunaDilip - Monday, January 24, 2011 7:30 AM -
1 Votes
c# Code for ("Set Progress" ... bytes read ...) - BackgroundWorker?
Thanks, I solved the problem.Answered | 3 Replies | 984 Views | Created by denysH - Tuesday, September 13, 2016 12:00 PM | Last reply by denysH - Sunday, September 18, 2016 4:59 PM -
0 Votes
TCHAR buffer size
Visual C++ Forums > Visual C++ General ) forum located here: (http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/threads).Answered | 1 Replies | 7699 Views | Created by maverik715 - Friday, July 31, 2009 8:18 PM | Last reply by ashawani_dubey - Friday, July 31, 2009 8:26 PM -
0 Votes
Cannot update the binding target
=true,并保存工作线程对象 /// ...Answered | 15 Replies | 1348 Views | Created by 冯竞超 - Friday, August 15, 2014 6:11 AM | Last reply by Andy ONeill - Saturday, August 16, 2014 3:50 PM -
0 Votes
Buffered Stream and Streamreader C#
using System; using System.IO; class Test { public static void ...Answered | 7 Replies | 511 Views | Created by Akhil963 - Sunday, April 19, 2020 10:31 PM | Last reply by Max-44 - Wednesday, April 29, 2020 11:17 AM -
0 Votes
Some Chinese strings are not persisting to the sharedStrings.xml file in excel 2010/2013
~横向、垂直和旋转拖板可实现喷嘴在各位置的迅速调ਥ ...Answered | 5 Replies | 2202 Views | Created by Chaitanya Kandala - Tuesday, April 28, 2015 9:04 PM | Last reply by Chaitanya Kandala - Friday, May 1, 2015 11:24 PM -
0 Votes
How do I Marshal byte[] to Unmanaged C++ SAFEARRAY
Eventually I realized that the array of bytes I was getting was really an array of bytes.Answered | 7 Replies | 5718 Views | Created by TSRACT - Monday, September 17, 2012 4:43 PM | Last reply by TSRACT - Wednesday, September 26, 2012 12:56 AM -
3 Votes
Unsafe Struct, Fixed Buffer ;
You can change fixed (void *p = &Rtt)// { for (int j = 0; j < bytes; j++) { (p-> Byte[j]) = ...Answered | 4 Replies | 3723 Views | Created by cdalyanci - Tuesday, August 18, 2009 6:55 AM | Last reply by cdalyanci - Wednesday, August 19, 2009 5:45 AM -
0 Votes
数据导出错误,不知数据是否导入成功?
(导入前通过A服务器sql数据库报表方式查看指定表C记& ...Answered | 2 Replies | 11914 Views | Created by 没见过黄河 - Tuesday, November 22, 2011 5:59 AM | Last reply by amber zhang - Thursday, November 24, 2011 2:38 AM -
0 Votes
Localy created buffer get collected.
Thing i didn't mentioned before, is that ImageSurface is a part of C# binding for Cairo library, which is C library.Answered | 3 Replies | 1504 Views | Created by Sayimon - Saturday, July 21, 2012 10:51 AM | Last reply by Sayimon - Saturday, July 21, 2012 4:49 PM -
0 Votes
Read buffering text file in c++
David Wilkinson | Visual C++ MVPAnswered | 11 Replies | 1797 Views | Created by Calvin Ong ZC - Thursday, July 24, 2014 6:05 AM | Last reply by davewilk - Tuesday, July 29, 2014 1:12 PM
No announcements