Click here to Skip to main content
14,600,040 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.
 
GeneralRe: Commit strip OTD: Talk to me! Pin
Rage3-Jul-20 22:42
professionalRage3-Jul-20 22:42 
GeneralRe: Commit strip OTD: Talk to me! Pin
Greg Utas4-Jul-20 0:13
professionalGreg Utas4-Jul-20 0:13 
GeneralRe: Commit strip OTD: Talk to me! Pin
Daniel Pfeffer4-Jul-20 8:04
professionalDaniel Pfeffer4-Jul-20 8:04 
GeneralRe: Commit strip OTD: Talk to me! Pin
jsc424-Jul-20 10:32
professionaljsc424-Jul-20 10:32 
GeneralRe: Commit strip OTD: Talk to me! Pin
dandy725-Jul-20 3:25
Memberdandy725-Jul-20 3:25 
GeneralRe: Commit strip OTD: Talk to me! Pin
honey the codewitch5-Jul-20 3:29
mvahoney the codewitch5-Jul-20 3:29 
GeneralRe: Commit strip OTD: Talk to me! Pin
dandy726-Jul-20 2:31
Memberdandy726-Jul-20 2:31 
QuestionAny interest in something like the following? Pin
honey the codewitch3-Jul-20 17:31
mvahoney the codewitch3-Jul-20 17:31 
I have the basis for what might be an interesting article in and of itself within my MIDI library.

There's a very tricky call i have to make that relies on passing essentially variable length structs, and consequently, the .NET marshaller cannot handle it out of the box. Instead of using StructLayoutAttribute and MarshalAsAttribute to mark up your structure and p/invoke function calls, you basically need to use StructLayoutAttribute and then use the Marshal class methods to copy the variable length portion in manually.

I don't know how many people have run into P/Invoking into C style libraries that take variable length structs, so is anyone interested in this?

I'd rather put this out there up front before I spend time and effort on an article that nobody cares about, and this is kind of arcana.

Edit: Big thanks folks. Your responses let me know there was some interest and I'm in the process of writing it.
Real programmers use butterflies


modified 4-Jul-20 7:37am.

AnswerRe: Any interest in something like the following? Pin
Garth J Lancaster3-Jul-20 19:28
professionalGarth J Lancaster3-Jul-20 19:28 
GeneralRe: Any interest in something like the following? Pin
honey the codewitch4-Jul-20 6:40
mvahoney the codewitch4-Jul-20 6:40 
GeneralRe: Any interest in something like the following? Pin
Luc Pattyn5-Jul-20 12:47
sitebuilderLuc Pattyn5-Jul-20 12:47 
AnswerRe: Any interest in something like the following? Pin
Jon McKee3-Jul-20 20:52
professionalJon McKee3-Jul-20 20:52 
GeneralRe: Any interest in something like the following? Pin
honey the codewitch4-Jul-20 10:37
mvahoney the codewitch4-Jul-20 10:37 
GeneralRe: Any interest in something like the following? Pin
Jon McKee4-Jul-20 14:28
professionalJon McKee4-Jul-20 14:28 
GeneralRe: Any interest in something like the following? Pin
honey the codewitch4-Jul-20 14:44
mvahoney the codewitch4-Jul-20 14:44 
AnswerRe: Any interest in something like the following? Pin
pkfox3-Jul-20 22:07
professionalpkfox3-Jul-20 22:07 
GeneralRe: Any interest in something like the following? Pin
honey the codewitch4-Jul-20 10:38
mvahoney the codewitch4-Jul-20 10:38 
GeneralRe: Any interest in something like the following? Pin
pkfox5-Jul-20 0:16
professionalpkfox5-Jul-20 0:16 
GeneralRe: Any interest in something like the following? Pin
honey the codewitch5-Jul-20 2:02
mvahoney the codewitch5-Jul-20 2:02 
AnswerRe: Any interest in something like the following? Pin
Nelek4-Jul-20 7:36
protectorNelek4-Jul-20 7:36 
GeneralRe: Any interest in something like the following? Pin
honey the codewitch4-Jul-20 7:41
mvahoney the codewitch4-Jul-20 7:41 
GeneralRe: Any interest in something like the following? Pin
Nelek4-Jul-20 11:32
protectorNelek4-Jul-20 11:32 
GeneralRe: Any interest in something like the following? Pin
honey the codewitch4-Jul-20 11:39
mvahoney the codewitch4-Jul-20 11:39 
GeneralRe: Any interest in something like the following? Pin
Nelek4-Jul-20 13:47
protectorNelek4-Jul-20 13:47 
GeneralRe: Any interest in something like the following? Pin
honey the codewitch4-Jul-20 13:53
mvahoney the codewitch4-Jul-20 13:53 

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.