Results 1 to 4 of 4

Thread: Making a function call to C++ or CLI DLL from VB.Net?

  1. #1
    Join Date
    Jun 2008
    Posts
    144

    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?

  2. #2
    Join Date
    Feb 2008
    Posts
    1,852

    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!

  3. #3
    Join Date
    May 2008
    Posts
    2,389

    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.

  4. #4
    Join Date
    Mar 2009
    Posts
    1

    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

Similar Threads

  1. Replies: 0
    Last Post: 11-12-2012, 04:27 PM
  2. Motorola photon 4g reboots when making a call
    By JalB By in forum Portable Devices
    Replies: 9
    Last Post: 13-11-2011, 07:21 AM
  3. Replies: 6
    Last Post: 23-10-2011, 08:09 PM
  4. Free Call Making Over 3G & Wifi
    By Depo in forum Portable Devices
    Replies: 3
    Last Post: 26-12-2010, 05:10 AM
  5. Nokia 5530 switch off when making a call
    By MAHAH in forum Portable Devices
    Replies: 7
    Last Post: 28-03-2010, 05:28 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,718,227,762.77889 seconds with 17 queries