Current location: Hot Scripts Forums » Programming Languages » Visual Basic » Using C DLL in VB. Function has argument with pointer to array


Using C DLL in VB. Function has argument with pointer to array

Reply
  #1 (permalink)  
Old 12-26-03, 02:21 AM
stmoong stmoong is offline
New Member
 
Join Date: Dec 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Using C DLL in VB. Function has argument with pointer to array

I am trying to convert a function in C DLL to be used in VB. I only have the header files and not the source code.

Anyway, I am trying to convert the following function declaration to VB.

Code:
int theFunctionName(
  BOOL readc,
  unsigned char blockNb,
  unsigned char firstPage,
  unsigned char nbPages,
  unsigned char pages[][CONSTANT_NUMBER],
  unsigned char *cmdStatus)
The "pages" is a pointer to a bidimensional array to be filled with the pages. pages[i][0] is the Most-Significant Byte of page i, pages[i][7] is the Least-Significant Byte.

Should the pointer be converted to long in VB? How would I retrieve the pages after that?

Thanks in advance.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
InStr function in vb script lunatchi ASP 2 01-21-04 08:05 AM
get Month function in database and VB Script Kaikki ASP 2 12-22-03 05:34 AM
Array function and pointer Patsy42 C/C++ 3 12-14-03 10:58 AM
Help trim code down TheLaughingBandit JavaScript 0 09-02-03 09:50 AM
File Management, sorry i keep changing, this is the last one! :) Arctic ASP 28 08-29-03 12:04 AM


All times are GMT -5. The time now is 01:18 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.