Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 09-02-2009
Member
 
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?
Reply With Quote
  #2  
Old 09-02-2009
Member
 
Join Date: Feb 2008
Posts: 1,848
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!
Reply With Quote
  #3  
Old 09-02-2009
Member
 
Join Date: May 2008
Posts: 2,383
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.
__________________
The FIFA Manager 2009 PC Game
Reply With Quote
  #4  
Old 31-03-2009
Member
 
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
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Making a function call to C++ or CLI DLL from VB.Net?"
Thread Thread Starter Forum Replies Last Post
BBM 7 update for making call via Wi-Fi now available for BlackBerry 6 OS and higher Dr.Jones Web News & Trends 0 11-12-2012 04:27 PM
Motorola photon 4g reboots when making a call JalB By Portable Devices 9 13-11-2011 07:21 AM
Making a call on blackberry gives - 'Call Forwarding - Conditional' popup silvery Portable Devices 6 23-10-2011 08:09 PM
Free Call Making Over 3G & Wifi Depo Portable Devices 3 26-12-2010 05:10 AM
Nokia 5530 switch off when making a call MAHAH Portable Devices 7 28-03-2010 05:28 AM


All times are GMT +5.5. The time now is 08:12 PM.