No announcements
Found 2923776 threads
-
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
Structure Marshal to C#
Hi, I need to write C# client application which needs to send the structure over pipe. The server appliacation is writen in ...Answered | 1 Replies | 361 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++ dll. the ...Answered | 3 Replies | 3711 Views | Created by RobbieJosefson - Wednesday, September 10, 2008 8:21 AM | Last reply by jack 321 - Friday, September 12, 2008 11:21 AM -
0 Votes
Convert in c# a function with structure containing a pointer
the actual USHORT originally allocated by the C# program and then passed to the C++ code via a pointer for it to fill ? - Or ...Answered | 3 Replies | 1642 Views | Created by Rosu Dan - Saturday, February 8, 2014 3:05 PM | Last reply by Lim Bio Liong - Tuesday, February 11, 2014 8:47 AM -
0 Votes
Passing structure containing pointer from c# to unmanaged dll
If "struct TEST" is in fact a variable-length structure, you should read How do I deal with variable length structures? from the N/Direct FAQ. In short, ...Answered | 2 Replies | 4438 Views | Created by Navin Kaushik - Thursday, January 8, 2009 2:27 PM | Last reply by Stephen Cleary - Friday, January 9, 2009 2:26 AM -
0 Votes
Marshal Function pointer from C# to C++
I have a C++ dll To which I need to pass callback function pointer.Answered | 1 Replies | 8688 Views | Created by KKRIndia - Friday, February 15, 2008 10:29 AM | Last reply by Feng Chen - Monday, February 18, 2008 1:20 PM -
0 Votes
c++ pointer structure to C#
Hi, need help to convert my C++ pointer structure to C# for my project. Below is my sample ...Answered | 4 Replies | 5434 Views | Created by PeterPio - Thursday, October 11, 2007 9:29 AM | Last reply by Josh.Cooley - Saturday, October 13, 2007 10:55 PM -
0 Votes
Marshal Ptr to Structure
able to convert one structure by Marshal.PtrToStructure. But how convert ptr to array of structure to SystemTime [].Answered | 1 Replies | 4395 Views | Created by kuki1384 - Tuesday, December 30, 2008 1:44 PM | Last reply by Serg2008 - Tuesday, December 30, 2008 10:57 PM -
0 Votes
GDI C# Marshal type
I need a little help in defining the following Windows GDI type in C#. I have the data in the form of a byte[] in C#, and i need to ...Answered | 1 Replies | 3638 Views | Created by BrianDevArch - Saturday, November 21, 2009 12:05 AM | Last reply by Rudedog2 - Saturday, November 21, 2009 2:54 PM -
0 Votes
How to marshal a .NET bool pointer into a C boolean pointer?
Hi, I'd like to marshal a managed pointer to a boolean from .NET to a C routine which takes ...Answered | 2 Replies | 8468 Views | Created by manus_eiffel - Thursday, February 9, 2006 11:43 PM | Last reply by rednael - Wednesday, September 3, 2008 11:33 AM -
0 Votes
Marshal a C++ structure with union to C#
; // This ensures alignment public string t; public IntPtr tLength; public string k; public IntPtr kLength; } So I can first marshal ...Answered | 7 Replies | 3491 Views | Created by HopperWannaBe - Monday, August 5, 2013 8:27 PM | Last reply by HopperWannaBe - Thursday, October 10, 2013 4:13 PM -
1 Votes
Marshal C++ Structure within a structure in Visual Basic .NET
within a class, the first class will hold a pointer to the second. Is this also the case with native C++ structures? Many thanks in ...Answered | 5 Replies | 4382 Views | Created by Steve Flesher-Clark - Wednesday, July 29, 2009 2:50 PM | Last reply by nobugz - Thursday, July 30, 2009 12:04 PM -
0 Votes
Marshal Structure
I have an unmanaged structure : struct { int level; char user[5]; char name[32]; ... } that I'm ...Answered | 6 Replies | 5837 Views | Created by Jim Griffin - Monday, October 26, 2009 1:47 PM | Last reply by jialge_msft - Friday, November 6, 2009 6:22 AM -
0 Votes
How to marshal struct Array Pointer ( MYSTRUCT **) ?
The function returns a pointer so you'll have to declare p_output with "out". Try something like this: [StructLayoutAnswered | 1 Replies | 4706 Views | Created by Marsheler - Tuesday, July 24, 2007 5:05 PM | Last reply by nobugz - Thursday, July 26, 2007 3:46 PM -
2 Votes
Marshal: struct containing pointer-to-array-of-structs from C to C#
Hi, I have a function in an unmanaged DLL. The function returns a pointer to a structure where one field of that ...Answered | 4 Replies | 8956 Views | Created by xyz123 - Monday, January 9, 2012 12:38 PM | Last reply by xyz123 - Tuesday, January 10, 2012 2:04 PM -
0 Votes
C structure and Pointer
and using the strings like an inbuilt type and not an array, then if you are using plain C then no can do. You are stuck using character arrays. If you are trying ...Answered | 6 Replies | 2736 Views | Created by cissharp - Monday, January 25, 2010 3:47 AM | Last reply by Lim Bio Liong - Monday, January 25, 2010 4:36 AM -
3 Votes
How to implement function with return type pointer to structure ?
(a,b,c) /// How to call and use the data in the filled structure?!?! Thanks ...Answered | 5 Replies | 3526 Views | Created by yade - Wednesday, June 3, 2009 11:24 AM | Last reply by yade - Wednesday, June 3, 2009 2:33 PM -
0 Votes
How to marshal an unmanaged memory pointer
the content is more like a structured type. Another option, if you prefer stream like access, is to use the ...Answered | 3 Replies | 3594 Views | Created by S_Banks - Wednesday, June 10, 2009 12:54 PM | Last reply by S_Banks - Wednesday, June 10, 2009 2:42 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 find is a by ...Answered | 1 Replies | 2930 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
How can i marshal a parameter from type 'pointer to pointer to struct'
marshal a pointer to pointer to struct parameter (functionList) in Pkcs11.C_GetFunctionList ...Answered | 3 Replies | 9193 Views | Created by Geert Bogie - Monday, August 13, 2007 8:19 AM | Last reply by loupoo - Monday, April 25, 2011 2:04 PM - Items 1 to 20 of 2923776 Next ›
No announcements