No announcements
Found 2937149 threads
-
0 Votes
How to Marshal a structure with variable length arrays from C# to C++ COM dll (and visa versa)
Hi, I am having problems marshaling a structure with variable length arrays from C# to ...Answered | 8 Replies | 860 Views | Created by MyDisplayNameAlex - Tuesday, January 9, 2018 4:09 PM | Last reply by RLWA32 - Wednesday, January 10, 2018 8:28 PM -
0 Votes
How to Marshal a structure with a variable-length string?
I have a string in a structure. I want to marshal it by value, ANSI, null terminated, variable -length. The closest I can ...Answered | 1 Replies | 2926 Views | Created by Moby Disk - Friday, January 15, 2010 4:38 PM | Last reply by Stephen Cleary - Friday, January 15, 2010 4:49 PM -
0 Votes
Structure Marshal to C#
be the proper way to marshal this structure? Note that VIDEOINFOHEADER can be replaced with some fixed bytes of same length. ...Answered | 1 Replies | 351 Views | Created by iz111 - Wednesday, November 13, 2019 1:29 PM | Last reply by Castorix31 - Wednesday, November 13, 2019 1:53 PM -
1 Votes
How to marshal a structure containing a variable length array
I want to marshal a structure containing a variable length array which will be populated within a C++ ...Answered | 3 Replies | 3702 Views | Created by RobbieJosefson - Wednesday, September 10, 2008 8:21 AM | Last reply by jack 321 - Friday, September 12, 2008 11:21 AM -
1 Votes
How to marshal GUID structure from C# to C++ (DLL) and back in Win CE
Hi, I am getting exception 0x80000002 when trying to marshal a GUID structure from managed C# code to unmanaged ...Answered | 6 Replies | 15560 Views | Created by Paul Tomov - Thursday, June 24, 2010 6:07 PM | Last reply by Paul Tomov - Thursday, July 1, 2010 2:22 PM -
0 Votes
marshal to a Variable length Array
.safelinks.protection.outlook.com/?url=https%3A%2F%2Fstackoverflow.com%2Fquestions%2F5902103%2Fhow-do-i-marshal-a-struct-that-contains-a-variable-sized-array-to ...Unanswered | 1 Replies | 344 Views | Created by Sree2017 - Monday, July 22, 2019 10:33 AM | Last reply by Xingyu Zhao - Tuesday, July 23, 2019 8:43 AM -
0 Votes
Get Variable length array from c dll
Hello friends, I am developing some code where I need to deal with C/C++ dll. Problem Defination: ...Answered | 1 Replies | 3928 Views | Created by santoshdarekar - Thursday, October 1, 2009 6:19 AM | Last reply by santoshdarekar - Thursday, October 1, 2009 9:16 AM -
1 Votes
How to share structure with arrays in a single file between C# and C with arrays?
through a generic software mechanism that knows how to create any struct object from a byte array. Changing the C# specific portions of ...Answered | 6 Replies | 927 Views | Created by Richard.Haggard - Wednesday, February 4, 2015 5:33 PM | Last reply by Kristin Xie - Sunday, February 15, 2015 9:38 AM -
0 Votes
How to marshal a C type structure containing pointer
How to marshal a C type structure containing pointer to instance of another ... -
0 Votes
Marshal a C++ structure with union to C#
definition start here public IntPtr tLength; public string k; public IntPtr kLength; } And marshaling to the proper structure when I ...Answered | 7 Replies | 3473 Views | Created by HopperWannaBe - Monday, August 5, 2013 8:27 PM | Last reply by HopperWannaBe - Thursday, October 10, 2013 4:13 PM -
0 Votes
Safearray and com c# dll from c++
hello. I'm trying to use a managed c# dll with com from c++ 2003 unmanaged. I not understand the management of arrays , ...Answered | 2 Replies | 13221 Views | Created by giuseppe500 - Monday, July 11, 2011 9:33 AM | Last reply by Lim Bio Liong - Monday, July 11, 2011 12:00 PM -
1 Votes
How to marshal a c# (VS2010) structure with a method to com interop (vb6)
TypeEtablissement is a C# enum Thanks a lot,Answered | 5 Replies | 2599 Views | Created by AgnostikFront - Wednesday, October 24, 2012 1:39 PM | Last reply by Lim Bio Liong - Saturday, October 27, 2012 5:09 PM -
0 Votes
C++ to C# COM Interop Marshal problem
I have created code in c# that has a few basic methods and a few events and the COM stuff is all set up so that typellib can be created ...Answered | 3 Replies | 5417 Views | Created by Darylmer2 - Thursday, June 7, 2007 5:42 AM | Last reply by nobugz - Thursday, June 7, 2007 8:17 PM -
0 Votes
Declaring fixed length variable arrays in Structure
How do I declare a fixed length variable array? I'm stuck, any help will be appreciated: Structure ...Answered | 2 Replies | 1980 Views | Created by to.areeb - Friday, May 25, 2012 7:58 AM | Last reply by John Anthony Oliver - Friday, May 25, 2012 2:55 PM -
0 Votes
Passing structure of arrays from VB to C dll
I need some help passing a structure containing arrays to a C dll. The values are not being passed correctly to the ...Unanswered | 2 Replies | 941 Views | Created by Mike Kipling - Wednesday, June 12, 2013 12:26 PM | Last reply by Mike Kipling - Tuesday, June 18, 2013 8:40 PM -
1 Votes
Returning arrays from c++ dll with extern "C" to c#
Hello! I was wondering how on earth you can return an array (or string if possible) from a c++ DLL. This is going to be used ...Answered | 4 Replies | 5256 Views | Created by Darkzaelus - Monday, December 22, 2008 9:01 PM | Last reply by Darkzaelus - Monday, December 22, 2008 9:51 PM -
0 Votes
About accessing COM objects from C# to C++ dll project
You would like to check the link below about how to use COM object in C++. httpsProposed | 1 Replies | 1970 Views | Created by Ganesh_Chavan - Thursday, January 25, 2018 9:47 AM | Last reply by Wendy Zang - Saturday, January 27, 2018 6:36 AM -
1 Votes
Marshal an allocated struct from COM C++ to C#
Hi, I have a native com component and I want to access it from C#. Here is a part of the idl ...Answered | 4 Replies | 1127 Views | Created by John Silverdear - Tuesday, October 29, 2013 11:14 AM | Last reply by John Silverdear - Tuesday, October 29, 2013 1:32 PM -
0 Votes
How to marshal a linked list from C++ to C#
If you have an idea what is void* item, you can do this using IntPtr and different Marshal class functions. However, I suggest you to write C++/CLI wrapper ...Unanswered | 1 Replies | 4648 Views | Created by Snickel65 - Wednesday, August 16, 2006 3:33 PM | Last reply by Alex Farber - Wednesday, August 16, 2006 4:53 PM -
1 Votes
Marshal variable length array
OOI I used the p/invoke signature toolkit to generate a VB.Net version of the structure, and it ...Answered | 8 Replies | 3981 Views | Created by Chris128 - Tuesday, June 8, 2010 8:00 PM | Last reply by Chris128 - Monday, July 5, 2010 8:34 PM - Items 1 to 20 of 2937149 Next ›
No announcements