By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,720 Members | 2,237 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,720 IT Pros & Developers. It's quick & easy.

C/C++ wrapped for VB use

P: 2
hi.

Hope you can help me out.

I'm working with API functions (C/C++) wrapped for VB use.
I have this function

(C/C++)
Expand|Select|Wrap|Line Numbers
  1. int fpdbGetGroupUsers( LPFPDB_GROUP_IDENTIFY Fgid, unsigned int UserId[], unsigned int *Num )
(VB)
Expand|Select|Wrap|Line Numbers
  1. Sub vbfpdbGetGroupUsers(Fgid As FPDB_GROUP_IDENTIFY, UserId As Long, Num As Long) As Long 
The function is used for aquiring a list of user ids.
The second parameter stored the list of user ids.
How can I read the user Ids in VB since it's of datatype long.

thanks in advance.
May 9 '07 #1
Share this Question
Share on Google+
4 Replies


Expert 5K+
P: 8,434
I'm confused - doesn't the [ ] in the C definition indicate that it's an array?
May 9 '07 #2

P: 2
yes it's an array.
May 9 '07 #3

Expert 5K+
P: 8,434
yes it's an array.
So shouldn't the VB code be passing an array? Or is it already? I thought it needed ( ) on it, but I have a feeling I've been mistaken about that before.

Anyway, this is probably off the track - what was the problem, exactly? The correlation of Long to Unsigned Int? I'm pretty sure I've seen entries here before about this kind of thing. Will try some searching, and let you know. (You can try too, use the search box up the top).
May 9 '07 #4

Expert 5K+
P: 8,434
Found one of the old threads I remembered.

Have a look here (the odd highlighting is just due to the fact that it came from search results).
May 9 '07 #5

Post your reply

Sign in to post your reply or Sign up for a free account.