Making a function call to C++ or CLI DLL from VB.Net?
Hi,
Making a function call to C++ or CLI DLL from VB.Net?
"VB.Net sends a structure (includes 3-dimensional array) to C++/CLI Dll, and the C++/CLI Dll will return a structure (includes 2- dimensional array) back to VB.Net for future handling"
How to do the same?
Re: Making a function call to C++ or CLI DLL from VB.Net?
Hello Ettan'
Please Visit this page here they explain Creating and Calling C Function DLL from .NET
I hope this helps you!
Re: Making a function call to C++ or CLI DLL from VB.Net?
Just use C++/CLI to create an assembly referenced by the VB app.
The C++/CLI syntax for a value type with a 2-dimensional array of integers is:
public value class Foo //or you can use 'value struct'
Code:
{
public:
array<int, 2> ^myArray = gcnew array<int, 2>();
.... <other members> ....
};
If its actually jagged arrays that you want instead of true 'rectangular'
multi-dimensional arrays, then the syntax is:
Code:
array<array<int>>
array<array<array<int>>>
etc.
Re: Making a function call to C++ or CLI DLL from VB.Net?
Hi OPaper,
I have a VS C++ CLI class that I am making available to our VB .NET 2008 application as a CLI DLL. I have been searching everywhere for good, current books on how to exchange data and prepare this class for use, but to no avail. Can you recommend good websites or books? I'd really appreciate it!
Thanks,
Mike