Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Interop / November 2004

Tip: Looking for answers? Try searching our database.

2 dimensional array from VB.NET to C DLL

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
vaum - 29 Nov 2004 19:52 GMT
Hi,

I need to pass a two dimensional array from VB.NET to a C DLL
function. The prototype for the C function is as follows:

int _stdcall myFunction (int **matrix)

I have created an array in VB as

Dim t(2,2) As Integer and initialized. Please let me know how to do
this..

Thanks
vaum - 30 Nov 2004 15:25 GMT
> Hi,
>
[quoted text clipped - 9 lines]
>
> Thanks

Hi,

I have created the dll and used the declare statement as

Declare Function TestArraysOfInts Lib "DemoDll.dll" ( _
     ByRef myArray(,) As Integer, ByVal row As Integer) As Integer

But when I call this function it gives a null reference exception. I
need to be able to pass the array to dll and receive the changes made
by dll in VB.NET..Please help..

Thanks in Advance

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.