Click here to Skip to main content
15,920,217 members
Home / Discussions / C#
   

C#

 
QuestionHoow to Fill Dock and overlap control panels? Pin
Khoramdin11-Jun-07 20:43
Khoramdin11-Jun-07 20:43 
AnswerRe: Hoow to Fill Dock and overlap control panels? Pin
Martin#11-Jun-07 21:06
Martin#11-Jun-07 21:06 
AnswerRe: Hoow to Fill Dock and overlap control panels? Pin
Sathesh Sakthivel11-Jun-07 21:08
Sathesh Sakthivel11-Jun-07 21:08 
AnswerRe: Hoow to Fill Dock and overlap control panels? Pin
leppie11-Jun-07 23:07
leppie11-Jun-07 23:07 
QuestionAssembly Version Pin
Rahul.RK11-Jun-07 20:40
Rahul.RK11-Jun-07 20:40 
AnswerRe: Assembly Version Pin
Vikram A Punathambekar11-Jun-07 22:18
Vikram A Punathambekar11-Jun-07 22:18 
QuestionBest way to pass a large array from win32 DLL to C# Pin
tidyup11-Jun-07 20:33
tidyup11-Jun-07 20:33 
AnswerRe: Best way to pass a large array from win32 DLL to C# Pin
J. Dunlap11-Jun-07 21:56
J. Dunlap11-Jun-07 21:56 
C# can only work with unmanaged memory through pointers or methods like Marshal.ReadByte(). If you want to have the buffer directly be treated as an array, it must be originally allocated by managed code. One way to do this is to create an array, pin it, get an address to it, and then use that as the data buffer:
//create an array
short[] buffer=new short[dataLength];
//pin the array to prevent it from being moved around
GCHandle handle = GCHandle.Alloc(buffer, GCHandleType.Pinned);
//get a "safe" pointer to the array's first element
IntPtr bufferPtr = Marshal.UnsafeAddrOfPinnedArrayElement(buffer, 0);



AnswerRe: Best way to pass a large array from win32 DLL to C# Pin
Luc Pattyn12-Jun-07 0:49
sitebuilderLuc Pattyn12-Jun-07 0:49 
QuestionFile not found Exception [how to solve this] Pin
ridda78611-Jun-07 19:58
ridda78611-Jun-07 19:58 
AnswerRe: File not found Exception [how to solve this] [modified] Pin
kkun11-Jun-07 20:22
kkun11-Jun-07 20:22 
GeneralRe: File not found Exception [how to solve this] Pin
ScottM111-Jun-07 22:01
ScottM111-Jun-07 22:01 
GeneralRe: File not found Exception [how to solve this] Pin
ridda78612-Jun-07 0:12
ridda78612-Jun-07 0:12 
AnswerRe: File not found Exception [how to solve this] Pin
leppie11-Jun-07 23:10
leppie11-Jun-07 23:10 
GeneralRe: File not found Exception [how to solve this] Pin
ridda78612-Jun-07 1:12
ridda78612-Jun-07 1:12 
QuestionMicrosoft Outlook look alike instead of TabControl? Pin
Khoramdin11-Jun-07 19:46
Khoramdin11-Jun-07 19:46 
AnswerRe: Microsoft Outlook look alike instead of TabControl? Pin
Martin#11-Jun-07 20:04
Martin#11-Jun-07 20:04 
QuestionRe: Microsoft Outlook look alike instead of TabControl? Pin
Khoramdin11-Jun-07 20:10
Khoramdin11-Jun-07 20:10 
AnswerRe: Microsoft Outlook look alike instead of TabControl? Pin
blackjack215011-Jun-07 21:46
blackjack215011-Jun-07 21:46 
AnswerRe: Microsoft Outlook look alike instead of TabControl? Pin
Walaza11-Jun-07 20:29
Walaza11-Jun-07 20:29 
AnswerRe: Windows Services - FTP download Pin
Crevtout9811-Jun-07 19:49
Crevtout9811-Jun-07 19:49 
Questionhow to make an application so fast, in terms of speed Pin
devesh_code11-Jun-07 19:37
devesh_code11-Jun-07 19:37 
AnswerRe: how to make an application so fast, in terms of speed Pin
Christian Graus11-Jun-07 19:39
protectorChristian Graus11-Jun-07 19:39 
GeneralRe: how to make an application so fast, in terms of speed Pin
devesh_code11-Jun-07 19:50
devesh_code11-Jun-07 19:50 
AnswerRe: how to make an application so fast, in terms of speed Pin
Luc Pattyn12-Jun-07 0:58
sitebuilderLuc Pattyn12-Jun-07 0:58 

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.