Re: C++ vs. .net



Peter Schmitz wrote:
> Hi,
>
> in one of my C++ applications, I have quite a big amount of data
> (linked lists, arrays, variables, ...) that I'd need to pass to a
> .net (VB.net) application. what's the best approach to do this?

That depends.

Is the interaction two-way?

Is the data changed frequently?

Is the data large compared to the memory in the target computer?

If the answer to any of the above is Yes, then I'd suggest making .NET
wrappers for your native data using managed C++. If the answers to all of
the above are No, then you could use Xml (as another respondent suggested).
On the C++ side, take a look at the MSXML4 documentation. On the .NET side,
you'd be using classes from the System.Xml namespace.

-cd


.



Relevant Pages

  • Re: threads, XSUB allocated memory, destructors, destruction
    ... If only the "master" thread need to write to this large amount of data, ... > We are dealing with arrays of blessed objects. ... You should not get that from a print statement. ...
    (comp.lang.perl.misc)
  • Re: Questions on Using Python to Teach Data Structures and Algorithms
    ... linked lists produces cache misses rather often, ... arrays do not. ... Small dynamic arrays are faster than linked ...
    (comp.lang.python)
  • Re: "ideal" paging file size
    ... > also adjust the amount of Windows paging file size. ... that's your first clue that its not static but related to the testers ... PC configuration, 3rd party software, and open applications. ... > Some people say using 1.5X of physical memory is not good for larger ...
    (microsoft.public.windowsxp.general)
  • Re: PsychTest
    ... Bob wrote: ... I view a computer as a tool not an entertainment device. ... having whatever small amount of computer resources it takes to display ... destop picture used by my applications instead. ...
    (sci.electronics.design)
  • Re: Can you help me figure out why my macro is running slowly?
    ... then the first question I would have would be where is ... time variance in the amount of time it takes to run. ... Size the arrays to 1000 elements using ReDim. ... Write computed values to the workbook opened in step 3. ...
    (microsoft.public.excel.programming)