Click here to Skip to main content
15,893,190 members
Home / Discussions / C#
   

C#

 
GeneralRe: PInvoke, varaible length arrays [Solved] Pin
Luc Pattyn14-Aug-09 12:17
sitebuilderLuc Pattyn14-Aug-09 12:17 
GeneralRe: PInvoke, varaible length arrays [Solved] Pin
DaveyM6914-Aug-09 12:54
professionalDaveyM6914-Aug-09 12:54 
GeneralRe: PInvoke, varaible length arrays [Solved] Pin
Luc Pattyn14-Aug-09 13:01
sitebuilderLuc Pattyn14-Aug-09 13:01 
GeneralRe: PInvoke, varaible length arrays [Solved] Pin
DaveyM6914-Aug-09 13:08
professionalDaveyM6914-Aug-09 13:08 
GeneralRe: PInvoke, varaible length arrays [Solved] Pin
DaveyM6921-Apr-10 10:38
professionalDaveyM6921-Apr-10 10:38 
AnswerRe: PInvoke, varaible length arrays Pin
Hristo-Bojilov14-Aug-09 12:15
Hristo-Bojilov14-Aug-09 12:15 
GeneralRe: PInvoke, varaible length arrays Pin
DaveyM6914-Aug-09 12:20
professionalDaveyM6914-Aug-09 12:20 
GeneralRe: PInvoke, varaible length arrays [modified] Pin
Hristo-Bojilov14-Aug-09 12:33
Hristo-Bojilov14-Aug-09 12:33 
DaveyM69 wrote:
Passing a pointer to a byte array works fine, but using the defined MIDIEVENT structures makes assigning the various elements of that structure much easier.



DaveyM69 wrote:
A char is a byte so a char[] is a byte[] - in the c++ world anyway


In fact ANSI C char range is from -127 to 127 and BYTE is equal to unsigned char ,so that they aren't equal.
That's why BYTE is equal to System.Byte always.

But I like your approach -just give the API to do annoying initialization work.It's more efficient rather than doing using custom logic in .NET. Smile | :)



Life is a stage and we are all actors!

modified on Friday, August 14, 2009 7:01 PM

QuestionUpdate db table Linq Pin
spankyleo12314-Aug-09 10:05
spankyleo12314-Aug-09 10:05 
AnswerCross posted from the LINQ forum Pin
Pete O'Hanlon14-Aug-09 10:33
mvePete O'Hanlon14-Aug-09 10:33 
GeneralRe: Cross posted from the LINQ forum Pin
spankyleo12314-Aug-09 10:39
spankyleo12314-Aug-09 10:39 
GeneralRe: Cross posted from the LINQ forum Pin
Pete O'Hanlon14-Aug-09 10:54
mvePete O'Hanlon14-Aug-09 10:54 
QuestionError handling for WMI queries [Solved] Pin
eeffoc4214-Aug-09 9:32
eeffoc4214-Aug-09 9:32 
AnswerRe: Error handling for WMI queries Pin
Saksida Bojan14-Aug-09 9:47
Saksida Bojan14-Aug-09 9:47 
AnswerRe: Error handling for WMI queries Pin
Luc Pattyn14-Aug-09 9:48
sitebuilderLuc Pattyn14-Aug-09 9:48 
AnswerRe: Error handling for WMI queries [modified] Pin
Hristo-Bojilov14-Aug-09 10:18
Hristo-Bojilov14-Aug-09 10:18 
QuestionComparing files on another computer. Pin
murktinez14-Aug-09 8:03
murktinez14-Aug-09 8:03 
AnswerRe: Comparing files on another computer. Pin
Saksida Bojan14-Aug-09 8:27
Saksida Bojan14-Aug-09 8:27 
GeneralRe: Comparing files on another computer. Pin
murktinez14-Aug-09 21:00
murktinez14-Aug-09 21:00 
GeneralRe: Comparing files on another computer. Pin
Saksida Bojan14-Aug-09 21:42
Saksida Bojan14-Aug-09 21:42 
QuestionWeb Service Pin
#realJSOP14-Aug-09 6:46
mve#realJSOP14-Aug-09 6:46 
AnswerRe: Web Service Pin
Ennis Ray Lynch, Jr.14-Aug-09 8:18
Ennis Ray Lynch, Jr.14-Aug-09 8:18 
AnswerRe: Web Service Pin
Mycroft Holmes14-Aug-09 17:40
professionalMycroft Holmes14-Aug-09 17:40 
Questionshow time country wise Pin
smiley_jatin14-Aug-09 5:05
smiley_jatin14-Aug-09 5:05 
AnswerRe: show time country wise Pin
Saksida Bojan14-Aug-09 5:17
Saksida Bojan14-Aug-09 5:17 

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.