RE: pass complex structure to native function

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Take a look at these articles:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetcomp/html/ProcessManager.asp?frame=true

http://www.opennetcf.org/PermaLink.aspx?guid=abe6694a-ff15-4617-a21f-8163d427a89c

--
Alex Yakhnin, .NET CF MVP
www.intelliprog.com | www.opennetcf.org


"Ivan" wrote:

> Hi,
>
> I have a problem with passing complex structures to native code.
> complex structures means that I have structure with Integers, Strings, Byte
> Arrays, and also Arrays of another structures that also contains Strings,
> Byte Arrays etc.
>
> Any ideas how should I implement this?
> I tried to use IntPrt, but I beleive this is not acceptable due to using of
> dynamic arrays in the structure.
>
> Note that I also need this structure to be passed ByRef and get data.
>
>
> Thanks in advance,
> Ivan.
>
>
>
.



Relevant Pages

  • pass complex structure to native function
    ... I have a problem with passing complex structures to native code. ... Arrays, and also Arrays of another structures that also contains Strings, ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Advanced data structures
    ... I've used far more complex structures in real production code which was being developed for a paying customer. ... thing you might do to convert 1-based to zero-based); gcc gave me the same 4 instructions, but the middle two now had a -4 offset in their addressing modes; two extra bytes I think. ... If you build your software for 0 based arrays you build it in to the calculation, if it is 1 based you can't do that and if it is a function doing the calculation it might not be possible for the compiler to optimise away. ...
    (comp.lang.c)
  • Re: Advanced data structures
    ... I use 4D arrays every day... ... I've used far more complex structures in real production code which was being developed for a paying customer. ... How are you going to calculate the address without extra runtime cost? ...
    (comp.lang.c)
  • Re: Arrarys of reference
    ... Ivan Vecerina wrote: ... > to initialize the references correctly. ... > Maybe because arrays of references often couldn't be ... (or const pointers, if you wish). ...
    (comp.lang.cpp)